From 31c0cb8da6a5800be12062c4068880d9db6e42c5 Mon Sep 17 00:00:00 2001 From: caixisheng Date: Thu, 2 Dec 2021 18:15:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor(root):=20=E6=B7=BB=E5=8A=A0=20volumeCl?= =?UTF-8?q?aims?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/core/v1alpha2/volume_claim.go | 1 + .../crds/core.oam.dev_applicationconfigurations.yaml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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