Documentation ¶
Overview ¶
Package mesh contains types and functions.
Index ¶
- Constants
- Variables
- func Confirm(msg string, writer io.Writer) bool
- func GetRootCmd(ctx cli.Context, args []string) *cobra.Command
- func GetTagVersion(tagInfo string) (string, error)
- func Install(kubeClient kube.CLIClient, rootArgs *RootArgs, iArgs *InstallArgs, ...) error
- func InstallCmd(ctx cli.Context) *cobra.Command
- func InstallCmdWithArgs(ctx cli.Context, rootArgs *RootArgs, iArgs *InstallArgs) *cobra.Command
- func InstallManifests(iop *v1alpha12.IstioOperator, force bool, dryRun bool, kubeClient kube.Client, ...) error
- func KubernetesClients(kubeClient kube.CLIClient, l clog.Logger) (kube.CLIClient, client.Client, error)
- func ManifestCmd(ctx cli.Context) *cobra.Command
- func ManifestGenerate(kubeClient kube.CLIClient, args *RootArgs, mgArgs *ManifestGenerateArgs, ...) error
- func ManifestGenerateCmd(ctx cli.Context, rootArgs *RootArgs, mgArgs *ManifestGenerateArgs) *cobra.Command
- func NewVerifyCommand(ctx cli.Context) *cobra.Command
- func OperatorCmd(ctx cli.Context) *cobra.Command
- func ProfileCmd(_ cli.Context) *cobra.Command
- func RenderToDir(manifests name.ManifestMap, outputDir string, dryRun bool, l clog.Logger) error
- func UninstallCmd(ctx cli.Context) *cobra.Command
- func UpgradeCmd(ctx cli.Context) *cobra.Command
- type InstallArgs
- type ManifestGenerateArgs
- type Printer
- type RootArgs
Constants ¶
const ( ChartsDeprecatedStr = "Deprecated, use --manifests instead." ForceFlagHelpStr = `Proceed even with validation errors.` MaxConcurrentReconcilesFlagHelpStr = `Defines the concurrency limit for operator to reconcile IstioOperatorSpec in parallel. Default value is 1.` HubFlagHelpStr = `The hub for the operator controller image.` TagFlagHelpStr = `The tag for the operator controller image.` ImagePullSecretsHelpStr = `` /* 183-byte string literal not displayed */ OperatorNamespaceHelpstr = `The namespace the operator controller is installed into.` OperatorRevFlagHelpStr = `Target revision for the operator.` AllOperatorRevFlagHelpStr = `Remove all versions of Istio operator.` ComponentFlagHelpStr = "Specify which component to generate manifests for." VerifyCRInstallHelpStr = "Verify the Istio control plane after installation/in-place upgrade" )
const ( AllResourcesRemovedWarning = "All Istio resources will be pruned from the cluster\n" NoResourcesRemovedWarning = "No resources will be pruned from the cluster. Please double check the input configs\n" GatewaysRemovedWarning = "You are about to remove the following gateways: %s." + " To avoid downtime, please quit this command and reinstall the gateway(s) with a revision that is not being removed from the cluster.\n" PurgeWithRevisionOrOperatorSpecifiedWarning = "Purge uninstall will remove all Istio resources, ignoring the specified revision or operator file" )
const YAMLSuffix = ".yaml"
YAMLSuffix is the suffix of a YAML file.
Variables ¶
var (
// ManifestsFlagHelpStr is the command line description for --manifests
ManifestsFlagHelpStr = `Specify a path to a directory of charts and profiles
(e.g. ~/Downloads/istio-` + baseVersion + `/manifests).
`
)
Functions ¶
func GetRootCmd ¶
GetRootCmd returns the root of the cobra command-tree.
func GetTagVersion ¶
GetTagVersion returns istio tag version
func InstallCmd ¶
InstallCmd generates an Istio install manifest and applies it to a cluster
func InstallCmdWithArgs ¶
InstallCmdWithArgs generates an Istio install manifest and applies it to a cluster
func InstallManifests ¶
func InstallManifests(iop *v1alpha12.IstioOperator, force bool, dryRun bool, kubeClient kube.Client, client client.Client, waitTimeout time.Duration, l clog.Logger, ) error
InstallManifests generates manifests from the given istiooperator instance and applies them to the cluster. See GenManifests for more description of the manifest generation process.
force validation warnings are written to logger but command is not aborted DryRun all operations are done but nothing is written
Returns final IstioOperator after installation if successful.
func KubernetesClients ¶
func ManifestCmd ¶
ManifestCmd is a group of commands related to manifest generation, installation, diffing and migration.
func ManifestGenerate ¶
func ManifestGenerateCmd ¶
func NewVerifyCommand ¶
NewVerifyCommand creates a new command for verifying Istio Installation Status
func OperatorCmd ¶
OperatorCmd is a group of commands related to installation and management of the operator controller.
func ProfileCmd ¶
ProfileCmd is a group of commands related to profile listing, dumping and diffing.
func RenderToDir ¶
RenderToDir writes manifests to a local filesystem directory tree.
func UninstallCmd ¶
UninstallCmd command uninstalls Istio from a cluster
Types ¶
type InstallArgs ¶
type InstallArgs struct { // InFilenames is an array of paths to the input IstioOperator CR files. InFilenames []string // ReadinessTimeout is maximum time to wait for all Istio resources to be ready. wait must be true for this setting // to take effect. ReadinessTimeout time.Duration // SkipConfirmation determines whether the user is prompted for confirmation. // If set to true, the user is not prompted and a Yes response is assumed in all cases. SkipConfirmation bool // Force proceeds even if there are validation errors Force bool // Verify after installation Verify bool // Set is a string with element format "path=value" where path is an IstioOperator path and the value is a // value to set the node at that path to. Set []string // ManifestsPath is a path to a ManifestsPath and profiles directory in the local filesystem with a release tgz. ManifestsPath string // Revision is the Istio control plane revision the command targets. Revision string }
func (*InstallArgs) String ¶
func (a *InstallArgs) String() string
type ManifestGenerateArgs ¶
type ManifestGenerateArgs struct { // InFilenames is an array of paths to the input IstioOperator CR files. InFilenames []string // OutFilename is the path to the generated output directory. OutFilename string // EnableClusterSpecific determines if the current Kubernetes cluster will be used to autodetect values. // If false, generic defaults will be used. This is useful when generating once and then applying later. EnableClusterSpecific bool // Set is a string with element format "path=value" where path is an IstioOperator path and the value is a // value to set the node at that path to. Set []string // Force proceeds even if there are validation errors Force bool // ManifestsPath is a path to a charts and profiles directory in the local filesystem with a release tgz. ManifestsPath string // Revision is the Istio control plane revision the command targets. Revision string // Components is a list of strings specifying which component's manifests to be generated. Components []string // Filter is the list of components to render Filter []string }
func (*ManifestGenerateArgs) String ¶
func (a *ManifestGenerateArgs) String() string