clioptions

package
v0.0.0-...-4fd6c8e Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package clioptions contains flags which can be added to istioctl commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CentralControlPlaneOptions

type CentralControlPlaneOptions struct {
	// Xds is XDS endpoint, e.g. localhost:15010.
	Xds string

	// XdsPodLabel is a Kubernetes label on the Istiod pods
	XdsPodLabel string

	// XdsPodPort is a port exposing XDS (typically 15010 or 15012)
	XdsPodPort int

	// CertDir is the local directory containing certificates
	CertDir string

	// Timeout is how long to wait before giving up on XDS
	Timeout time.Duration

	// InsecureSkipVerify skips client verification the server's certificate chain and host name.
	InsecureSkipVerify bool

	// XDSSAN is the expected Subject Alternative Name of the XDS server
	XDSSAN string

	// Plaintext forces plain text communication (for talking to port 15010)
	Plaintext bool

	// GCP project number or ID to use for XDS calls, if any.
	GCPProject string

	// Istiod address. For MCP may be different than Xds.
	IstiodAddr string
}

CentralControlPlaneOptions holds options common to all subcommands that invoke Istiod via xDS REST endpoint

func (*CentralControlPlaneOptions) AttachControlPlaneFlags

func (o *CentralControlPlaneOptions) AttachControlPlaneFlags(cmd *cobra.Command)

AttachControlPlaneFlags attaches control-plane flags to a Cobra command. (Currently just --endpoint)

func (*CentralControlPlaneOptions) ValidateControlPlaneFlags

func (o *CentralControlPlaneOptions) ValidateControlPlaneFlags() error

ValidateControlPlaneFlags checks arguments for valid values and combinations

type ControlPlaneOptions

type ControlPlaneOptions struct {
	// Revision is the istio.io/rev control plane revision
	Revision string
}

ControlPlaneOptions defines common options used by istioctl.

func (*ControlPlaneOptions) AttachControlPlaneFlags

func (o *ControlPlaneOptions) AttachControlPlaneFlags(cmd *cobra.Command)

AttachControlPlaneFlags attaches control-plane flags to a Cobra command. (Currently just --revision)

Jump to

Keyboard shortcuts

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