objects

package
v0.0.0-...-d7ad274 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SesameRbacName is the name used for Sesame RBAC resources.
	SesameRbacName = "sesame"
	// EnvoyRbacName is the name used for Envoy RBAC resources.
	EnvoyRbacName = "envoy"
	// CertGenRbacName is the name used for Sesame certificate
	// generation RBAC resources.
	CertGenRbacName = "sesame-certgen"
)

Variables

This section is empty.

Functions

func EnsureRBAC

func EnsureRBAC(ctx context.Context, cli client.Client, sesame *operatorv1alpha1.Sesame) error

EnsureRBAC ensures all the necessary RBAC resources exist for the provided sesame.

func EnsureRBACDeleted

func EnsureRBACDeleted(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error

EnsureRBACDeleted ensures all the necessary RBAC resources for the provided sesame are deleted if Sesame owner labels exist.

func NewUnprivilegedPodSecurity

func NewUnprivilegedPodSecurity() *corev1.PodSecurityContext

NewUnprivilegedPodSecurity makes a a non-root PodSecurityContext object using 65534 as the user and group ID.

func TagFromImage

func TagFromImage(image string) string

TagFromImage returns the tag from the provided image or an empty string if the image does not contain a tag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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