Documentation ¶
Index ¶
- Constants
- type APIManagerRestore
- func (b *APIManagerRestore) CreateAPIManagerSharedSecretJob() *batchv1.Job
- func (b *APIManagerRestore) RestoreSecretsAndConfigMapsFromPVCJob() *batchv1.Job
- func (b *APIManagerRestore) RestoreSystemFileStoragePVCFromPVCJob() *batchv1.Job
- func (b *APIManagerRestore) Role() *rbacv1.Role
- func (b *APIManagerRestore) RoleBinding() *rbacv1.RoleBinding
- func (b *APIManagerRestore) SecretToShareName() string
- func (b *APIManagerRestore) ServiceAccount() *v1.ServiceAccount
- func (b *APIManagerRestore) SystemStoragePVC(restoreInfo *RuntimeAPIManagerRestoreInfo) *v1.PersistentVolumeClaim
- func (b *APIManagerRestore) ZyncResyncDomainsJob() *batchv1.Job
- type APIManagerRestoreOptions
- type APIManagerRestoreOptionsProvider
- type APIManagerRestorePVCOptions
- type RuntimeAPIManagerRestoreInfo
Constants ¶
View Source
const ( RestorePVCMountPath = "/backup" SystemFileStoragePVCMountPath = "/system-filestorage-pvc" )
View Source
const ServiceAccountName = "apimanager-restore"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIManagerRestore ¶
type APIManagerRestore struct {
// contains filtered or unexported fields
}
func NewAPIManagerRestore ¶
func NewAPIManagerRestore(options *APIManagerRestoreOptions) *APIManagerRestore
func (*APIManagerRestore) CreateAPIManagerSharedSecretJob ¶
func (b *APIManagerRestore) CreateAPIManagerSharedSecretJob() *batchv1.Job
func (*APIManagerRestore) RestoreSecretsAndConfigMapsFromPVCJob ¶
func (b *APIManagerRestore) RestoreSecretsAndConfigMapsFromPVCJob() *batchv1.Job
func (*APIManagerRestore) RestoreSystemFileStoragePVCFromPVCJob ¶
func (b *APIManagerRestore) RestoreSystemFileStoragePVCFromPVCJob() *batchv1.Job
func (*APIManagerRestore) Role ¶ added in v0.9.0
func (b *APIManagerRestore) Role() *rbacv1.Role
func (*APIManagerRestore) RoleBinding ¶ added in v0.9.0
func (b *APIManagerRestore) RoleBinding() *rbacv1.RoleBinding
func (*APIManagerRestore) SecretToShareName ¶
func (b *APIManagerRestore) SecretToShareName() string
func (*APIManagerRestore) ServiceAccount ¶ added in v0.9.0
func (b *APIManagerRestore) ServiceAccount() *v1.ServiceAccount
func (*APIManagerRestore) SystemStoragePVC ¶
func (b *APIManagerRestore) SystemStoragePVC(restoreInfo *RuntimeAPIManagerRestoreInfo) *v1.PersistentVolumeClaim
func (*APIManagerRestore) ZyncResyncDomainsJob ¶
func (b *APIManagerRestore) ZyncResyncDomainsJob() *batchv1.Job
type APIManagerRestoreOptions ¶
type APIManagerRestoreOptions struct { Namespace string `validate:"required"` // Namespace where the K8s related objects to the restore will be created/looked APIManagerRestoreName string `validate:"required"` // Name of the APIManagerRestore CR. NOT the backup or APIManager name APIManagerRestoreUID types.UID `validate:"required"` // UID of the APIManagerRestore CR APIManagerRestorePVCOptions *APIManagerRestorePVCOptions `validate:"required"` OCCLIImageURL string `validate:"required"` }
func NewAPIManagerRestoreOptions ¶
func NewAPIManagerRestoreOptions() *APIManagerRestoreOptions
func (*APIManagerRestoreOptions) Validate ¶
func (a *APIManagerRestoreOptions) Validate() error
type APIManagerRestoreOptionsProvider ¶
type APIManagerRestoreOptionsProvider struct { APIManagerRestoreCR *appsv1alpha1.APIManagerRestore Client client.Client }
func NewAPIManagerRestoreOptionsProvider ¶
func NewAPIManagerRestoreOptionsProvider(cr *appsv1alpha1.APIManagerRestore, client client.Client) *APIManagerRestoreOptionsProvider
func (*APIManagerRestoreOptionsProvider) Options ¶
func (a *APIManagerRestoreOptionsProvider) Options() (*APIManagerRestoreOptions, error)
type APIManagerRestorePVCOptions ¶
type APIManagerRestorePVCOptions struct {
PersistentVolumeClaimVolumeSource v1.PersistentVolumeClaimVolumeSource `validate:"required"`
}
func NewAPIManagerRestorePVCOptions ¶
func NewAPIManagerRestorePVCOptions() *APIManagerRestorePVCOptions
func (*APIManagerRestorePVCOptions) Validate ¶
func (a *APIManagerRestorePVCOptions) Validate() error
type RuntimeAPIManagerRestoreInfo ¶
type RuntimeAPIManagerRestoreInfo struct {
PVCStorageClass *string
}
Click to show internal directories.
Click to hide internal directories.