controllers

package
v3.15.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	machinery.TemplateMixin
	machinery.MultiGroupMixin
	machinery.BoilerplateMixin
	machinery.ResourceMixin

	ControllerRuntimeVersion string

	Force bool
}

Controller scaffolds the file that defines the controller for a CRD or a builtin resource nolint:maligned

func (*Controller) SetTemplateDefaults

func (f *Controller) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type ControllerTest added in v3.14.0

ControllerTest scaffolds the file that sets up the controller unit tests nolint:maligned

func (*ControllerTest) SetTemplateDefaults added in v3.14.0

func (f *ControllerTest) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type SuiteTest

type SuiteTest struct {
	machinery.TemplateMixin
	machinery.MultiGroupMixin
	machinery.BoilerplateMixin
	machinery.ResourceMixin

	// K8SVersion define the k8s version used to do the scaffold
	// so that is possible retrieve the binaries
	K8SVersion string

	// CRDDirectoryRelativePath define the Path for the CRD
	CRDDirectoryRelativePath string

	Force bool
}

SuiteTest scaffolds the file that sets up the controller tests nolint:maligned

func (*SuiteTest) GetCodeFragments

func (f *SuiteTest) GetCodeFragments() machinery.CodeFragmentsMap

GetCodeFragments implements file.Inserter

func (*SuiteTest) GetMarkers

func (f *SuiteTest) GetMarkers() []machinery.Marker

GetMarkers implements file.Inserter

func (*SuiteTest) SetTemplateDefaults

func (f *SuiteTest) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

Jump to

Keyboard shortcuts

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