init

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsClusterManagerExist

func IsClusterManagerExist(cilent clustermanagerclient.Interface) bool

func NewCmd

NewCmd ...

func WaitResourceToBeDelete

func WaitResourceToBeDelete(context context.Context, client clustermanagerclient.Interface, name string, b wait.Backoff) error

Types

type Hub

type Hub struct {
	//TokenID: A token id allowing the cluster to connect back to the hub
	TokenID string `json:"tokenID"`
	//TokenSecret: A token secret allowing the cluster to connect back to the hub
	TokenSecret string `json:"tokenSecret"`
}

Hub: The hub values for the template

type Options

type Options struct {
	//ClusteradmFlags: The generic options from the clusteradm cli-runtime.
	ClusteradmFlags *genericclioptionsclusteradm.ClusteradmFlags
	Values          Values
	//The cluster manager resource name
	ClusterManageName string
	//The file to output the resources will be sent to the file.
	OutputFile string

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

Options is holding all the command-line options

func NewOptions added in v0.3.0

func NewOptions(clusteradmFlags *genericclioptionsclusteradm.ClusteradmFlags, streams genericclioptions.IOStreams) *Options

func (*Options) Run added in v0.3.0

func (o *Options) Run() error

func (*Options) Validate added in v0.3.0

func (o *Options) Validate() error

type Values

type Values struct {
	//The values related to the hub
	Hub Hub `json:"hub"`
}

Values: The values used in the template

Jump to

Keyboard shortcuts

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