pod

package
v0.12.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(handlers ...webhook.TypedHandlerWithTenant[*corev1.Pod]) webhook.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.DefaultAllowedListSpec) error

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
	FQCI() string
}

func NewRegistry

func NewRegistry(value string, cfg configuration.Configuration) Registry

Jump to

Keyboard shortcuts

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