Skip to content

Commit

Permalink
added a field named archiverRef in retoresession_types
Browse files Browse the repository at this point in the history
  • Loading branch information
arnab-baishnab committed Nov 8, 2024
1 parent 5a2462d commit e09928a
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 2 deletions.
17 changes: 15 additions & 2 deletions apis/core/v1alpha1/restoresession_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions apis/core/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

101 changes: 101 additions & 0 deletions crds/core.kubestash.com_restoresessions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e09928a

Please sign in to comment.