v1

package
v0.0.0-...-8fc0011 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNodeNotFound = fmt.Errorf("node selector not found")

Functions

func ApplyDefaults

func ApplyDefaults(nodeSelectorValue string, omittedNamespaces []string) defaultPod

func ApplyDefaultsFallback

func ApplyDefaultsFallback(nodeSelectorValue string) defaultPod

func SetupPodWebhookWithManager

func SetupPodWebhookWithManager(mgr ctrl.Manager, defdefaultPod defaultPod) error

SetupPodWebhookWithManager registers the webhook for Pod in the manager.

Types

type PodCustomDefaulter

type PodCustomDefaulter struct {
	// contains filtered or unexported fields
}

PodCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Pod when those are created or updated.

func (*PodCustomDefaulter) Default

func (d *PodCustomDefaulter) Default(ctx context.Context, obj runtime.Object) (err error)

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Pod.

Jump to

Keyboard shortcuts

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