generators.external-secrets.io_grafanas.yaml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.17.2
  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. token:
  51. description: |-
  52. A service account token 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. key:
  58. description: The key where the token is found.
  59. maxLength: 253
  60. minLength: 1
  61. pattern: ^[-._a-zA-Z0-9]+$
  62. type: string
  63. name:
  64. description: The name of the Secret resource being referred
  65. to.
  66. maxLength: 253
  67. minLength: 1
  68. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  69. type: string
  70. type: object
  71. required:
  72. - token
  73. type: object
  74. serviceAccount:
  75. description: |-
  76. ServiceAccount is the configuration for the service account that
  77. is supposed to be generated by the generator.
  78. properties:
  79. name:
  80. description: Name is the name of the service account that will
  81. be created by ESO.
  82. type: string
  83. role:
  84. description: |-
  85. Role is the role of the service account.
  86. See here for the documentation on basic roles offered by Grafana:
  87. https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/rbac-fixed-basic-role-definitions/
  88. type: string
  89. required:
  90. - name
  91. - role
  92. type: object
  93. url:
  94. description: URL is the URL of the Grafana instance.
  95. type: string
  96. required:
  97. - auth
  98. - serviceAccount
  99. - url
  100. type: object
  101. type: object
  102. served: true
  103. storage: true
  104. subresources:
  105. status: {}