Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { machinery.TemplateMixin machinery.MultiGroupMixin machinery.BoilerplateMixin machinery.ResourceMixin }
Group scaffolds the file that defines the registration methods for a certain group and version
func (*Group) SetTemplateDefaults ¶
SetTemplateDefaults implements file.Template
type Types ¶
type Types struct { machinery.TemplateMixin machinery.MultiGroupMixin machinery.BoilerplateMixin machinery.ResourceMixin Force bool }
Types scaffolds the file that defines the schema for a CRD nolint:maligned
func (*Types) SetTemplateDefaults ¶
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 ¶
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
type WebhookTest struct { machinery.TemplateMixin machinery.MultiGroupMixin machinery.BoilerplateMixin machinery.ResourceMixin Force bool }
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