scc2psp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutator

type Mutator struct {
	// contains filtered or unexported fields
}

Mutator contains common atttributes and the mutation input source structure

func NewMutator

NewMutator creates a new Mutator. Clients of this API should set a meaningful name that can be used to easily identify the calling client.

func (*Mutator) Mutate

func (m *Mutator) Mutate() *MutatorOutput

Mutate converts a SecurityContextsConstraints into PodSecurityPolicy, ClusterRole and ClusterRoleBinding

type MutatorOutput

type MutatorOutput struct {
	PodSecurityPolicy  policy.PodSecurityPolicy
	ClusterRole        rbac.ClusterRole
	ClusterRoleBinding rbac.ClusterRoleBinding
}

MutatorOutput contains the mutated output structures

Jump to

Keyboard shortcuts

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