pod

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerRegistry

func ContainerRegistry() capsulewebhook.Handler

func ImagePullPolicy

func ImagePullPolicy() capsulewebhook.Handler

func NewContainerRegistryForbidden

func NewContainerRegistryForbidden(image string, spec api.AllowedListSpec) error

func NewImagePullPolicyForbidden

func NewImagePullPolicyForbidden(usedPullPolicy, containerName string, allowedPullPolicies []string) error

func NewMissingContainerRegistryError added in v0.1.1

func NewMissingContainerRegistryError(image string) error

func NewPodPriorityClassForbidden

func NewPodPriorityClassForbidden(priorityClassName string, spec api.DefaultAllowedListSpec) error

func NewPodRuntimeClassForbidden added in v0.2.0

func NewPodRuntimeClassForbidden(runtimeClassName string, spec api.SelectorAllowedListSpec) error

func PriorityClass

func PriorityClass() capsulewebhook.Handler

func RuntimeClass added in v0.2.0

func RuntimeClass() capsulewebhook.Handler

Types

type PullPolicy

type PullPolicy interface {
	IsPolicySupported(policy string) bool
	AllowedPullPolicies() []string
}

func NewPullPolicy

func NewPullPolicy(tenant *capsulev1beta2.Tenant) PullPolicy

type Registry

type Registry interface {
	Registry() string
	Repository() string
	Image() string
	Tag() string
}

func NewRegistry

func NewRegistry(value string) Registry

Jump to

Keyboard shortcuts

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