diff --git a/apis/core/v1alpha2/volume_claim.go b/apis/core/v1alpha2/volume_claim.go index f659096..d1838ce 100644 --- a/apis/core/v1alpha2/volume_claim.go +++ b/apis/core/v1alpha2/volume_claim.go @@ -48,6 +48,7 @@ type VolumeClaimList struct { type VolumeClaimConfig struct { Name string `json:"name"` // type enum:"HostPath,StorageClass", default is StorageClass. + Type string `json:"type,omitempty"` HostPath string `json:"hostPath,omitempty"` StorageClassName string `json:"storageClassName,omitempty"` Size string `json:"size,omitempty"` diff --git a/charts/oam-kubernetes-runtime/crds/core.oam.dev_applicationconfigurations.yaml b/charts/oam-kubernetes-runtime/crds/core.oam.dev_applicationconfigurations.yaml index 13fb32d..445c221 100644 --- a/charts/oam-kubernetes-runtime/crds/core.oam.dev_applicationconfigurations.yaml +++ b/charts/oam-kubernetes-runtime/crds/core.oam.dev_applicationconfigurations.yaml @@ -236,7 +236,6 @@ spec: items: properties: hostPath: - description: type enum:"HostPath,StorageClass", default is StorageClass. type: string name: type: string @@ -244,6 +243,9 @@ spec: type: string storageClassName: type: string + type: + description: type enum:"HostPath,StorageClass", default is StorageClass. + type: string required: - name type: object