Documentation ¶
Index ¶
- Constants
- func EnsureBackupJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, ...) error
- func EnsureCronJobRBAC(kubeClient kubernetes.Interface, owner *metav1.OwnerReference, ...) error
- func EnsureRecoveryRBAC(kc kubernetes.Interface, owner *metav1.OwnerReference, namespace string) error
- func EnsureRepoReaderRBAC(kc 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(kc kubernetes.Interface, owner *metav1.OwnerReference, namespace string) error
- func EnsureSidecarClusterRole(kc kubernetes.Interface) error
- func EnsureSidecarRoleBinding(kc kubernetes.Interface, owner *metav1.OwnerReference, namespace, sa string, ...) 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"
)
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(kc 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(kc 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(kc 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(kc kubernetes.Interface) error
func EnsureSidecarRoleBinding ¶
func EnsureSidecarRoleBinding(kc 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.