Skip to content

Commit d8b0120

Browse files
committed
feat(dcgm-exporter): add new annotation property specific to that DaemonSet
1 parent afda1f7 commit d8b0120

6 files changed

Lines changed: 39 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ kubeconfig
3333

3434
# Bundle artifacts
3535
bundle.Dockerfile
36+
37+
# User specific tooling
38+
mise.toml

api/nvidia/v1/clusterpolicy_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,11 @@ type DCGMExporterSpec struct {
970970
// +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.x-descriptors="urn:alm:descriptor:com.tectonic.ui:advanced,urn:alm:descriptor:com.tectonic.ui:text"
971971
Args []string `json:"args,omitempty"`
972972

973+
// Optional: Annotations is an unstructured key value map stored with a resource that may be
974+
// set by external tools to store and retrieve arbitrary metadata. They are not
975+
// queryable and should be preserved when modifying objects.
976+
Annotations map[string]string `json:"annotations,omitempty"`
977+
973978
// Optional: List of environment variables
974979
// +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true
975980
// +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Environment Variables"

api/nvidia/v1/zz_generated.deepcopy.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle/manifests/nvidia.com_clusterpolicies.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,14 @@ spec:
553553
dcgmExporter:
554554
description: DCGMExporter spec
555555
properties:
556+
annotations:
557+
additionalProperties:
558+
type: string
559+
description: |-
560+
Optional: Annotations is an unstructured key value map stored with a resource that may be
561+
set by external tools to store and retrieve arbitrary metadata. They are not
562+
queryable and should be preserved when modifying objects.
563+
type: object
556564
args:
557565
description: 'Optional: List of arguments'
558566
items:

config/crd/bases/nvidia.com_clusterpolicies.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,14 @@ spec:
553553
dcgmExporter:
554554
description: DCGMExporter spec
555555
properties:
556+
annotations:
557+
additionalProperties:
558+
type: string
559+
description: |-
560+
Optional: Annotations is an unstructured key value map stored with a resource that may be
561+
set by external tools to store and retrieve arbitrary metadata. They are not
562+
queryable and should be preserved when modifying objects.
563+
type: object
556564
args:
557565
description: 'Optional: List of arguments'
558566
items:

deployments/gpu-operator/crds/nvidia.com_clusterpolicies.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,14 @@ spec:
553553
dcgmExporter:
554554
description: DCGMExporter spec
555555
properties:
556+
annotations:
557+
additionalProperties:
558+
type: string
559+
description: |-
560+
Optional: Annotations is an unstructured key value map stored with a resource that may be
561+
set by external tools to store and retrieve arbitrary metadata. They are not
562+
queryable and should be preserved when modifying objects.
563+
type: object
556564
args:
557565
description: 'Optional: List of arguments'
558566
items:

0 commit comments

Comments
 (0)