rbac

package
v0.10.0-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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

func GetRepoReaderRoleBindingName

func GetRepoReaderRoleBindingName(name, namespace string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL