Documentation ¶
Overview ¶
Package mesh contains types and functions.
Index ¶
- Constants
- Variables
- func Confirm(msg string, writer io.Writer) bool
- 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 ManifestCmd(ctx cli.Context) *cobra.Command
- func ManifestGenerate(kubeClient kube.CLIClient, mgArgs *ManifestGenerateArgs, l clog.Logger) error
- func ManifestGenerateCmd(ctx cli.Context, _ *RootArgs, mgArgs *ManifestGenerateArgs) *cobra.Command
- func ManifestTranslate(kubeClient kube.CLIClient, mgArgs *ManifestTranslateArgs, l clog.Logger) error
- func ManifestTranslateCmd(ctx cli.Context, mgArgs *ManifestTranslateArgs) *cobra.Command
- func UninstallCmd(ctx cli.Context) *cobra.Command
- func UpgradeCmd(ctx cli.Context) *cobra.Command
- type InstallArgs
- type ManifestGenerateArgs
- type ManifestTranslateArgs
- type Printer
- type RootArgs
Constants ¶
View Source
const ( ChartsDeprecatedStr = "Deprecated, use --manifests instead." ForceFlagHelpStr = `Proceed even with validation errors.` VerifyCRInstallHelpStr = "Verify the Istio control plane after installation/in-place upgrade" )
View Source
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" )
View Source
const (
// YAMLSeparator is a separator for multi-document YAML files.
YAMLSeparator = "\n---\n"
)
Variables ¶
View Source
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 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 ManifestCmd ¶
ManifestCmd is a group of commands related to manifest generation, installation, diffing and migration.
func ManifestGenerate ¶
func ManifestGenerateCmd ¶
func ManifestTranslate ¶
func ManifestTranslateCmd ¶
func ManifestTranslateCmd(ctx cli.Context, mgArgs *ManifestTranslateArgs) *cobra.Command
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 // 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 // Filter is the list of components to render Filter []string }
func (*ManifestGenerateArgs) String ¶
func (a *ManifestGenerateArgs) String() string
type ManifestTranslateArgs ¶
type ManifestTranslateArgs struct { // InFilenames is an array of paths to the input IstioOperator CR files. InFilenames []string // 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 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 // Output path to print out instructions and configurations Output string }
type Printer ¶
func NewPrinterForWriter ¶
Click to show internal directories.
Click to hide internal directories.