@@ -256,16 +256,47 @@ spec:
256256 a controller level fallback for when KustomizationSpec.ServiceAccountName
257257 is empty.
258258 properties :
259+ address :
260+ description : |-
261+ Address is the optional address of the Kubernetes API server.
262+ Not supported for the generic provider, optional for the
263+ other providers. The address is used to select among a list
264+ of endpoints in the cluster resource. If not set, the first
265+ endpoint on the list is used. If none of the addresses in the
266+ cluster resource match a provided address, the controller will
267+ error out and the reconciliation will fail. Must be a valid
268+ HTTPS endpoint, e.g. "https://api.example.com:6443".
269+ pattern : ^https://.*
270+ type : string
271+ cluster :
272+ description : |-
273+ Cluster is the optional fully qualified resource name of the
274+ Kubernetes cluster in the cloud provider to connect to.
275+ Not supported for the generic provider, required for the
276+ other providers.
277+ type : string
278+ provider :
279+ default : generic
280+ description : |-
281+ Provider is the optional name of the cloud provider that should be used
282+ to authenticate to the Kubernetes API server. Can be one of "aws",
283+ "azure", "gcp", or "generic". Defaults to "generic".
284+ enum :
285+ - aws
286+ - azure
287+ - gcp
288+ - generic
289+ type : string
259290 secretRef :
260291 description : |-
261- SecretRef holds the name of a secret that contains a key with
292+ SecretRef holds an optional name of a secret that contains a key with
262293 the kubeconfig file as the value. If no key is set, the key will default
263294 to 'value'.
264295 It is recommended that the kubeconfig is self-contained, and the secret
265296 is regularly updated if credentials such as a cloud-access-token expire.
266297 Cloud specific `cmd-path` auth helpers will not function without adding
267298 binaries and credentials to the Pod that is responsible for reconciling
268- Kubernetes resources.
299+ Kubernetes resources. Supported only for the generic provider.
269300 properties :
270301 key :
271302 description : Key in the Secret, when not specified an implementation-specific
@@ -277,9 +308,32 @@ spec:
277308 required :
278309 - name
279310 type : object
280- required :
281- - secretRef
311+ serviceAccountName :
312+ description : |-
313+ ServiceAccountName is the optional name of the Kubernetes
314+ ServiceAccount in the same namespace that should be used
315+ to authenticate to the Kubernetes API server. If not set,
316+ the controller ServiceAccount will be used. Not supported
317+ for the generic provider.
318+ type : string
282319 type : object
320+ x-kubernetes-validations :
321+ - message : .secretRef is required for the 'generic' .provider
322+ rule : has(self.secretRef) || (has(self.provider) && self.provider
323+ != 'generic')
324+ - message : .secretRef is not supported for the specified .provider
325+ rule : ' !has(self.secretRef) || !has(self.provider) || self.provider
326+ == '' generic'' '
327+ - message : .serviceAccountName is not supported when .provider is
328+ empty or 'generic'
329+ rule : ' !has(self.serviceAccountName) || (has(self.provider) && self.provider
330+ != '' generic'' )'
331+ - message : .cluster is not supported when .provider is empty or 'generic'
332+ rule : ' !has(self.cluster) || (has(self.provider) && self.provider
333+ != '' generic'' )'
334+ - message : .address is not supported when .provider is empty or 'generic'
335+ rule : ' !has(self.address) || (has(self.provider) && self.provider
336+ != '' generic'' )'
283337 namePrefix :
284338 description : NamePrefix will prefix the names of all managed resources.
285339 maxLength : 200
@@ -1347,16 +1401,47 @@ spec:
13471401 a controller level fallback for when KustomizationSpec.ServiceAccountName
13481402 is empty.
13491403 properties :
1404+ address :
1405+ description : |-
1406+ Address is the optional address of the Kubernetes API server.
1407+ Not supported for the generic provider, optional for the
1408+ other providers. The address is used to select among a list
1409+ of endpoints in the cluster resource. If not set, the first
1410+ endpoint on the list is used. If none of the addresses in the
1411+ cluster resource match a provided address, the controller will
1412+ error out and the reconciliation will fail. Must be a valid
1413+ HTTPS endpoint, e.g. "https://api.example.com:6443".
1414+ pattern : ^https://.*
1415+ type : string
1416+ cluster :
1417+ description : |-
1418+ Cluster is the optional fully qualified resource name of the
1419+ Kubernetes cluster in the cloud provider to connect to.
1420+ Not supported for the generic provider, required for the
1421+ other providers.
1422+ type : string
1423+ provider :
1424+ default : generic
1425+ description : |-
1426+ Provider is the optional name of the cloud provider that should be used
1427+ to authenticate to the Kubernetes API server. Can be one of "aws",
1428+ "azure", "gcp", or "generic". Defaults to "generic".
1429+ enum :
1430+ - aws
1431+ - azure
1432+ - gcp
1433+ - generic
1434+ type : string
13501435 secretRef :
13511436 description : |-
1352- SecretRef holds the name of a secret that contains a key with
1437+ SecretRef holds an optional name of a secret that contains a key with
13531438 the kubeconfig file as the value. If no key is set, the key will default
13541439 to 'value'.
13551440 It is recommended that the kubeconfig is self-contained, and the secret
13561441 is regularly updated if credentials such as a cloud-access-token expire.
13571442 Cloud specific `cmd-path` auth helpers will not function without adding
13581443 binaries and credentials to the Pod that is responsible for reconciling
1359- Kubernetes resources.
1444+ Kubernetes resources. Supported only for the generic provider.
13601445 properties :
13611446 key :
13621447 description : Key in the Secret, when not specified an implementation-specific
@@ -1368,9 +1453,32 @@ spec:
13681453 required :
13691454 - name
13701455 type : object
1371- required :
1372- - secretRef
1456+ serviceAccountName :
1457+ description : |-
1458+ ServiceAccountName is the optional name of the Kubernetes
1459+ ServiceAccount in the same namespace that should be used
1460+ to authenticate to the Kubernetes API server. If not set,
1461+ the controller ServiceAccount will be used. Not supported
1462+ for the generic provider.
1463+ type : string
13731464 type : object
1465+ x-kubernetes-validations :
1466+ - message : .secretRef is required for the 'generic' .provider
1467+ rule : has(self.secretRef) || (has(self.provider) && self.provider
1468+ != 'generic')
1469+ - message : .secretRef is not supported for the specified .provider
1470+ rule : ' !has(self.secretRef) || !has(self.provider) || self.provider
1471+ == '' generic'' '
1472+ - message : .serviceAccountName is not supported when .provider is
1473+ empty or 'generic'
1474+ rule : ' !has(self.serviceAccountName) || (has(self.provider) && self.provider
1475+ != '' generic'' )'
1476+ - message : .cluster is not supported when .provider is empty or 'generic'
1477+ rule : ' !has(self.cluster) || (has(self.provider) && self.provider
1478+ != '' generic'' )'
1479+ - message : .address is not supported when .provider is empty or 'generic'
1480+ rule : ' !has(self.address) || (has(self.provider) && self.provider
1481+ != '' generic'' )'
13741482 patches :
13751483 description : |-
13761484 Strategic merge and JSON patches, defined as inline YAML objects,
0 commit comments