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
@@ -574,6 +574,10 @@ following:
574
574
- Equal to another data directory
575
575
- Attempts to nest another data directory
576
576
577
+
##### Etcd S3 CloudCredential Secret
578
+
579
+
Prevent the creation of objects if the secret specified in `.spec.rkeConfig.etcd.s3.cloudCredentialName` does not exist.
580
+
577
581
#### On Update
578
582
579
583
##### Creator ID Annotation
@@ -590,7 +594,7 @@ section. A secondary validator will ensure that the effective data directory for
590
594
from the one chosen during cluster creation. Additionally, the changing of a data directory for the `system-agent`,
591
595
kubernetes distro (RKE2/K3s), and CAPR components is also prohibited.
592
596
593
-
#### cluster.spec.clusterAgentDeploymentCustomization and cluster.spec.fleetAgentDeploymentCustomization
597
+
#####cluster.spec.clusterAgentDeploymentCustomization and cluster.spec.fleetAgentDeploymentCustomization
594
598
595
599
The `DeploymentCustomization` fields are of 3 types:
596
600
-`appendTolerations`: adds tolerations to the appropriate deployment (cluster-agent/fleet-agent)
@@ -605,7 +609,7 @@ A `Toleration` is matched to a regex which is provided by upstream [apimachinery
605
609
606
610
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.
611
615
@@ -631,10 +635,16 @@ the format expected by Go, and helps to prevent subtle issues elsewhere when wri
631
635
632
636
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.
633
637
638
+
##### Etcd S3 CloudCredential Secret
639
+
640
+
Prevent the update of objects if the secret specified in `.spec.rkeConfig.etcd.s3.cloudCredentialName` does not exist.
641
+
634
642
### Mutation Checks
635
643
636
644
#### On Create
637
645
646
+
##### Creator ID Annotation
647
+
638
648
When a cluster is created `field.cattle.io/creatorId` is set to the Username from the request.
639
649
640
650
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