cluster

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

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 Config added in v0.25.0

type Config struct {
	CustomImageRepositoryCCVar string
}

type CustomImageRepository added in v0.25.0

type CustomImageRepository struct {
	Host                     string `json:"host"`
	TLSCertificateValidation bool   `json:"tlsCertificateValidation"`
}

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) Handle

func (cw *Webhook) Handle(ctx context.Context, req admission.Request) admission.Response

func (*Webhook) InjectDecoder added in v0.20.0

func (cw *Webhook) InjectDecoder(decoder *admission.Decoder) error

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

Jump to

Keyboard shortcuts

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