rbac

package
v0.9.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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, ref *core.ObjectReference, sa string, psps []string, labels map[string]string) error

func EnsureCronJobRBAC

func EnsureCronJobRBAC(kubeClient kubernetes.Interface, resource *core.ObjectReference, sa string, psps []string, labels map[string]string) error

func EnsureRecoveryRBAC

func EnsureRecoveryRBAC(kubeClient kubernetes.Interface, resource *core.ObjectReference) 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, resource *core.ObjectReference, 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, ref *core.ObjectReference, sa string, labels map[string]string) error

func EnsureRestoreJobRBAC

func EnsureRestoreJobRBAC(kubeClient kubernetes.Interface, ref *core.ObjectReference, sa string, psps []string, labels map[string]string) error

func EnsureScaledownJobRBAC

func EnsureScaledownJobRBAC(kubeClient kubernetes.Interface, resource *core.ObjectReference) 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, resource *core.ObjectReference, 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, ref *core.ObjectReference, sa string, labels map[string]string) error

func EnsureVolumeSnapshotterJobRBAC

func EnsureVolumeSnapshotterJobRBAC(kubeClient kubernetes.Interface, ref *core.ObjectReference, 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