config

package
v2.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedOperatorVersionFmt = "version %q is not supported. Supported versions: %v"

Functions

func ApplyBuilder

func ApplyBuilder() *cobra.Command

ApplyBuilder builds a cobra.Command that can run as: atlas kubernetes config apply --orgId=orgId --projectId=projectId --clusterName="cluster-1,cluster-2...cluster-N" --targetNamespace=my-namespace.

func Builder

func Builder() *cobra.Command

func GenerateBuilder

func GenerateBuilder() *cobra.Command

GenerateBuilder builds a cobra.Command that can run as: atlas kubernetes config generate --projectId=projectId --clusterName="cluster-1,cluster-2...cluster-N" --includeSecrets --targetNamespace=my-namespace.

Types

type ApplyOpts

type ApplyOpts struct {
	cli.GlobalOpts
	cli.OutputOpts
	GenerateOpts

	KubeConfig  string
	KubeContext string
}

func (*ApplyOpts) Run

func (opts *ApplyOpts) Run() error

func (*ApplyOpts) ValidateOperatorVersion

func (opts *ApplyOpts) ValidateOperatorVersion() error

func (*ApplyOpts) ValidateTargetNamespace

func (opts *ApplyOpts) ValidateTargetNamespace() error

type GenerateOpts

type GenerateOpts struct {
	cli.GlobalOpts
	cli.OutputOpts
	// contains filtered or unexported fields
}

func (*GenerateOpts) Run

func (opts *GenerateOpts) Run() error

func (*GenerateOpts) ValidateOperatorVersion

func (opts *GenerateOpts) ValidateOperatorVersion() error

func (*GenerateOpts) ValidateTargetNamespace

func (opts *GenerateOpts) ValidateTargetNamespace() error

Jump to

Keyboard shortcuts

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