diff --git a/api/v1/mantlebackup_types.go b/api/v1/mantlebackup_types.go index 709aa684..cb4ca50b 100644 --- a/api/v1/mantlebackup_types.go +++ b/api/v1/mantlebackup_types.go @@ -16,9 +16,6 @@ type MantleBackupSpec struct { // +kubebuilder:validation:Required PVC string `json:"pvc,omitempty"` - // 'namespace' specifies backup target Namespace - Namespace string `json:"namespace,omitempty"` - // NOTE: we CANNOT use metav1.Duration for Expire due to an unresolved k8s bug. // See https://github.com/kubernetes/apiextensions-apiserver/issues/56 for the details. diff --git a/charts/mantle-cluster-wide/templates/mantle.cybozu.io_mantlebackups.yaml b/charts/mantle-cluster-wide/templates/mantle.cybozu.io_mantlebackups.yaml index 53ea86e3..1b8919ad 100644 --- a/charts/mantle-cluster-wide/templates/mantle.cybozu.io_mantlebackups.yaml +++ b/charts/mantle-cluster-wide/templates/mantle.cybozu.io_mantlebackups.yaml @@ -53,9 +53,6 @@ spec: rule: self <= duration('360h') - message: spec.expire is immutable rule: self == oldSelf - namespace: - description: '''namespace'' specifies backup target Namespace' - type: string pvc: description: '''pvc'' specifies backup target PVC' type: string diff --git a/config/crd/bases/mantle.cybozu.io_mantlebackups.yaml b/config/crd/bases/mantle.cybozu.io_mantlebackups.yaml index 53ea86e3..1b8919ad 100644 --- a/config/crd/bases/mantle.cybozu.io_mantlebackups.yaml +++ b/config/crd/bases/mantle.cybozu.io_mantlebackups.yaml @@ -53,9 +53,6 @@ spec: rule: self <= duration('360h') - message: spec.expire is immutable rule: self == oldSelf - namespace: - description: '''namespace'' specifies backup target Namespace' - type: string pvc: description: '''pvc'' specifies backup target PVC' type: string