create

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const IPDetectDescription = `` /* 2173-byte string literal not displayed */

Variables

This section is empty.

Functions

func NewCmdCreate

func NewCmdCreate(streams options.IOStreams) *cobra.Command

func NewCmdCreateCluster

func NewCmdCreateCluster(streams options.IOStreams) *cobra.Command

func NewCmdCreateRole

func NewCmdCreateRole(streams options.IOStreams) *cobra.Command

func NewCmdCreateUser

func NewCmdCreateUser(streams options.IOStreams) *cobra.Command

Types

type BaseOptions

type BaseOptions struct {
	PrintFlags *printer.PrintFlags
	CliOpts    *options.CliOptions
	options.IOStreams
	Client *kc.Client
}

type CreateClusterOptions

type CreateClusterOptions struct {
	BaseOptions
	Masters            []string
	Workers            []string
	UntaintMaster      bool
	Offline            bool
	LocalRegistry      string
	InsecureRegistries []string
	CRI                string
	CRIVersion         string
	K8sVersion         string
	CNI                string
	CNIVersion         string
	Name               string

	CertSans                  []string
	CaCertFile                string
	CaKeyFile                 string
	DNSDomain                 string
	IPv4AutoDetection         string
	ServiceSubnet             string
	PodSubnet                 string
	OnlyInstallKubernetesComp bool
	FeatureGatesString        []string
	FeatureGates              map[string]bool
	// contains filtered or unexported fields
}

func NewCreateClusterOptions

func NewCreateClusterOptions(streams options.IOStreams) *CreateClusterOptions

func (*CreateClusterOptions) Complete

func (l *CreateClusterOptions) Complete(opts *options.CliOptions) error

func (*CreateClusterOptions) PreRun

func (l *CreateClusterOptions) PreRun() error

func (*CreateClusterOptions) RunCreate

func (l *CreateClusterOptions) RunCreate() error

func (*CreateClusterOptions) ValidateArgs

func (l *CreateClusterOptions) ValidateArgs(cmd *cobra.Command) error

type CreateOptions

type CreateOptions struct {
	BaseOptions
	Filename string
}

func NewCreateOptions

func NewCreateOptions(streams options.IOStreams) *CreateOptions

func (*CreateOptions) Complete

func (l *CreateOptions) Complete(opts *options.CliOptions) error

func (*CreateOptions) MergeDefaultCluster added in v1.4.0

func (l *CreateOptions) MergeDefaultCluster(cluster *corev1.Cluster)

func (*CreateOptions) Run added in v1.4.0

func (l *CreateOptions) Run(cmd *cobra.Command) error

func (*CreateOptions) ValidateCluster added in v1.4.0

func (l *CreateOptions) ValidateCluster(cmd *cobra.Command, cluster *corev1.Cluster) error

type CreateRoleOptions

type CreateRoleOptions struct {
	BaseOptions
	Name  string
	Rules []string
	// contains filtered or unexported fields
}

func NewCreateRoleOptions

func NewCreateRoleOptions(streams options.IOStreams) *CreateRoleOptions

func (*CreateRoleOptions) Complete

func (l *CreateRoleOptions) Complete(opts *options.CliOptions) error

func (*CreateRoleOptions) RunCreate

func (l *CreateRoleOptions) RunCreate() error

func (*CreateRoleOptions) ValidateArgs

func (l *CreateRoleOptions) ValidateArgs(cmd *cobra.Command) error

type CreateUserOptions

type CreateUserOptions struct {
	BaseOptions
	Name        string
	Role        string
	Email       string
	Description string
	DisplayName string
	Password    string
	Phone       string
}

func NewCreateUserOptions

func NewCreateUserOptions(streams options.IOStreams) *CreateUserOptions

func (*CreateUserOptions) Complete

func (l *CreateUserOptions) Complete(opts *options.CliOptions) error

func (*CreateUserOptions) RunCreate

func (l *CreateUserOptions) RunCreate() error

func (*CreateUserOptions) ValidateArgs

func (l *CreateUserOptions) ValidateArgs(cmd *cobra.Command) error

Jump to

Keyboard shortcuts

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