Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
0d5df9f6
Unverified
Commit
0d5df9f6
authored
Mar 09, 2026
by
hhzhang16
Committed by
GitHub
Mar 09, 2026
Browse files
fix: allow x-kubernetes-preserve-unknown-fields (#7128)
Signed-off-by:
Hannah Zhang
<
hannahz@nvidia.com
>
parent
fc55f612
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
deploy/helm/charts/platform/components/operator/crds/nvidia.com_dynamographdeploymentrequests.yaml
...erator/crds/nvidia.com_dynamographdeploymentrequests.yaml
+1
-0
deploy/operator/Makefile
deploy/operator/Makefile
+4
-0
deploy/operator/config/crd/bases/nvidia.com_dynamographdeploymentrequests.yaml
...g/crd/bases/nvidia.com_dynamographdeploymentrequests.yaml
+1
-0
No files found.
deploy/helm/charts/platform/components/operator/crds/nvidia.com_dynamographdeploymentrequests.yaml
View file @
0d5df9f6
...
...
@@ -1024,6 +1024,7 @@ spec:
Standard object's metadata.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
type: object
x-kubernetes-preserve-unknown-fields: true
spec:
description: |-
Specification of the desired behavior of the pod.
...
...
deploy/operator/Makefile
View file @
0d5df9f6
...
...
@@ -87,6 +87,10 @@ manifests: controller-gen ensure-yq ## Generate WebhookConfiguration, ClusterRol
for
file
in
config/crd/bases/
*
.yaml
;
do
\
yq
eval
'(.. | select(has("parameters")) | .parameters | select(has("format") and .format == "byte")) |= (del(.format) | del(.type) | .x-kubernetes-preserve-unknown-fields = true)'
-i
--indent
2
$$
file
||
exit
1
;
\
done
echo
"Fixing profilingJob template metadata: controller-gen emits bare type: object for metav1.ObjectMeta, add x-kubernetes-preserve-unknown-fields so labels/annotations are accepted"
for
file
in
config/crd/bases/
*
.yaml
;
do
\
yq
eval
'(.. | select(has("profilingJob")) | .profilingJob.properties.template.properties.metadata)."x-kubernetes-preserve-unknown-fields" = true'
-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
\
...
...
deploy/operator/config/crd/bases/nvidia.com_dynamographdeploymentrequests.yaml
View file @
0d5df9f6
...
...
@@ -1024,6 +1024,7 @@ spec:
Standard object's metadata.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
type: object
x-kubernetes-preserve-unknown-fields: true
spec:
description: |-
Specification of the desired behavior of the pod.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment