@@ -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,29 @@ 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 not supported for the specified .provider
322+ rule : ' !has(self.secretRef) || !has(self.provider) || self.provider
323+ == '' generic'' '
324+ - message : .serviceAccountName is not supported when .provider is
325+ empty or 'generic'
326+ rule : ' !has(self.serviceAccountName) || (has(self.provider) && self.provider
327+ != '' generic'' )'
328+ - message : .cluster is not supported when .provider is empty or 'generic'
329+ rule : ' !has(self.cluster) || (has(self.provider) && self.provider
330+ != '' generic'' )'
331+ - message : .address is not supported when .provider is empty or 'generic'
332+ rule : ' !has(self.address) || (has(self.provider) && self.provider
333+ != '' generic'' )'
283334 namePrefix :
284335 description : NamePrefix will prefix the names of all managed resources.
285336 maxLength : 200
@@ -1347,16 +1398,47 @@ spec:
13471398 a controller level fallback for when KustomizationSpec.ServiceAccountName
13481399 is empty.
13491400 properties :
1401+ address :
1402+ description : |-
1403+ Address is the optional address of the Kubernetes API server.
1404+ Not supported for the generic provider, optional for the
1405+ other providers. The address is used to select among a list
1406+ of endpoints in the cluster resource. If not set, the first
1407+ endpoint on the list is used. If none of the addresses in the
1408+ cluster resource match a provided address, the controller will
1409+ error out and the reconciliation will fail. Must be a valid
1410+ HTTPS endpoint, e.g. "https://api.example.com:6443".
1411+ pattern : ^https://.*
1412+ type : string
1413+ cluster :
1414+ description : |-
1415+ Cluster is the optional fully qualified resource name of the
1416+ Kubernetes cluster in the cloud provider to connect to.
1417+ Not supported for the generic provider, required for the
1418+ other providers.
1419+ type : string
1420+ provider :
1421+ default : generic
1422+ description : |-
1423+ Provider is the optional name of the cloud provider that should be used
1424+ to authenticate to the Kubernetes API server. Can be one of "aws",
1425+ "azure", "gcp", or "generic". Defaults to "generic".
1426+ enum :
1427+ - aws
1428+ - azure
1429+ - gcp
1430+ - generic
1431+ type : string
13501432 secretRef :
13511433 description : |-
1352- SecretRef holds the name of a secret that contains a key with
1434+ SecretRef holds an optional name of a secret that contains a key with
13531435 the kubeconfig file as the value. If no key is set, the key will default
13541436 to 'value'.
13551437 It is recommended that the kubeconfig is self-contained, and the secret
13561438 is regularly updated if credentials such as a cloud-access-token expire.
13571439 Cloud specific `cmd-path` auth helpers will not function without adding
13581440 binaries and credentials to the Pod that is responsible for reconciling
1359- Kubernetes resources.
1441+ Kubernetes resources. Supported only for the generic provider.
13601442 properties :
13611443 key :
13621444 description : Key in the Secret, when not specified an implementation-specific
@@ -1368,9 +1450,29 @@ spec:
13681450 required :
13691451 - name
13701452 type : object
1371- required :
1372- - secretRef
1453+ serviceAccountName :
1454+ description : |-
1455+ ServiceAccountName is the optional name of the Kubernetes
1456+ ServiceAccount in the same namespace that should be used
1457+ to authenticate to the Kubernetes API server. If not set,
1458+ the controller ServiceAccount will be used. Not supported
1459+ for the generic provider.
1460+ type : string
13731461 type : object
1462+ x-kubernetes-validations :
1463+ - message : .secretRef is not supported for the specified .provider
1464+ rule : ' !has(self.secretRef) || !has(self.provider) || self.provider
1465+ == '' generic'' '
1466+ - message : .serviceAccountName is not supported when .provider is
1467+ empty or 'generic'
1468+ rule : ' !has(self.serviceAccountName) || (has(self.provider) && self.provider
1469+ != '' generic'' )'
1470+ - message : .cluster is not supported when .provider is empty or 'generic'
1471+ rule : ' !has(self.cluster) || (has(self.provider) && self.provider
1472+ != '' generic'' )'
1473+ - message : .address is not supported when .provider is empty or 'generic'
1474+ rule : ' !has(self.address) || (has(self.provider) && self.provider
1475+ != '' generic'' )'
13741476 patches :
13751477 description : |-
13761478 Strategic merge and JSON patches, defined as inline YAML objects,
0 commit comments