Documentation ¶
Index ¶
- Constants
- func EnsureBackupJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, ...) error
- func EnsureCronJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, ...) error
- func EnsureRecoveryRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, ...) error
- func EnsureRepoReaderRBAC(kubeClient kubernetes.Interface, stashClient stash_cs.Interface, ...) error
- func EnsureRepoReaderRolebindingDeleted(kubeClient kubernetes.Interface, stashClient stash_cs.Interface, ...) error
- func EnsureRestoreInitContainerRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, ...) error
- func EnsureRestoreJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, ...) error
- func EnsureScaledownJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, ...) error
- func EnsureSidecarClusterRole(kubeClient kubernetes.Interface) error
- func EnsureSidecarRoleBinding(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, ...) error
- func EnsureUnnecessaryWorkloadRBACDeleted(kubeClient kubernetes.Interface, w *wapi.Workload) error
- func EnsureVolumeSnapshotRestorerJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, ...) error
- func EnsureVolumeSnapshotterJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, ...) error
- func GetRepoReaderRoleBindingName(name, namespace string) string
Constants ¶
View Source
const ( ScaledownJobRole = "stash-scaledownjob" StashRestoreInitContainer = "stash-restore-init-container" KindRole = "Role" KindClusterRole = "ClusterRole" )
View Source
const ( StashVolumeSnapshotterJob = "stash-volumesnapshotter-job" StashVolumeSnapshotRestorerJob = "stash-volumesnapshot-restorer-job" StashStorageClassReader = "stash-storage-class-reader" )
View Source
const (
StashBackupJob = "stash-backup-job"
)
View Source
const (
StashCronJob = "stash-cron-job"
)
View Source
const (
StashRestoreJob = "stash-restore-job"
)
View Source
const (
StashSidecar = "stash-sidecar"
)
Variables ¶
This section is empty.
Functions ¶
func EnsureBackupJobRBAC ¶
func EnsureBackupJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, namespace, sa string, psps []string, labels map[string]string) error
func EnsureCronJobRBAC ¶
func EnsureCronJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, namespace, sa string, psps []string, labels map[string]string) error
func EnsureRecoveryRBAC ¶
func EnsureRecoveryRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, namespace string) error
use sidecar-cluster-role, service-account and role-binding name same as job name set job as owner of service-account and role-binding
func EnsureRepoReaderRBAC ¶
func EnsureRepoReaderRBAC(kubeClient kubernetes.Interface, stashClient stash_cs.Interface, owner *metav1.OwnerReference, rec *api_v1alpha1.Recovery) error
func EnsureRepoReaderRolebindingDeleted ¶
func EnsureRepoReaderRolebindingDeleted(kubeClient kubernetes.Interface, stashClient stash_cs.Interface, meta *metav1.ObjectMeta) error
func EnsureRestoreInitContainerRBAC ¶
func EnsureRestoreInitContainerRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, namespace, sa string, labels map[string]string) error
func EnsureRestoreJobRBAC ¶
func EnsureRestoreJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, namespace, sa string, psps []string, labels map[string]string) error
func EnsureScaledownJobRBAC ¶
func EnsureScaledownJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, namespace string) error
use scaledownjob-role, service-account and role-binding name same as job name set job as owner of role, service-account and role-binding
func EnsureSidecarClusterRole ¶
func EnsureSidecarClusterRole(kubeClient kubernetes.Interface) error
func EnsureSidecarRoleBinding ¶
func EnsureSidecarRoleBinding(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, namespace, sa string, labels map[string]string) error
func EnsureUnnecessaryWorkloadRBACDeleted ¶
func EnsureUnnecessaryWorkloadRBACDeleted(kubeClient kubernetes.Interface, w *wapi.Workload) error
func EnsureVolumeSnapshotRestorerJobRBAC ¶
func EnsureVolumeSnapshotRestorerJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, namespace, sa string, labels map[string]string) error
func EnsureVolumeSnapshotterJobRBAC ¶
func EnsureVolumeSnapshotterJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, namespace, sa string, labels map[string]string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.