diff --git a/api/v1alpha1/oadp_types.go b/api/v1alpha1/oadp_types.go index 85c0a6e973..f273393e36 100644 --- a/api/v1alpha1/oadp_types.go +++ b/api/v1alpha1/oadp_types.go @@ -82,7 +82,7 @@ type VeleroConfig struct { // PodConfig defines the pod configuration options type PodConfig struct { - // Labels + // Labels to add to pod // +optional Labels map[string]string `json:"labels,omitempty"` // NodeSelector defines the nodeSelector to be supplied to Restic podSpec diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 2f11ca55f5..d6d7a79cad 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -370,6 +370,13 @@ func (in *DataProtectionApplicationStatus) DeepCopy() *DataProtectionApplication // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodConfig) DeepCopyInto(out *PodConfig) { *out = *in + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } if in.NodeSelector != nil { in, out := &in.NodeSelector, &out.NodeSelector *out = make(map[string]string, len(*in)) diff --git a/bundle/manifests/oadp.openshift.io_dataprotectionapplications.yaml b/bundle/manifests/oadp.openshift.io_dataprotectionapplications.yaml index 6c6e7ccd8b..249ae046a1 100644 --- a/bundle/manifests/oadp.openshift.io_dataprotectionapplications.yaml +++ b/bundle/manifests/oadp.openshift.io_dataprotectionapplications.yaml @@ -192,6 +192,11 @@ spec: podConfig: description: Pod specific configuration properties: + labels: + additionalProperties: + type: string + description: Labels to add to pod + type: object nodeSelector: additionalProperties: type: string @@ -329,6 +334,11 @@ spec: podConfig: description: Pod specific configuration properties: + labels: + additionalProperties: + type: string + description: Labels to add to pod + type: object nodeSelector: additionalProperties: type: string diff --git a/config/crd/bases/oadp.openshift.io_dataprotectionapplications.yaml b/config/crd/bases/oadp.openshift.io_dataprotectionapplications.yaml index 6aab76f551..4e03eab7e5 100644 --- a/config/crd/bases/oadp.openshift.io_dataprotectionapplications.yaml +++ b/config/crd/bases/oadp.openshift.io_dataprotectionapplications.yaml @@ -194,6 +194,11 @@ spec: podConfig: description: Pod specific configuration properties: + labels: + additionalProperties: + type: string + description: Labels to add to pod + type: object nodeSelector: additionalProperties: type: string @@ -331,6 +336,11 @@ spec: podConfig: description: Pod specific configuration properties: + labels: + additionalProperties: + type: string + description: Labels to add to pod + type: object nodeSelector: additionalProperties: type: string