Unverified Commit bbe8dbb2 authored by julienmancuso's avatar julienmancuso Committed by GitHub
Browse files

fix: remove containers from required property of extraPodSpec (#2153)

parent cfc6178a
......@@ -4805,8 +4805,7 @@ spec:
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
required:
- containers
required: []
type: object
ingress:
properties:
......
......@@ -4860,8 +4860,7 @@ spec:
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
required:
- containers
required: []
type: object
ingress:
properties:
......
......@@ -63,6 +63,10 @@ manifests: controller-gen ensure-yq ## Generate WebhookConfiguration, ClusterRol
for file in config/crd/bases/*.yaml; do \
yq eval '(.. | select(has("mainContainer")) | .mainContainer.required) |= (. - ["name"])' -i --indent 2 $$file || exit 1; \
done
echo "Removing containers from extraPodSpec required fields"
for file in config/crd/bases/*.yaml; do \
yq eval '(.. | select(has("extraPodSpec")) | .extraPodSpec.required) |= (. - ["containers"])' -i --indent 2 $$file || exit 1; \
done
echo "Adding NVIDIA header to CRD files"
for file in config/crd/bases/*.yaml; do \
if ! head -20 "$$file" | grep -q "NVIDIA CORPORATION"; then \
......
......@@ -4805,8 +4805,7 @@ spec:
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
required:
- containers
required: []
type: object
ingress:
properties:
......
......@@ -4860,8 +4860,7 @@ spec:
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
required:
- containers
required: []
type: object
ingress:
properties:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment