join

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 40 Imported by: 1

Documentation

Overview

Copyright Contributors to the Open Cluster Management project

Copyright Contributors to the Open Cluster Management project

Index

Constants

View Source
const (
	AgentNamespacePrefix = "open-cluster-management-"

	OperatorNamesapce   = "open-cluster-management"
	DefaultOperatorName = "klusterlet"
)

Variables

This section is empty.

Functions

func NewCmd

NewCmd ...

Types

type BundleVersion added in v0.1.1

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
	KlusterletNamespace string
}

Klusterlet is for templating klusterlet configuration

type Options

type Options struct {
	//ClusteradmFlags: The generic options from the clusteradm cli-runtime.
	ClusteradmFlags *genericclioptionsclusteradm.ClusteradmFlags

	//Values below are tempoary data
	//HubCADate: data in hub ca file
	HubCADate []byte
	// hub config
	HubConfig *clientcmdapiv1.Config

	Streams genericclioptions.IOStreams
	// contains filtered or unexported fields
}

Options: The structure holding all the command-line options

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