admission

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SecretBindingPluginName = "ComputeSecretBindings"

SecretBindingPluginName identifies the compute secret-binding validation plugin in the admission chain.

Variables

This section is empty.

Functions

func New

New returns a new admission.PluginInitializer that injects the Apoxy SharedInformerFactory and client into plugins implementing the corresponding Wants* interfaces.

func NewSecretBindingPlugin

func NewSecretBindingPlugin() admission.Factory

NewSecretBindingPlugin validates the secret bindings of compute Services and ServiceRevisions on write: the referenced SecretStore must exist, its scopes must admit the service on the "compute" surface, and the bound key must be present in the store. This makes `apoxy apply` fail fast; the data-plane resolver re-checks at materialization time to cover stores that change after admission.

Types

type WantsApoxyClient

type WantsApoxyClient interface {
	SetApoxyClient(a3yclient.Interface)
	admission.InitializationValidator
}

WantsApoxyClient defines an interface for admission plugins that need a typed Apoxy client to read or write resources during admission.

type WantsApoxyInformerFactory

type WantsApoxyInformerFactory interface {
	SetApoxyInformerFactory(a3yinformers.SharedInformerFactory)
	admission.InitializationValidator
}

WantsApoxyInformerFactory defines an interface for admission plugins that need access to the Apoxy SharedInformerFactory for cross-resource validation and mutation.

Jump to

Keyboard shortcuts

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