generators.external-secrets.io_grafanas.yaml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.18.0
  6. labels:
  7. external-secrets.io/component: controller
  8. name: grafanas.generators.external-secrets.io
  9. spec:
  10. group: generators.external-secrets.io
  11. names:
  12. categories:
  13. - external-secrets
  14. - external-secrets-generators
  15. kind: Grafana
  16. listKind: GrafanaList
  17. plural: grafanas
  18. singular: grafana
  19. scope: Namespaced
  20. versions:
  21. - name: v1alpha1
  22. schema:
  23. openAPIV3Schema:
  24. properties:
  25. apiVersion:
  26. description: |-
  27. APIVersion defines the versioned schema of this representation of an object.
  28. Servers should convert recognized schemas to the latest internal value, and
  29. may reject unrecognized values.
  30. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  31. type: string
  32. kind:
  33. description: |-
  34. Kind is a string value representing the REST resource this object represents.
  35. Servers may infer this from the endpoint the client submits requests to.
  36. Cannot be updated.
  37. In CamelCase.
  38. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  39. type: string
  40. metadata:
  41. type: object
  42. spec:
  43. description: GrafanaSpec controls the behavior of the grafana generator.
  44. properties:
  45. auth:
  46. description: |-
  47. Auth is the authentication configuration to authenticate
  48. against the Grafana instance.
  49. properties:
  50. basic:
  51. description: |-
  52. Basic auth credentials used to authenticate against the Grafana instance.
  53. Note: you need a token which has elevated permissions to create service accounts.
  54. See here for the documentation on basic roles offered by Grafana:
  55. https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/rbac-fixed-basic-role-definitions/
  56. properties:
  57. password:
  58. description: A basic auth password used to authenticate against
  59. the Grafana instance.
  60. properties:
  61. key:
  62. description: The key where the token is found.
  63. maxLength: 253
  64. minLength: 1
  65. pattern: ^[-._a-zA-Z0-9]+$
  66. type: string
  67. name:
  68. description: The name of the Secret resource being referred
  69. to.
  70. maxLength: 253
  71. minLength: 1
  72. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  73. type: string
  74. type: object
  75. username:
  76. description: A basic auth username used to authenticate against
  77. the Grafana instance.
  78. type: string
  79. required:
  80. - password
  81. - username
  82. type: object
  83. token:
  84. description: |-
  85. A service account token used to authenticate against the Grafana instance.
  86. Note: you need a token which has elevated permissions to create service accounts.
  87. See here for the documentation on basic roles offered by Grafana:
  88. https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/rbac-fixed-basic-role-definitions/
  89. properties:
  90. key:
  91. description: The key where the token is found.
  92. maxLength: 253
  93. minLength: 1
  94. pattern: ^[-._a-zA-Z0-9]+$
  95. type: string
  96. name:
  97. description: The name of the Secret resource being referred
  98. to.
  99. maxLength: 253
  100. minLength: 1
  101. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  102. type: string
  103. type: object
  104. type: object
  105. serviceAccount:
  106. description: |-
  107. ServiceAccount is the configuration for the service account that
  108. is supposed to be generated by the generator.
  109. properties:
  110. name:
  111. description: Name is the name of the service account that will
  112. be created by ESO.
  113. type: string
  114. role:
  115. description: |-
  116. Role is the role of the service account.
  117. See here for the documentation on basic roles offered by Grafana:
  118. https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/rbac-fixed-basic-role-definitions/
  119. type: string
  120. required:
  121. - name
  122. - role
  123. type: object
  124. url:
  125. description: URL is the URL of the Grafana instance.
  126. type: string
  127. required:
  128. - auth
  129. - serviceAccount
  130. - url
  131. type: object
  132. type: object
  133. served: true
  134. storage: true
  135. subresources:
  136. status: {}