api

package
v3.14.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

Group scaffolds the file that defines the registration methods for a certain group and version

func (*Group) SetTemplateDefaults

func (f *Group) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type Types

Types scaffolds the file that defines the schema for a CRD nolint:maligned

func (*Types) SetTemplateDefaults

func (f *Types) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type Webhook

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

	// Is the Group domain for the Resource replacing '.' with '-'
	QualifiedGroupWithDash string

	// Define value for AdmissionReviewVersions marker
	AdmissionReviewVersions string

	Force bool
}

Webhook scaffolds the file that defines a webhook for a CRD or a builtin resource

func (*Webhook) SetTemplateDefaults

func (f *Webhook) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type WebhookSuite

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

	// todo: currently is not possible to know if an API was or not scaffolded. We can fix it when #1826 be addressed
	WireResource bool

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

	// BaseDirectoryRelativePath define the Path for the base directory when it is multigroup
	BaseDirectoryRelativePath string
}

WebhookSuite scaffolds the file that sets up the webhook tests

func (*WebhookSuite) GetCodeFragments

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

GetCodeFragments implements file.Inserter

func (*WebhookSuite) GetMarkers

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

GetMarkers implements file.Inserter

func (*WebhookSuite) SetTemplateDefaults

func (f *WebhookSuite) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

type WebhookTest added in v3.14.0

WebhookTest scaffolds the file that sets up the webhook unit tests

func (*WebhookTest) SetTemplateDefaults added in v3.14.0

func (f *WebhookTest) SetTemplateDefaults() error

SetTemplateDefaults implements file.Template

Jump to

Keyboard shortcuts

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