pod

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 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

func NewMissingContainerRegistryError(image string) error

func NewPodPriorityClassForbidden

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

func NewPodRuntimeClassForbidden

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

func PriorityClass

func PriorityClass() capsulewebhook.Handler

func RuntimeClass

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