@@ -256,16 +256,47 @@ spec:
256
256
a controller level fallback for when KustomizationSpec.ServiceAccountName
257
257
is empty.
258
258
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
259
290
secretRef :
260
291
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
262
293
the kubeconfig file as the value. If no key is set, the key will default
263
294
to 'value'.
264
295
It is recommended that the kubeconfig is self-contained, and the secret
265
296
is regularly updated if credentials such as a cloud-access-token expire.
266
297
Cloud specific `cmd-path` auth helpers will not function without adding
267
298
binaries and credentials to the Pod that is responsible for reconciling
268
- Kubernetes resources.
299
+ Kubernetes resources. Supported only for the generic provider.
269
300
properties :
270
301
key :
271
302
description : Key in the Secret, when not specified an implementation-specific
@@ -277,9 +308,29 @@ spec:
277
308
required :
278
309
- name
279
310
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
282
319
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'' )'
283
334
namePrefix :
284
335
description : NamePrefix will prefix the names of all managed resources.
285
336
maxLength : 200
@@ -1347,16 +1398,47 @@ spec:
1347
1398
a controller level fallback for when KustomizationSpec.ServiceAccountName
1348
1399
is empty.
1349
1400
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
1350
1432
secretRef :
1351
1433
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
1353
1435
the kubeconfig file as the value. If no key is set, the key will default
1354
1436
to 'value'.
1355
1437
It is recommended that the kubeconfig is self-contained, and the secret
1356
1438
is regularly updated if credentials such as a cloud-access-token expire.
1357
1439
Cloud specific `cmd-path` auth helpers will not function without adding
1358
1440
binaries and credentials to the Pod that is responsible for reconciling
1359
- Kubernetes resources.
1441
+ Kubernetes resources. Supported only for the generic provider.
1360
1442
properties :
1361
1443
key :
1362
1444
description : Key in the Secret, when not specified an implementation-specific
@@ -1368,9 +1450,29 @@ spec:
1368
1450
required :
1369
1451
- name
1370
1452
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
1373
1461
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'' )'
1374
1476
patches :
1375
1477
description : |-
1376
1478
Strategic merge and JSON patches, defined as inline YAML objects,
0 commit comments