generators.external-secrets.io_cloudsmithaccesstokens.yaml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. properties:
  46. apiUrl:
  47. description: APIURL configures the Cloudsmith API URL. Defaults to
  48. https://api.cloudsmith.io.
  49. type: string
  50. orgSlug:
  51. description: OrgSlug is the organization slug in Cloudsmith
  52. type: string
  53. serviceAccountRef:
  54. description: Name of the service account you are federating with
  55. properties:
  56. audiences:
  57. description: |-
  58. Audience specifies the `aud` claim for the service account token
  59. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  60. then this audiences will be appended to the list
  61. items:
  62. type: string
  63. type: array
  64. name:
  65. description: The name of the ServiceAccount resource being referred
  66. to.
  67. maxLength: 253
  68. minLength: 1
  69. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  70. type: string
  71. namespace:
  72. description: |-
  73. Namespace of the resource being referred to.
  74. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  75. maxLength: 63
  76. minLength: 1
  77. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  78. type: string
  79. required:
  80. - name
  81. type: object
  82. serviceSlug:
  83. description: ServiceSlug is the service slug in Cloudsmith for OIDC
  84. authentication
  85. type: string
  86. required:
  87. - orgSlug
  88. - serviceAccountRef
  89. - serviceSlug
  90. type: object
  91. type: object
  92. served: true
  93. storage: true
  94. subresources:
  95. status: {}