Documentation ¶
Index ¶
- Constants
- type APIManagerBackup
- func (b *APIManagerBackup) APIManager() *appsv1alpha1.APIManager
- func (b *APIManagerBackup) BackupAPIManagerCustomResourceToPVCJob() *batchv1.Job
- func (b *APIManagerBackup) BackupDestinationPVC() *v1.PersistentVolumeClaim
- func (b *APIManagerBackup) BackupSecretsAndConfigMapsToPVCJob() *batchv1.Job
- func (b *APIManagerBackup) BackupSystemFileStoragePVCToPVCJob() *batchv1.Job
- func (b *APIManagerBackup) Role() *rbacv1.Role
- func (b *APIManagerBackup) RoleBinding() *rbacv1.RoleBinding
- func (b *APIManagerBackup) ServiceAccount() *v1.ServiceAccount
- func (b *APIManagerBackup) Validate() error
- type APIManagerBackupOptions
- type APIManagerBackupOptionsProvider
- type APIManagerBackupPVCOptions
- type BackupDestinationPVC
Constants ¶
View Source
const APIManagerSerializedBackupFileName = "apimanager-backup.json"
View Source
const BackupPVCMountPath = "/backup"
View Source
const ServiceAccountName = "apimanager-backup"
View Source
const SystemFileStoragePVCMountPath = "/system-filestorage-pvc"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIManagerBackup ¶
type APIManagerBackup struct {
// contains filtered or unexported fields
}
func NewAPIManagerBackup ¶
func NewAPIManagerBackup(options *APIManagerBackupOptions) *APIManagerBackup
func (*APIManagerBackup) APIManager ¶
func (b *APIManagerBackup) APIManager() *appsv1alpha1.APIManager
func (*APIManagerBackup) BackupAPIManagerCustomResourceToPVCJob ¶
func (b *APIManagerBackup) BackupAPIManagerCustomResourceToPVCJob() *batchv1.Job
func (*APIManagerBackup) BackupDestinationPVC ¶
func (b *APIManagerBackup) BackupDestinationPVC() *v1.PersistentVolumeClaim
func (*APIManagerBackup) BackupSecretsAndConfigMapsToPVCJob ¶
func (b *APIManagerBackup) BackupSecretsAndConfigMapsToPVCJob() *batchv1.Job
func (*APIManagerBackup) BackupSystemFileStoragePVCToPVCJob ¶
func (b *APIManagerBackup) BackupSystemFileStoragePVCToPVCJob() *batchv1.Job
func (*APIManagerBackup) Role ¶ added in v0.9.0
func (b *APIManagerBackup) Role() *rbacv1.Role
func (*APIManagerBackup) RoleBinding ¶ added in v0.9.0
func (b *APIManagerBackup) RoleBinding() *rbacv1.RoleBinding
func (*APIManagerBackup) ServiceAccount ¶ added in v0.9.0
func (b *APIManagerBackup) ServiceAccount() *v1.ServiceAccount
func (*APIManagerBackup) Validate ¶
func (b *APIManagerBackup) Validate() error
type APIManagerBackupOptions ¶
type APIManagerBackupOptions struct { Namespace string `validate:"required"` // Namespace where the K8s related objects to the backup will be created/looked APIManagerBackupName string `validate:"required"` // Name of the APIManagerBackup CR. NOT the APIManager cr name APIManagerBackupUID types.UID `validate:"required"` // UID of the APIManagerBackup CR APIManagerName string `validate:"required"` // Name of the APIManager CR. NOT the APIManagerBackup cr name APIManager *appsv1alpha1.APIManager `validate:"required"` APIManagerBackupPVCOptions *APIManagerBackupPVCOptions `validate:"required"` OCCLIImageURL string `validate:"required"` }
func NewAPIManagerBackupOptions ¶
func NewAPIManagerBackupOptions() *APIManagerBackupOptions
func (*APIManagerBackupOptions) Validate ¶
func (a *APIManagerBackupOptions) Validate() error
type APIManagerBackupOptionsProvider ¶
type APIManagerBackupOptionsProvider struct { APIManagerBackupCR *appsv1alpha1.APIManagerBackup Client client.Client }
func NewAPIManagerBackupOptionsProvider ¶
func NewAPIManagerBackupOptionsProvider(cr *appsv1alpha1.APIManagerBackup, client client.Client) *APIManagerBackupOptionsProvider
func (*APIManagerBackupOptionsProvider) Options ¶
func (a *APIManagerBackupOptionsProvider) Options() (*APIManagerBackupOptions, error)
type APIManagerBackupPVCOptions ¶
type APIManagerBackupPVCOptions struct {
BackupDestinationPVC BackupDestinationPVC `validate:"required"`
}
func NewAPIManagerBackupPVCOptions ¶
func NewAPIManagerBackupPVCOptions() *APIManagerBackupPVCOptions
func (*APIManagerBackupPVCOptions) Validate ¶
func (a *APIManagerBackupPVCOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.