cluster

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCluster

func CreateCluster(ctx context.Context, opts Options) error

func DestroyCluster

func DestroyCluster(ctx context.Context, o *DestroyOptions) error

func DumpCluster

func DumpCluster(ctx context.Context, opts *DumpOptions) error

func DumpGuestCluster

func DumpGuestCluster(ctx context.Context, kubeconfig string, destDir string) error

DumpGuestCluster dumps resources from a hosted cluster using its apiserver indicated by the provided kubeconfig. This function assumes that pods aren't able to be scheduled and so can only gather information directly accessible through the api server.

func NewCreateCommand

func NewCreateCommand() *cobra.Command

func NewDestroyCommand

func NewDestroyCommand() *cobra.Command

func NewDumpCommand

func NewDumpCommand() *cobra.Command

Types

type DestroyOptions

type DestroyOptions struct {
	Namespace          string
	Name               string
	InfraID            string
	BaseDomain         string
	Region             string
	AWSCredentialsFile string
	PreserveIAM        bool
	ClusterGracePeriod time.Duration
}

type DumpOptions

type DumpOptions struct {
	Namespace   string
	Name        string
	ArtifactDir string
}

type OCAdmInspect

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

func (*OCAdmInspect) Run

func (i *OCAdmInspect) Run(ctx context.Context, cmdArgs ...string)

func (*OCAdmInspect) WithNamespace

func (i *OCAdmInspect) WithNamespace(namespace string) *OCAdmInspect

type Options

type Options struct {
	Namespace          string
	Name               string
	ReleaseImage       string
	PullSecretFile     string
	AWSCredentialsFile string
	SSHKeyFile         string
	NodePoolReplicas   int32
	Render             bool
	InfraID            string
	InfrastructureJSON string
	IAMJSON            string
	InstanceType       string
	Region             string
	BaseDomain         string
	IssuerURL          string
	PublicZoneID       string
	PrivateZoneID      string
	Annotations        []string
	NetworkType        string
	FIPS               bool
	Platform           string
}

Jump to

Keyboard shortcuts

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