pod

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

nolint:dupl

nolint:dupl

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 capsulev1beta1.AllowedListSpec) error

func NewImagePullPolicyForbidden

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

func NewPodPriorityClassForbidden

func NewPodPriorityClassForbidden(priorityClassName string, spec capsulev1beta1.AllowedListSpec) error

func PriorityClass

func PriorityClass() capsulewebhook.Handler

Types

type PullPolicy

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

func NewPullPolicy

func NewPullPolicy(tenant *capsulev1beta1.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