You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -545,6 +545,10 @@ following:
545
545
- Equal to another data directory
546
546
- Attempts to nest another data directory
547
547
548
+
##### Etcd S3 CloudCredential Secret
549
+
550
+
Prevent the creation of objects if the secret specified in `.spec.rkeConfig.etcd.s3.cloudCredentialName` does not exist.
551
+
548
552
#### On Update
549
553
550
554
##### Creator ID Annotation
@@ -561,7 +565,7 @@ section. A secondary validator will ensure that the effective data directory for
561
565
from the one chosen during cluster creation. Additionally, the changing of a data directory for the `system-agent`,
562
566
kubernetes distro (RKE2/K3s), and CAPR components is also prohibited.
563
567
564
-
#### cluster.spec.clusterAgentDeploymentCustomization and cluster.spec.fleetAgentDeploymentCustomization
568
+
#####cluster.spec.clusterAgentDeploymentCustomization and cluster.spec.fleetAgentDeploymentCustomization
565
569
566
570
The `DeploymentCustomization` fields are of 3 types:
567
571
-`appendTolerations`: adds tolerations to the appropriate deployment (cluster-agent/fleet-agent)
@@ -576,7 +580,7 @@ A `Toleration` is matched to a regex which is provided by upstream [apimachinery
576
580
577
581
For the `Affinity` based rules, the `podAffinity`/`podAntiAffinity` are validated via label selectors via [this apimachinery function](https://github.com/kubernetes/apimachinery/blob/02a41040d88da08de6765573ae2b1a51f424e1ca/pkg/apis/meta/v1/validation/validation.go#L56) whereas the `nodeAffinity``nodeSelectorTerms` are validated via the same `Toleration` function.
The `SchedulingCustomization` subfield of the `DeploymentCustomization` field defines the properties of a Pod Disruption Budget and Priority Class which will be automatically deployed by Rancher for the cattle-cluster-agent.
582
586
@@ -595,10 +599,16 @@ Both `minAvailable` and `maxUnavailable` must be a string which represents a non
595
599
^([0-9]|[1-9][0-9]|100)%$
596
600
```
597
601
602
+
##### Etcd S3 CloudCredential Secret
603
+
604
+
Prevent the update of objects if the secret specified in `.spec.rkeConfig.etcd.s3.cloudCredentialName` does not exist.
605
+
598
606
### Mutation Checks
599
607
600
608
#### On Create
601
609
610
+
##### Creator ID Annotation
611
+
602
612
When a cluster is created `field.cattle.io/creatorId` is set to the Username from the request.
603
613
604
614
If `field.cattle.io/no-creator-rbac` annotation is set, `field.cattle.io/creatorId` does not get set.
Copy file name to clipboardExpand all lines: pkg/resources/provisioning.cattle.io/v1/cluster/Cluster.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,10 @@ following:
19
19
- Equal to another data directory
20
20
- Attempts to nest another data directory
21
21
22
+
#### Etcd S3 CloudCredential Secret
23
+
24
+
Prevent the creation of objects if the secret specified in `.spec.rkeConfig.etcd.s3.cloudCredentialName` does not exist.
25
+
22
26
### On Update
23
27
24
28
#### Creator ID Annotation
@@ -35,7 +39,7 @@ section. A secondary validator will ensure that the effective data directory for
35
39
from the one chosen during cluster creation. Additionally, the changing of a data directory for the `system-agent`,
36
40
kubernetes distro (RKE2/K3s), and CAPR components is also prohibited.
37
41
38
-
### cluster.spec.clusterAgentDeploymentCustomization and cluster.spec.fleetAgentDeploymentCustomization
42
+
####cluster.spec.clusterAgentDeploymentCustomization and cluster.spec.fleetAgentDeploymentCustomization
39
43
40
44
The `DeploymentCustomization` fields are of 3 types:
41
45
-`appendTolerations`: adds tolerations to the appropriate deployment (cluster-agent/fleet-agent)
@@ -50,7 +54,7 @@ A `Toleration` is matched to a regex which is provided by upstream [apimachinery
50
54
51
55
For the `Affinity` based rules, the `podAffinity`/`podAntiAffinity` are validated via label selectors via [this apimachinery function](https://github.com/kubernetes/apimachinery/blob/02a41040d88da08de6765573ae2b1a51f424e1ca/pkg/apis/meta/v1/validation/validation.go#L56) whereas the `nodeAffinity``nodeSelectorTerms` are validated via the same `Toleration` function.
The `SchedulingCustomization` subfield of the `DeploymentCustomization` field defines the properties of a Pod Disruption Budget and Priority Class which will be automatically deployed by Rancher for the cattle-cluster-agent.
56
60
@@ -69,10 +73,16 @@ Both `minAvailable` and `maxUnavailable` must be a string which represents a non
69
73
^([0-9]|[1-9][0-9]|100)%$
70
74
```
71
75
76
+
#### Etcd S3 CloudCredential Secret
77
+
78
+
Prevent the update of objects if the secret specified in `.spec.rkeConfig.etcd.s3.cloudCredentialName` does not exist.
79
+
72
80
## Mutation Checks
73
81
74
82
### On Create
75
83
84
+
#### Creator ID Annotation
85
+
76
86
When a cluster is created `field.cattle.io/creatorId` is set to the Username from the request.
77
87
78
88
If `field.cattle.io/no-creator-rbac` annotation is set, `field.cattle.io/creatorId` does not get set.
0 commit comments