extensionstest

package
v1.45.0-0.dev Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package extensionstest holds shared helpers for exercising an extension's Modify dispatch against raw object lists.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServerPolicyStub

type APIServerPolicyStub struct {
	StubComponent

	Cfg *render.APIServerConfiguration
}

func (APIServerPolicyStub) APIServerPolicyConfig

func (s APIServerPolicyStub) APIServerPolicyConfig() *render.APIServerConfiguration

type APIServerStub

type APIServerStub struct {
	StubComponent

	Cfg *render.APIServerConfiguration
}

func (APIServerStub) APIServerConfig

func (s APIServerStub) APIServerConfig() *render.APIServerConfiguration

type GuardianPolicyStub

type GuardianPolicyStub struct {
	StubComponent

	Cfg *render.GuardianConfiguration
}

func (GuardianPolicyStub) GuardianPolicyConfig

func (s GuardianPolicyStub) GuardianPolicyConfig() *render.GuardianConfiguration

type GuardianStub

type GuardianStub struct {
	StubComponent

	Cfg *render.GuardianConfiguration
}

func (GuardianStub) GuardianConfig

func (s GuardianStub) GuardianConfig() *render.GuardianConfiguration

type KubeControllersPolicyStub

type KubeControllersPolicyStub struct {
	StubComponent

	Cfg *kubecontrollers.KubeControllersConfiguration
}

func (KubeControllersPolicyStub) KubeControllersPolicyConfig

type KubeControllersStub

type KubeControllersStub struct {
	StubComponent

	Cfg *kubecontrollers.KubeControllersConfiguration
}

func (KubeControllersStub) KubeControllersConfig

type NodeStub

type NodeStub struct {
	StubComponent

	Cfg *render.NodeConfiguration
}

func (NodeStub) NodeConfig

func (s NodeStub) NodeConfig() *render.NodeConfiguration

type StubComponent

type StubComponent struct {
	Create, Delete []client.Object
}

StubComponent adapts raw object lists to a render.Component. The typed stubs embed it to satisfy what an extension dispatches on.

func (StubComponent) Objects

func (s StubComponent) Objects() ([]client.Object, []client.Object)

func (StubComponent) Ready

func (s StubComponent) Ready() bool

func (StubComponent) ResolveImages

func (s StubComponent) ResolveImages(*operatorv1.ImageSet) error

func (StubComponent) SupportedOSType

func (s StubComponent) SupportedOSType() rmeta.OSType

type TyphaStub

type TyphaStub struct {
	StubComponent

	Cfg *render.TyphaConfiguration
}

func (TyphaStub) TyphaConfig

func (s TyphaStub) TyphaConfig() *render.TyphaConfiguration

type WebhooksStub

type WebhooksStub struct {
	StubComponent

	Cfg *webhooks.Configuration
}

func (WebhooksStub) WebhooksConfig

func (s WebhooksStub) WebhooksConfig() *webhooks.Configuration

type WindowsStub

type WindowsStub struct {
	StubComponent

	Cfg *render.WindowsConfiguration
}

func (WindowsStub) WindowsConfig

func (s WindowsStub) WindowsConfig() *render.WindowsConfiguration

Jump to

Keyboard shortcuts

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