apis

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT, Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const SkipCRDCreation = "skip-crd-creation"

SkipCRDCreation specifies whether the CustomResourceDefinition will be created by the daemon

Variables

View Source
var RegisterCRDsCell = cell.Module(
	"create-crds",
	"Create Cilium CRDs",

	cell.Config(defaultConfig),

	cell.Invoke(createCRDs),
)

RegisterCRDsCell is a cell that creates all the Cilium CRDs.

Functions

func RegisterCRDs

func RegisterCRDs(clientset client.Clientset) error

RegisterCRDs registers all CRDs with the K8s apiserver.

Types

type CRDNotFoundError

type CRDNotFoundError struct {
	CRDName string
}

Define a custom error type for missing CRDs

func (*CRDNotFoundError) Error

func (e *CRDNotFoundError) Error() string

type RegisterCRDsConfig

type RegisterCRDsConfig struct {
	// SkipCRDCreation disables creation of the CustomResourceDefinition
	// for the operator
	SkipCRDCreation bool
}

func (RegisterCRDsConfig) Flags

func (c RegisterCRDsConfig) Flags(flags *pflag.FlagSet)

type RegisterCRDsFunc

type RegisterCRDsFunc func(k8sClient.Clientset) error

RegisterCRDsFunc is a function that register all the CRDs for a k8s group

Jump to

Keyboard shortcuts

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