Skip to content

Commit

Permalink
fix spec.imageChartStorage.filesystem.chartPersistentVolume optional
Browse files Browse the repository at this point in the history
Signed-off-by: Ziming Zhang <zziming@vmware.com>
  • Loading branch information
bitsf committed Dec 11, 2020
1 parent efdc160 commit 3c17809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/goharbor.io/v1alpha2/harbor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func (r *HarborStorageImageChartStorageSpec) Validate() error {

type HarborStorageImageChartStorageFileSystemSpec struct {
// +kubebuilder:validation:Optional
ChartPersistentVolume *HarborStoragePersistentVolumeSpec `json:"chartPersistentVolume"`
ChartPersistentVolume *HarborStoragePersistentVolumeSpec `json:"chartPersistentVolume,omitempty"`

// +kubebuilder:validation:Required
RegistryPersistentVolume HarborStorageRegistryPersistentVolumeSpec `json:"registryPersistentVolume"`
Expand Down

0 comments on commit 3c17809

Please sign in to comment.