v1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnabledLabelKey          = "agent.octopus.com/permissions"
	ProjectAnnotationKey     = "agent.octopus.com/project"
	EnvironmentAnnotationKey = "agent.octopus.com/environment"
	TenantAnnotationKey      = "agent.octopus.com/tenant"
	StepAnnotationKey        = "agent.octopus.com/step"
	SpaceAnnotationKey       = "agent.octopus.com/space"
)

Variables

This section is empty.

Functions

func SetupPodWebhookWithManager

func SetupPodWebhookWithManager(mgr ctrl.Manager, engine rules.Engine) 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.

NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as it is used only for temporary operations and does not need to be deeply copied.

func (*PodCustomDefaulter) Default

func (d *PodCustomDefaulter) Default(ctx context.Context, obj runtime.Object) 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