createcluster

package
v0.0.0-...-84ace31 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateClusterCommand

func NewCreateClusterCommand() *cobra.Command

NewCreateClusterCommand creates a command that generates and applies cluster deployment artifacts.

Types

type Options

type Options struct {
	Name                     string
	Namespace                string
	SSHPublicKeyFile         string
	SSHPublicKey             string
	SSHPrivateKeyFile        string
	BaseDomain               string
	PullSecret               string
	PullSecretFile           string
	Cloud                    string
	CredsFile                string
	ClusterImageSet          string
	ReleaseImage             string
	ReleaseImageSource       string
	DeleteAfter              string
	ServingCert              string
	ServingCertKey           string
	UseClusterImageSet       bool
	ManageDNS                bool
	Output                   string
	IncludeSecrets           bool
	InstallOnce              bool
	UninstallOnce            bool
	SimulateBootstrapFailure bool
	WorkerNodes              int64
	CreateSampleSyncsets     bool
	ManifestsDir             string
	Adopt                    bool
	AdoptAdminKubeConfig     string
	AdoptInfraID             string
	AdoptClusterID           string
	AdoptAdminUsername       string
	AdoptAdminPassword       string

	// Azure
	AzureBaseDomainResourceGroupName string
	// contains filtered or unexported fields
}

Options is the set of options to generate and apply a new cluster deployment

func (*Options) Complete

func (o *Options) Complete(cmd *cobra.Command, args []string) error

Complete finishes parsing arguments for the command

func (*Options) GenerateClusterDeployment

func (o *Options) GenerateClusterDeployment(pullSecret *corev1.Secret, sshPrivateKeySecret *corev1.Secret) (*hivev1.ClusterDeployment, error)

GenerateClusterDeployment generates a new cluster deployment

func (*Options) GenerateObjects

func (o *Options) GenerateObjects() ([]runtime.Object, error)

GenerateObjects generates resources for a new cluster deployment

func (*Options) Run

func (o *Options) Run() error

Run executes the command

func (*Options) Validate

func (o *Options) Validate(cmd *cobra.Command) error

Validate ensures that option values make sense

Jump to

Keyboard shortcuts

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