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
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ type ECSNodeClassSpec struct {
59
59
// +optional
60
60
UserData*string`json:"userData,omitempty"`
61
61
// KubeletConfiguration defines args to be used when configuring kubelet on provisioned nodes.
62
-
// They are a subset of the upstream types, recognizing not all options may be supported.
62
+
// They are a vswitch of the upstream types, recognizing not all options may be supported.
63
63
// Wherever possible, the types and names should reflect the upstream kubelet types.
64
64
// +kubebuilder:validation:XValidation:message="imageGCHighThresholdPercent must be greater than imageGCLowThresholdPercent",rule="has(self.imageGCHighThresholdPercent) && has(self.imageGCLowThresholdPercent) ? self.imageGCHighThresholdPercent > self.imageGCLowThresholdPercent : true"
65
65
// +kubebuilder:validation:XValidation:message="evictionSoft OwnerKey does not have a matching evictionSoftGracePeriod",rule="has(self.evictionSoft) ? self.evictionSoft.all(e, (e in self.evictionSoftGracePeriod)):true"
// Tags to be applied on ecs resources like instances and launch templates.
73
+
// +kubebuilder:validation:XValidation:message="empty tag keys aren't supported",rule="self.all(k, k != '')"
74
+
// +kubebuilder:validation:XValidation:message="tag contains a restricted tag matching ecs:ecs-cluster-name",rule="self.all(k, k !='ecs:ecs-cluster-name')"
75
+
// +kubebuilder:validation:XValidation:message="tag contains a restricted tag matching kubernetes.io/cluster/",rule="self.all(k, !k.startsWith('kubernetes.io/cluster') )"
76
+
// +kubebuilder:validation:XValidation:message="tag contains a restricted tag matching karpenter.sh/nodepool",rule="self.all(k, k != 'karpenter.sh/nodepool')"
77
+
// +kubebuilder:validation:XValidation:message="tag contains a restricted tag matching karpenter.sh/nodeclaim",rule="self.all(k, k !='karpenter.sh/nodeclaim')"
78
+
// +kubebuilder:validation:XValidation:message="tag contains a restricted tag matching karpenter.k8s.alibabacloud/ecsnodeclass",rule="self.all(k, k !='karpenter.k8s.alibabacloud/ecsnodeclass')"
79
+
// +optional
80
+
Tagsmap[string]string`json:"tags,omitempty"`
72
81
}
73
82
74
83
// VSwitchSelectorTerm defines selection logic for a vSwitch used by Karpenter to launch nodes.
@@ -116,7 +125,7 @@ type ImageSelectorTerm struct {
116
125
// +kubebuilder:validation:MaxLength=30
117
126
// +optional
118
127
Aliasstring`json:"alias,omitempty"`
119
-
// Tags is a map of key/value tags used to select subsets
128
+
// Tags is a map of key/value tags used to select vswitches
120
129
// Specifying '*' for a value selects all values for a given tag key.
121
130
// +kubebuilder:validation:XValidation:message="empty tag keys aren't supported",rule="self.all(k, k != '')"
122
131
// +kubebuilder:validation:MaxProperties:=20
@@ -136,7 +145,7 @@ type ImageSelectorTerm struct {
136
145
}
137
146
138
147
// KubeletConfiguration defines args to be used when configuring kubelet on provisioned nodes.
139
-
// They are a subset of the upstream types, recognizing not all options may be supported.
148
+
// They are a vswitch of the upstream types, recognizing not all options may be supported.
140
149
// Wherever possible, the types and names should reflect the upstream kubelet types.
0 commit comments