generators.external-secrets.io_cloudsmithaccesstokens.yaml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.19.0
  6. labels:
  7. external-secrets.io/component: controller
  8. name: cloudsmithaccesstokens.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: CloudsmithAccessToken
  16. listKind: CloudsmithAccessTokenList
  17. plural: cloudsmithaccesstokens
  18. singular: cloudsmithaccesstoken
  19. scope: Namespaced
  20. versions:
  21. - name: v1alpha1
  22. schema:
  23. openAPIV3Schema:
  24. description: CloudsmithAccessToken generates Cloudsmith access token using
  25. OIDC authentication
  26. properties:
  27. apiVersion:
  28. description: |-
  29. APIVersion defines the versioned schema of this representation of an object.
  30. Servers should convert recognized schemas to the latest internal value, and
  31. may reject unrecognized values.
  32. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  33. type: string
  34. kind:
  35. description: |-
  36. Kind is a string value representing the REST resource this object represents.
  37. Servers may infer this from the endpoint the client submits requests to.
  38. Cannot be updated.
  39. In CamelCase.
  40. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  41. type: string
  42. metadata:
  43. type: object
  44. spec:
  45. description: CloudsmithAccessTokenSpec defines the configuration for generating
  46. a Cloudsmith access token using OIDC authentication.
  47. properties:
  48. apiUrl:
  49. description: APIURL configures the Cloudsmith API URL. Defaults to
  50. https://api.cloudsmith.io.
  51. type: string
  52. orgSlug:
  53. description: OrgSlug is the organization slug in Cloudsmith
  54. type: string
  55. serviceAccountRef:
  56. description: Name of the service account you are federating with
  57. properties:
  58. audiences:
  59. description: |-
  60. Audience specifies the `aud` claim for the service account token
  61. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  62. then this audiences will be appended to the list
  63. items:
  64. type: string
  65. type: array
  66. name:
  67. description: The name of the ServiceAccount resource being referred
  68. to.
  69. maxLength: 253
  70. minLength: 1
  71. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  72. type: string
  73. namespace:
  74. description: |-
  75. Namespace of the resource being referred to.
  76. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  77. maxLength: 63
  78. minLength: 1
  79. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  80. type: string
  81. required:
  82. - name
  83. type: object
  84. serviceSlug:
  85. description: ServiceSlug is the service slug in Cloudsmith for OIDC
  86. authentication
  87. type: string
  88. required:
  89. - orgSlug
  90. - serviceAccountRef
  91. - serviceSlug
  92. type: object
  93. type: object
  94. served: true
  95. storage: true
  96. subresources:
  97. status: {}