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: api/v1beta1/machinedrainrules_types.go
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -134,8 +134,9 @@ type MachineDrainRuleDrainConfig struct {
134
134
Order*int32`json:"order,omitempty"`
135
135
}
136
136
137
+
// MachineDrainRuleMachineSelector defines to which Machines this MachineDrainRule should be applied.
137
138
// +kubebuilder:validation:MinProperties=1
138
-
typeMachineDrainRuleMachineSelectorstruct {//nolint:revive // Intentionally not adding a godoc comment as it would show up additionally to the field comment in the CRD
139
+
typeMachineDrainRuleMachineSelectorstruct {
139
140
// selector is a label selector which selects Machines by their labels.
140
141
// This field follows standard label selector semantics; if not present or
141
142
// empty, it selects all Machines.
@@ -160,8 +161,9 @@ type MachineDrainRuleMachineSelector struct { //nolint:revive // Intentionally n
// MachineDrainRulePodSelector defines to which Pods this MachineDrainRule should be applied.
163
165
// +kubebuilder:validation:MinProperties=1
164
-
typeMachineDrainRulePodSelectorstruct {//nolint:revive // Intentionally not adding a godoc comment as it would show up additionally to the field comment in the CRD
166
+
typeMachineDrainRulePodSelectorstruct {
165
167
// selector is a label selector which selects Pods by their labels.
166
168
// This field follows standard label selector semantics; if not present or
wantErr: "MachineDrainRule.cluster.x-k8s.io \"mdr\" is invalid: ["+
129
+
wantErr: "admission webhook \"validation.machinedrainrule.cluster.x-k8s.io\" denied the request: "+
130
+
"MachineDrainRule.cluster.x-k8s.io \"mdr\" is invalid: ["+
126
131
"spec.machines[0].selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string(nil), MatchExpressions:[]v1.LabelSelectorRequirement{v1.LabelSelectorRequirement{Key:\"\", Operator:\"Invalid-Operator\", Values:[]string(nil)}}}: \"Invalid-Operator\" is not a valid label selector operator, "+
127
132
"spec.machines[0].clusterSelector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string(nil), MatchExpressions:[]v1.LabelSelectorRequirement{v1.LabelSelectorRequirement{Key:\"\", Operator:\"Invalid-Operator\", Values:[]string(nil)}}}: \"Invalid-Operator\" is not a valid label selector operator, "+
128
133
"spec.pods[0].selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string(nil), MatchExpressions:[]v1.LabelSelectorRequirement{v1.LabelSelectorRequirement{Key:\"\", Operator:\"Invalid-Operator\", Values:[]string(nil)}}}: \"Invalid-Operator\" is not a valid label selector operator, "+
129
134
"spec.pods[0].namespaceSelector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string(nil), MatchExpressions:[]v1.LabelSelectorRequirement{v1.LabelSelectorRequirement{Key:\"\", Operator:\"Invalid-Operator\", Values:[]string(nil)}}}: \"Invalid-Operator\" is not a valid label selector operator]",
0 commit comments