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
@@ -580,6 +580,10 @@ following:
580
580
- Equal to another data directory
581
581
- Attempts to nest another data directory
582
582
583
+
##### Etcd S3 CloudCredential Secret
584
+
585
+
Prevent the creation of objects if the secret specified in `.spec.rkeConfig.etcd.s3.cloudCredentialName` does not exist.
586
+
583
587
#### On Update
584
588
585
589
##### Creator ID Annotation
@@ -596,7 +600,7 @@ section. A secondary validator will ensure that the effective data directory for
596
600
from the one chosen during cluster creation. Additionally, the changing of a data directory for the `system-agent`,
597
601
kubernetes distro (RKE2/K3s), and CAPR components is also prohibited.
598
602
599
-
#### cluster.spec.clusterAgentDeploymentCustomization and cluster.spec.fleetAgentDeploymentCustomization
603
+
#####cluster.spec.clusterAgentDeploymentCustomization and cluster.spec.fleetAgentDeploymentCustomization
600
604
601
605
The `DeploymentCustomization` fields are of 3 types:
602
606
-`appendTolerations`: adds tolerations to the appropriate deployment (cluster-agent/fleet-agent)
@@ -611,7 +615,7 @@ A `Toleration` is matched to a regex which is provided by upstream [apimachinery
611
615
612
616
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.
617
621
@@ -637,10 +641,16 @@ the format expected by Go, and helps to prevent subtle issues elsewhere when wri
637
641
638
642
The only exception to this check is if the existing cluster already has a `NO_PROXY` variable which includes spaces in its value. In this case, update operations are permitted. If `NO_PROXY` is later updated to value which does not contain spaces, this exception will no longer occur.
639
643
644
+
##### Etcd S3 CloudCredential Secret
645
+
646
+
Prevent the update of objects if the secret specified in `.spec.rkeConfig.etcd.s3.cloudCredentialName` does not exist.
647
+
640
648
### Mutation Checks
641
649
642
650
#### On Create
643
651
652
+
##### Creator ID Annotation
653
+
644
654
When a cluster is created `field.cattle.io/creatorId` is set to the Username from the request.
645
655
646
656
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
@@ -24,6 +24,10 @@ following:
24
24
- Equal to another data directory
25
25
- Attempts to nest another data directory
26
26
27
+
#### Etcd S3 CloudCredential Secret
28
+
29
+
Prevent the creation of objects if the secret specified in `.spec.rkeConfig.etcd.s3.cloudCredentialName` does not exist.
30
+
27
31
### On Update
28
32
29
33
#### Creator ID Annotation
@@ -40,7 +44,7 @@ section. A secondary validator will ensure that the effective data directory for
40
44
from the one chosen during cluster creation. Additionally, the changing of a data directory for the `system-agent`,
41
45
kubernetes distro (RKE2/K3s), and CAPR components is also prohibited.
42
46
43
-
### cluster.spec.clusterAgentDeploymentCustomization and cluster.spec.fleetAgentDeploymentCustomization
47
+
####cluster.spec.clusterAgentDeploymentCustomization and cluster.spec.fleetAgentDeploymentCustomization
44
48
45
49
The `DeploymentCustomization` fields are of 3 types:
46
50
-`appendTolerations`: adds tolerations to the appropriate deployment (cluster-agent/fleet-agent)
@@ -55,7 +59,7 @@ A `Toleration` is matched to a regex which is provided by upstream [apimachinery
55
59
56
60
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.
61
65
@@ -81,10 +85,16 @@ the format expected by Go, and helps to prevent subtle issues elsewhere when wri
81
85
82
86
The only exception to this check is if the existing cluster already has a `NO_PROXY` variable which includes spaces in its value. In this case, update operations are permitted. If `NO_PROXY` is later updated to value which does not contain spaces, this exception will no longer occur.
83
87
88
+
#### Etcd S3 CloudCredential Secret
89
+
90
+
Prevent the update of objects if the secret specified in `.spec.rkeConfig.etcd.s3.cloudCredentialName` does not exist.
91
+
84
92
## Mutation Checks
85
93
86
94
### On Create
87
95
96
+
#### Creator ID Annotation
97
+
88
98
When a cluster is created `field.cattle.io/creatorId` is set to the Username from the request.
89
99
90
100
If `field.cattle.io/no-creator-rbac` annotation is set, `field.cattle.io/creatorId` does not get set.
0 commit comments