Documentation ¶
Index ¶
- func GenerateCRDs() []crder.CRD
- func HobbyfarmCRD(obj interface{}, customize func(c *crder.CRD)) crder.CRD
- func InstallCrds[T CrdInstaller](crdInstaller T, cfg *rest.Config, resourceName string)
- func InstallCrdsWithServiceReference[T CrdInstallerWithServiceReference](crdInstaller T, cfg *rest.Config, resourceName string, webhookTlsCa string)
- type CrdInstaller
- type CrdInstallerWithServiceReference
- type ServiceReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCRDs ¶
func HobbyfarmCRD ¶ added in v3.2.0
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
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 ¶
func (ServiceReference) ToadmissionRegistrationv1WithPath ¶
func (s ServiceReference) ToadmissionRegistrationv1WithPath(path string) (out v1.ServiceReference)
func (ServiceReference) Toapiextv1WithPath ¶
func (s ServiceReference) Toapiextv1WithPath(path string) (out apiextv1.ServiceReference)
Click to show internal directories.
Click to hide internal directories.