Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandPromoteOption ¶
type CommandPromoteOption struct { // Cluster is the name of legacy cluster Cluster string // Namespace is the namespace of legacy resource Namespace string // ClusterContext is the cluster's context that we are going to join with. ClusterContext string // ClusterKubeConfig is the cluster's kubeconfig path. ClusterKubeConfig string // Deps tells if promote resource with its dependencies automatically, default to false Deps bool // DryRun tells if run the command in dry-run mode, without making any server requests. DryRun bool // AutoCreatePolicy tells if the promote command should create the // PropagationPolicy(or ClusterPropagationPolicy) by default. // It default to true. AutoCreatePolicy bool // PolicyName is the name of the PropagationPolicy(or ClusterPropagationPolicy), // It defaults to the promoting resource name with a random hash suffix. // It will be ignored if AutoCreatePolicy is false. PolicyName string resource.FilenameOptions JSONYamlPrintFlags *genericclioptions.JSONYamlPrintFlags OutputFormat string Printer func(*meta.RESTMapping, *bool, bool, bool) (printers.ResourcePrinterFunc, error) TemplateFlags *genericclioptions.KubeTemplatePrintFlags // contains filtered or unexported fields }
CommandPromoteOption holds all command options for promote
func (*CommandPromoteOption) AddFlags ¶
func (o *CommandPromoteOption) AddFlags(flags *pflag.FlagSet)
AddFlags adds flags to the specified FlagSet.
func (*CommandPromoteOption) Complete ¶
func (o *CommandPromoteOption) Complete(f util.Factory, args []string) error
Complete ensures that options are valid and marshals them if necessary
func (*CommandPromoteOption) Run ¶
func (o *CommandPromoteOption) Run(f util.Factory, args []string) error
Run promote resources from legacy clusters
func (*CommandPromoteOption) Validate ¶
func (o *CommandPromoteOption) Validate() error
Validate checks to the PromoteOptions to see if there is sufficient information run the command
Click to show internal directories.
Click to hide internal directories.