Documentation
¶
Index ¶
Constants ¶
View Source
const ControllerName = "gateways-crd-watchdog"
ControllerName is the name of this controller.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckGatewayCRDsState ¶
type CheckGatewayCRDsState struct {
// contains filtered or unexported fields
}
CheckGatewayCRDsState contains the state of the gateway CRD check.
func CheckGatewayCRDs ¶
CheckGatewayCRDs checks for relevant gateway custom resource definition deployments.
func (*CheckGatewayCRDsState) IstioGatewayVersion ¶
func (s *CheckGatewayCRDsState) IstioGatewayVersion() (istio_gateway.Version, error)
IstioGatewayVersion returns istio gateway version to watch.
func (*CheckGatewayCRDsState) KubernetesGatewayVersion ¶
func (s *CheckGatewayCRDsState) KubernetesGatewayVersion() (k8s_gateway.Version, error)
KubernetesGatewayVersion returns Kubernetes Gateway API gateway version to watch.
func (*CheckGatewayCRDsState) VersionOnStartup ¶
func (s *CheckGatewayCRDsState) VersionOnStartup(name string) string
VersionOnStartup return the version of the relevant CRD on startup.
type Reconciler ¶
type Reconciler struct {
Client client.Client
CheckGatewayCRDsState CheckGatewayCRDsState
ShutdownFunc ShutdownFunc
// contains filtered or unexported fields
}
Reconciler watches for relevant changes of gateway custom resource definitions.
func (*Reconciler) AddToManager ¶
func (r *Reconciler) AddToManager(mgr manager.Manager) error
AddToManager adds Reconciler to the given manager.
Click to show internal directories.
Click to hide internal directories.