Skip to content

Commit

Permalink
feat: add labels and annotations field to volumes
Browse files Browse the repository at this point in the history
Signed-off-by: Bence Csati <[email protected]>
  • Loading branch information
csatib02 committed Oct 10, 2024
1 parent f3d2b59 commit 084aa62
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/volume/volume_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ type KubernetesVolume struct {
type PersistentVolumeClaim struct {
PersistentVolumeClaimSpec corev1.PersistentVolumeClaimSpec `json:"spec,omitempty"`
PersistentVolumeSource corev1.PersistentVolumeClaimVolumeSource `json:"source,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
}

// `path` is the path in case the hostPath volume type is used and no path has been defined explicitly
Expand Down
14 changes: 14 additions & 0 deletions pkg/volume/zz_generated.deepcopy.go

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

0 comments on commit 084aa62

Please sign in to comment.