Skip to content

Commit

Permalink
feat: add matchLabelKeys check
Browse files Browse the repository at this point in the history
  • Loading branch information
gshilei committed Nov 21, 2024
1 parent fa70365 commit ab42174
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ schema TopologySpreadConstraint:
check:
maxSkew > 0, "maxSkew must be greater than 0"
whenUnsatisfiable in ["DoNotSchedule", "ScheduleAnyway"], "whenUnsatisfiable value is invalid"
labelSelector != Undefined if matchLabelKeys, "matchLabelKeys can't be set when labelSelector isn't set"
minDomains > 0 if minDomains != Undefined, "minDomains must be greater than 0"
nodeAffinityPolicy in ["Ignore", "Honor"] if nodeAffinityPolicy, "nodeAffinityPolicy value is invalid"
nodeTaintsPolicy in ["Ignore", "Honor"] if nodeTaintsPolicy, "nodeTaintsPolicy value is invalid"
Expand Down

0 comments on commit ab42174

Please sign in to comment.