|
| 1 | +--- |
| 2 | +apiVersion: apiextensions.k8s.io/v1 |
| 3 | +kind: CustomResourceDefinition |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.14.0 |
| 7 | + name: acrpullbindings.acrpull.microsoft.com |
| 8 | +spec: |
| 9 | + group: acrpull.microsoft.com |
| 10 | + names: |
| 11 | + kind: AcrPullBinding |
| 12 | + listKind: AcrPullBindingList |
| 13 | + plural: acrpullbindings |
| 14 | + shortNames: |
| 15 | + - apb |
| 16 | + - apbs |
| 17 | + singular: acrpullbinding |
| 18 | + scope: Namespaced |
| 19 | + versions: |
| 20 | + - name: v1beta2 |
| 21 | + schema: |
| 22 | + openAPIV3Schema: |
| 23 | + description: AcrPullBinding is the Schema for the acrpullbindings API |
| 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: AcrPullBindingSpec defines the desired state of AcrPullBinding |
| 44 | + properties: |
| 45 | + acr: |
| 46 | + description: ACR holds specifics of the Azure Container Registry for |
| 47 | + which credentials are projected. |
| 48 | + properties: |
| 49 | + cloudConfig: |
| 50 | + description: AirgappedCloudConfiguration configures a custom cloud |
| 51 | + to interact with when running air-gapped. |
| 52 | + properties: |
| 53 | + entraAuthorityHost: |
| 54 | + description: EntraAuthorityHost configures a custom Entra |
| 55 | + host endpoint. |
| 56 | + minLength: 1 |
| 57 | + type: string |
| 58 | + resourceManagerAudience: |
| 59 | + description: ResourceManagerAudience configures the audience |
| 60 | + for which tokens will be requested from Entra. |
| 61 | + minLength: 1 |
| 62 | + type: string |
| 63 | + required: |
| 64 | + - entraAuthorityHost |
| 65 | + - resourceManagerAudience |
| 66 | + type: object |
| 67 | + environment: |
| 68 | + default: PublicCloud |
| 69 | + description: Environment specifies the Azure Cloud environment |
| 70 | + in which the ACR is deployed. |
| 71 | + enum: |
| 72 | + - PublicCloud |
| 73 | + - USGovernmentCloud |
| 74 | + - ChinaCloud |
| 75 | + - AirgappedCloud |
| 76 | + example: PublicCloud |
| 77 | + type: string |
| 78 | + scope: |
| 79 | + description: |- |
| 80 | + Scope defines the scope for the access token, e.g. pull/push access for a repository. |
| 81 | + Note: you need to pin it down to the repository level, there is no wildcard available, |
| 82 | + however a list of space-delimited scopes is acceptable. |
| 83 | + See docs for details: https://distribution.github.io/distribution/spec/auth/scope/ |
| 84 | +
|
| 85 | +
|
| 86 | + Examples: |
| 87 | + repository:my-repository:pull,push |
| 88 | + repository:my-repository:pull repository:other-repository:push,pull |
| 89 | + example: repository:my-repository:pull,push |
| 90 | + minLength: 1 |
| 91 | + type: string |
| 92 | + server: |
| 93 | + description: Server is the FQDN for the Azure Container Registry, |
| 94 | + e.g. example.azurecr.io |
| 95 | + example: example.azurecr.io |
| 96 | + type: string |
| 97 | + x-kubernetes-validations: |
| 98 | + - message: server must be a fully-qualified domain name |
| 99 | + rule: isURL('https://' + self) && url('https://' + self).getHostname() |
| 100 | + == self |
| 101 | + required: |
| 102 | + - environment |
| 103 | + - scope |
| 104 | + - server |
| 105 | + type: object |
| 106 | + x-kubernetes-validations: |
| 107 | + - message: a custom cloud configuration must be present for air-gapped |
| 108 | + cloud environments |
| 109 | + rule: 'self.environment == ''ArigappedCloud'' ? has(self.cloudConfig) |
| 110 | + : !has(self.cloudConfig)' |
| 111 | + auth: |
| 112 | + description: Auth determines how we will authenticate to the Azure |
| 113 | + Container Registry. Only one method may be provided. |
| 114 | + properties: |
| 115 | + managedIdentity: |
| 116 | + description: ManagedIdentity uses Azure Managed Identity to authenticate |
| 117 | + with Azure. |
| 118 | + properties: |
| 119 | + clientID: |
| 120 | + description: ClientID is the client identifier for the managed |
| 121 | + identity. Either provide the client ID or the resource ID. |
| 122 | + example: 1b461305-28be-5271-beda-bd9fd2e24251 |
| 123 | + type: string |
| 124 | + resourceID: |
| 125 | + description: ResourceID is the resource identifier for the |
| 126 | + managed identity. Either provide the client ID or the resource |
| 127 | + ID. |
| 128 | + example: /subscriptions/sub-name/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/1b461305-28be-5271-beda-bd9fd2e24251 |
| 129 | + type: string |
| 130 | + type: object |
| 131 | + x-kubernetes-validations: |
| 132 | + - message: only client or resource ID can be set |
| 133 | + rule: '[has(self.clientID), has(self.resourceID)].exists_one(x, |
| 134 | + x)' |
| 135 | + workloadIdentity: |
| 136 | + description: WorkloadIdentity uses Azure Workload Identity to |
| 137 | + authenticate with Azure. |
| 138 | + properties: |
| 139 | + serviceAccountRef: |
| 140 | + description: |- |
| 141 | + ServiceAccountName specifies the name of the service account |
| 142 | + that should be used when authenticating with WorkloadIdentity. |
| 143 | + type: string |
| 144 | + type: object |
| 145 | + type: object |
| 146 | + x-kubernetes-validations: |
| 147 | + - message: only one authentication type can be set |
| 148 | + rule: '[has(self.managedIdentity), has(self.workloadIdentity)].exists_one(x, |
| 149 | + x)' |
| 150 | + serviceAccountName: |
| 151 | + description: The name of the service account to associate the image |
| 152 | + pull secret with. |
| 153 | + type: string |
| 154 | + type: object |
| 155 | + status: |
| 156 | + description: AcrPullBindingStatus defines the observed state of AcrPullBinding |
| 157 | + properties: |
| 158 | + error: |
| 159 | + description: Error message if there was an error updating the token. |
| 160 | + type: string |
| 161 | + lastTokenRefreshTime: |
| 162 | + description: Information when was the last time the ACR token was |
| 163 | + refreshed. |
| 164 | + format: date-time |
| 165 | + type: string |
| 166 | + tokenExpirationTime: |
| 167 | + description: The expiration date of the current ACR token. |
| 168 | + format: date-time |
| 169 | + type: string |
| 170 | + type: object |
| 171 | + type: object |
| 172 | + served: true |
| 173 | + storage: true |
| 174 | + subresources: |
| 175 | + status: {} |
0 commit comments