Documentation ¶
Index ¶
- func NewCreateClusterCommand() *cobra.Command
- type Options
- func (o *Options) Complete(cmd *cobra.Command, args []string) error
- func (o *Options) GenerateClusterDeployment(pullSecret *corev1.Secret) (*hivev1.ClusterDeployment, error)
- func (o *Options) GenerateObjects() ([]runtime.Object, error)
- func (o *Options) Run() error
- func (o *Options) Validate(cmd *cobra.Command) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateClusterCommand ¶
NewCreateClusterCommand creates a command that generates and applies cluster deployment artifacts.
Types ¶
type Options ¶
type Options struct { Name string `json:"name"` Namespace string `json:"namespace"` SSHPublicKeyFile string `json:"sshPublicKeyFile"` SSHPublicKey string `json:"sshPublicKey"` SSHPrivateKeyFile string `json:"sshPrivateKeyFile"` BaseDomain string `json:"baseDomain"` PullSecret string `json:"pullSecret"` PullSecretFile string `json:"pullSecretFile"` Cloud string `json:"cloud"` CredsFile string `json:"credsFile"` CredsSecret string `json:"credsSecret` ClusterImageSet string `json:"clusterImageSet"` InstallerImage string `json:"installerImage"` ReleaseImage string `json:"releaseImage"` ReleaseImageSource string `json:"releaseImageSource"` DeleteAfter string `json:"deleteAfter"` ServingCert string `json:"servingCert"` ServingCertKey string `json:"servingCertKey"` UseClusterImageSet bool `json:"useClusterImageSet"` ManageDNS bool `json:"manageDNS"` Output string `json:"output"` IncludeSecrets bool `json:"includeSecrets"` InstallOnce bool `json:"installOnce"` UninstallOnce bool `json:"uninstallOnce"` SimulateBootstrapFailure bool `json:"simulateBootstrapFailure"` WorkerNodes int64 `json:"workerNodes"` // Azure AzureBaseDomainResourceGroupName string // GCP GCPProjectID string // contains filtered or unexported fields }
Options is the set of options to generate and apply a new cluster deployment
func (*Options) GenerateClusterDeployment ¶
func (o *Options) GenerateClusterDeployment(pullSecret *corev1.Secret) (*hivev1.ClusterDeployment, error)
GenerateClusterDeployment generates a new cluster deployment
func (*Options) GenerateObjects ¶
GenerateObjects generates resources for a new cluster deployment
Click to show internal directories.
Click to hide internal directories.