Skip to content

Commit

Permalink
fix: fix kwok requirements cel (kubernetes-sigs#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
njtran authored Jan 26, 2024
1 parent 80b052c commit f78bf39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/validation/kwok-requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## checking for restricted labels while filtering out well-known labels
yq eval '.spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.requirements.items.properties.key.x-kubernetes-validations += [
{"message": "label domain \"karpenter.kwok.sh\" is restricted", "rule": "self in [\"karpenter.kwok.sh/instance-cpu\", \"karpenter.kwok.sh/instance-memory\", \"karpenter.kwok.sh/instance-family\", \"karpenter.kwok.sh/instance-size\"] || !self.find(\"^([^/]+)\").endsWith(\"karpenter.sh\")"}]' -i pkg/apis/crds/karpenter.sh_nodeclaims.yaml
{"message": "label domain \"karpenter.kwok.sh\" is restricted", "rule": "self in [\"karpenter.kwok.sh/instance-cpu\", \"karpenter.kwok.sh/instance-memory\", \"karpenter.kwok.sh/instance-family\", \"karpenter.kwok.sh/instance-size\"] || !self.find(\"^([^/]+)\").endsWith(\"karpenter.kwok.sh\")"}]' -i pkg/apis/crds/karpenter.sh_nodeclaims.yaml

# Adding validation for nodepool

Expand Down

0 comments on commit f78bf39

Please sign in to comment.