crd

package
v3.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCRDs

func GenerateCRDs() []crder.CRD

func HobbyfarmCRD added in v3.2.0

func HobbyfarmCRD(obj interface{}, customize func(c *crder.CRD)) crder.CRD

func InstallCrds added in v3.2.0

func InstallCrds[T CrdInstaller](crdInstaller T, cfg *rest.Config, resourceName string)

func InstallCrdsWithServiceReference added in v3.2.0

func InstallCrdsWithServiceReference[T CrdInstallerWithServiceReference](crdInstaller T, cfg *rest.Config, resourceName string, webhookTlsCa string)

Types

type CrdInstaller added in v3.2.0

type CrdInstaller interface {
	GenerateCRDs() []crder.CRD
}

A service managing a resource always needs to implement one of the following CRDInstaller interfaces

type CrdInstallerWithServiceReference added in v3.2.0

type CrdInstallerWithServiceReference interface {
	GenerateCRDs(ca string, serviceReference ServiceReference) []crder.CRD
}

type ServiceReference

type ServiceReference struct {
	Namespace string
	Name      string
	Path      *string
	Port      *int32
}

func (ServiceReference) ToadmissionRegistrationv1WithPath

func (s ServiceReference) ToadmissionRegistrationv1WithPath(path string) (out v1.ServiceReference)

func (ServiceReference) Toapiextv1WithPath

func (s ServiceReference) Toapiextv1WithPath(path string) (out apiextv1.ServiceReference)

Jump to

Keyboard shortcuts

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