Documentation ¶
Overview ¶
Package cluster provides the TKR Resolver mutating webhook on CAPI Cluster.
Index ¶
Constants ¶
View Source
const VarTKRData = "TKR_DATA"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomImageRepository ¶ added in v0.25.0
type TKRData ¶ added in v0.21.0
type TKRData map[string]*TKRDataValue
type TKRDataValue ¶ added in v0.21.0
type TKRDataValue struct { KubernetesSpec runv1.KubernetesSpec `json:"kubernetesSpec"` OSImageRef map[string]interface{} `json:"osImageRef"` Labels labels.Set `json:"labels"` }
type Webhook ¶
type Webhook struct { TKRResolver resolver.CachingResolver Log logr.Logger Client client.Client Config Config // contains filtered or unexported fields }
func (*Webhook) InjectDecoder ¶ added in v0.20.0
func (*Webhook) ResolveAndSetMetadata ¶ added in v0.20.0
func (cw *Webhook) ResolveAndSetMetadata(cluster *clusterv1.Cluster, clusterClass *clusterv1.ClusterClass) error
ResolveAndSetMetadata uses cw.TKRResolver and injects resolved metadata into the provided cluster. Pre-reqs: cluster != nil && clusterClass != nil
Click to show internal directories.
Click to hide internal directories.