serviceaccount

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SecurityClient

func SecurityClient() (*security.SecurityV1Client, error)

SecurityClient returns an openshift AppsV1Client

Types

type BackupPlugin

type BackupPlugin struct {
	Log              logrus.FieldLogger
	SCCMap           map[string]map[string][]apisecurity.SecurityContextConstraints
	UpdatedForBackup map[string]bool
}

BackupPlugin is a backup item action plugin for Heptio Velero.

func (*BackupPlugin) AppliesTo

func (p *BackupPlugin) AppliesTo() (velero.ResourceSelector, error)

AppliesTo returns a velero.ResourceSelector that applies to everything.

func (*BackupPlugin) Execute

Execute copies local registry images into migration registry

func (*BackupPlugin) UpdateSCCMap

func (p *BackupPlugin) UpdateSCCMap() error

UpdateSCCMap fill scc map with service account as key and SCCs slice as value

type RestorePlugin

type RestorePlugin struct {
	Log logrus.FieldLogger
}

RestorePlugin is a restore item action plugin for Velero

func (*RestorePlugin) AppliesTo

func (p *RestorePlugin) AppliesTo() (velero.ResourceSelector, error)

AppliesTo returns a velero.ResourceSelector that applies to everything

func (*RestorePlugin) Execute

Execute fixes the route path on restore to use the target cluster's domain name

Jump to

Keyboard shortcuts

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