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: pkg/apis/v1alpha1/ecsnodeclass.go
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ const (
31
31
32
32
// ECSNodeClassSpec is the top level specification for the AlibabaCloud Karpenter Provider.
33
33
// This will contain the configuration necessary to launch instances in AlibabaCloud.
34
+
// +kubebuilder:validation:XValidation:rule="!(has(self.passwordInherit) ? (self.passwordInherit ? has(self.password) : false) : false)",message="password cannot be set when passwordInherit is true"
34
35
typeECSNodeClassSpecstruct {
35
36
// VSwitchSelectorTerms is a list of or vSwitch selector terms. The terms are ORed.
36
37
// +kubebuilder:validation:XValidation:message="vSwitchSelectorTerms cannot be empty",rule="self.size() != 0"
@@ -96,6 +97,18 @@ type ECSNodeClassSpec struct {
96
97
// UserData to be applied to the provisioned nodes and executed before/after the node is registered.
0 commit comments