join

package
v0.0.0-...-d4aebf0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Copyright Contributors to the Open Cluster Management project

Copyright Contributors to the Open Cluster Management project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapConfig

type BootstrapConfig struct {
	CA           []byte
	HubAPIServer string
	SAName       string
	SANamespace  string
}

type BootstrapGetter

type BootstrapGetter interface {
	KubeConfig() (clientcmdapiv1.Config, error)
	KubeConfigRaw() ([]byte, error)
}

func NewTokenBootStrapper

func NewTokenBootStrapper(config BootstrapConfig, client kubernetes.Interface) BootstrapGetter

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder() *Builder

func (*Builder) ApplyImport

func (b *Builder) ApplyImport(ctx context.Context, recorder events.Recorder) error

func (*Builder) WithSpokeKubeConfig

func (b *Builder) WithSpokeKubeConfig(config clientcmd.ClientConfig) *Builder

func (*Builder) WithValues

func (b *Builder) WithValues(v Values) *Builder

type BundleVersion

type BundleVersion struct {
	// registration image version
	RegistrationImageVersion string
	// placement image version
	PlacementImageVersion string
	// work image version
	WorkImageVersion string
	// operator image version
	OperatorImageVersion string
}

type Hub

type Hub struct {
	//APIServer: The API Server external URL
	APIServer string
	//KubeConfig: The kubeconfig of the bootstrap secret to connect to the hub
	KubeConfig string
}

Hub: The hub values for the template

type Klusterlet

type Klusterlet struct {
	//APIServer: The API Server external URL
	APIServer string
	Mode      string
	Name      string
}

Klusterlet is for templating klusterlet configuration

type TokenBootStrapper

type TokenBootStrapper struct {
	// contains filtered or unexported fields
}

func (*TokenBootStrapper) KubeConfig

func (g *TokenBootStrapper) KubeConfig() (clientcmdapiv1.Config, error)

func (*TokenBootStrapper) KubeConfigRaw

func (g *TokenBootStrapper) KubeConfigRaw() ([]byte, error)

type Values

type Values struct {
	//ClusterName: the name of the joined cluster on the hub
	ClusterName string
	//AgentNamespace: the namespace to deploy the agent
	AgentNamespace string
	//Hub: Hub information
	Hub Hub
	//Klusterlet is the klusterlet related configuration
	Klusterlet Klusterlet
	//Registry is the image registry related configuration
	Registry string
	//bundle version
	BundleVersion BundleVersion
	// managed kubeconfig
	ManagedKubeconfig string

	// Features is the slice of feature for registration
	RegistrationFeatures []operatorv1.FeatureGate

	// Features is the slice of feature for work
	WorkFeatures []operatorv1.FeatureGate
}

Values: The values used in the template

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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