Skip to content

Commit

Permalink
label struct comment, make bundle, deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
kaovilai committed May 10, 2022
1 parent 4936b44 commit 3ef486a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/oadp_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions bundle/manifests/oadp.openshift.io_dataprotectionapplications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions config/crd/bases/oadp.openshift.io_dataprotectionapplications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3ef486a

Please sign in to comment.