diff --git a/apis/core/v1alpha1/restoresession_types.go b/apis/core/v1alpha1/restoresession_types.go index 47f538360..b185ede91 100644 --- a/apis/core/v1alpha1/restoresession_types.go +++ b/apis/core/v1alpha1/restoresession_types.go @@ -177,6 +177,15 @@ type MSSQLServerManifestOptions struct { // +optional AuthSecretName string `json:"authSecretName,omitempty"` + // Archiver specifies whether to restore the Archiver manifest or not + // +kubebuilder:default=true + // +optional + Archiver *bool `json:"archiver,omitempty"` + + // ArchiverRef specifies the name of the ArchiverRef + // +optional + ArchiverRef *kmapi.ObjectReference `json:"archiverRef,omitempty"` + // InternalAuthIssuerRef specifies the name of the IssuerRef used for endpoint authentication. // +optional InternalAuthIssuerRef *core.TypedLocalObjectReference `json:"internalAuthIssuerRef,omitempty"` @@ -243,14 +252,18 @@ type KubeDBManifestOptions struct { // +optional AuthSecret *bool `json:"authSecret,omitempty"` + // AuthSecretName specifies new name of the AuthSecret yaml after restore + // +optional + AuthSecretName string `json:"authSecretName,omitempty"` + // Archiver specifies whether to restore the Archiver manifest or not // +kubebuilder:default=true // +optional Archiver *bool `json:"archiver,omitempty"` - // AuthSecretName specifies new name of the AuthSecret yaml after restore + // ArchiverRef specifies the name of the ArchiverRef // +optional - AuthSecretName string `json:"authSecretName,omitempty"` + ArchiverRef *kmapi.ObjectReference `json:"archiverRef,omitempty"` // ConfigSecret specifies whether to restore the ConfigSecret manifest or not // +kubebuilder:default=true diff --git a/apis/core/v1alpha1/zz_generated.deepcopy.go b/apis/core/v1alpha1/zz_generated.deepcopy.go index 7f12badfd..3592c33c3 100644 --- a/apis/core/v1alpha1/zz_generated.deepcopy.go +++ b/apis/core/v1alpha1/zz_generated.deepcopy.go @@ -1068,6 +1068,11 @@ func (in *KubeDBManifestOptions) DeepCopyInto(out *KubeDBManifestOptions) { *out = new(bool) **out = **in } + if in.ArchiverRef != nil { + in, out := &in.ArchiverRef, &out.ArchiverRef + *out = new(v1.ObjectReference) + **out = **in + } if in.ConfigSecret != nil { in, out := &in.ConfigSecret, &out.ConfigSecret *out = new(bool) diff --git a/crds/core.kubestash.com_restoresessions.yaml b/crds/core.kubestash.com_restoresessions.yaml index e94c6be4e..feeca4843 100644 --- a/crds/core.kubestash.com_restoresessions.yaml +++ b/crds/core.kubestash.com_restoresessions.yaml @@ -24094,6 +24094,18 @@ spec: description: Archiver specifies whether to restore the Archiver manifest or not type: boolean + archiverRef: + description: ArchiverRef specifies the name of the ArchiverRef + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + required: + - name + type: object authSecret: default: true description: AuthSecret specifies whether to restore the AuthSecret @@ -24161,6 +24173,18 @@ spec: description: Archiver specifies whether to restore the Archiver manifest or not type: boolean + archiverRef: + description: ArchiverRef specifies the name of the ArchiverRef + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + required: + - name + type: object authSecret: default: true description: AuthSecret specifies whether to restore the AuthSecret @@ -24223,6 +24247,23 @@ spec: description: MSSQLServer specifies the options for selecting particular MSSQLServer components to restore in manifest restore properties: + archiver: + default: true + description: Archiver specifies whether to restore the Archiver + manifest or not + type: boolean + archiverRef: + description: ArchiverRef specifies the name of the ArchiverRef + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + required: + - name + type: object authSecret: default: true description: AuthSecret specifies whether to restore the AuthSecret @@ -24297,6 +24338,18 @@ spec: description: Archiver specifies whether to restore the Archiver manifest or not type: boolean + archiverRef: + description: ArchiverRef specifies the name of the ArchiverRef + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + required: + - name + type: object authSecret: default: true description: AuthSecret specifies whether to restore the AuthSecret @@ -24364,6 +24417,18 @@ spec: description: Archiver specifies whether to restore the Archiver manifest or not type: boolean + archiverRef: + description: ArchiverRef specifies the name of the ArchiverRef + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + required: + - name + type: object authSecret: default: true description: AuthSecret specifies whether to restore the AuthSecret @@ -24431,6 +24496,18 @@ spec: description: Archiver specifies whether to restore the Archiver manifest or not type: boolean + archiverRef: + description: ArchiverRef specifies the name of the ArchiverRef + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + required: + - name + type: object authSecret: default: true description: AuthSecret specifies whether to restore the AuthSecret @@ -24546,6 +24623,18 @@ spec: description: Archiver specifies whether to restore the Archiver manifest or not type: boolean + archiverRef: + description: ArchiverRef specifies the name of the ArchiverRef + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + required: + - name + type: object authSecret: default: true description: AuthSecret specifies whether to restore the AuthSecret @@ -24622,6 +24711,18 @@ spec: description: Archiver specifies whether to restore the Archiver manifest or not type: boolean + archiverRef: + description: ArchiverRef specifies the name of the ArchiverRef + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + required: + - name + type: object authSecret: default: true description: AuthSecret specifies whether to restore the AuthSecret