multixds

package
v0.0.0-...-96c2191 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = Options{
	MessageWriter:     os.Stdout,
	XdsViaAgents:      false,
	XdsViaAgentsLimit: 0,
}
View Source
var GetXdsResponse = xds.GetXdsResponse

Functions

func AllRequestAndProcessXds

func AllRequestAndProcessXds(dr *discovery.DiscoveryRequest, centralOpts clioptions.CentralControlPlaneOptions, istioNamespace string,
	ns string, serviceAccount string, kubeClient kube.CLIClient, options Options,
) (map[string]*discovery.DiscoveryResponse, error)

AllRequestAndProcessXds returns all XDS responses from 1 central or 1..N K8s cluster-based XDS servers nolint: lll

func CpInfo

CpInfo returns the Istio control plane info from JSON-encoded XDS ControlPlane Identifier

func FirstRequestAndProcessXds

func FirstRequestAndProcessXds(dr *discovery.DiscoveryRequest, centralOpts clioptions.CentralControlPlaneOptions, istioNamespace string,
	ns string, serviceAccount string, kubeClient kube.CLIClient, options Options,
) (map[string]*discovery.DiscoveryResponse, error)

FirstRequestAndProcessXds returns all XDS responses from 1 central or 1..N K8s cluster-based XDS servers, stopping after the first response that returns any resources. nolint: lll

func MultiRequestAndProcessXds

func MultiRequestAndProcessXds(all bool, dr *discovery.DiscoveryRequest, centralOpts clioptions.CentralControlPlaneOptions, istioNamespace string,
	ns string, serviceAccount string, kubeClient kube.CLIClient, options Options,
) (map[string]*discovery.DiscoveryResponse, error)

nolint: lll

func RequestAndProcessXds

func RequestAndProcessXds(dr *discovery.DiscoveryRequest, centralOpts clioptions.CentralControlPlaneOptions, istioNamespace string, kubeClient kube.CLIClient) (*discovery.DiscoveryResponse, error)

RequestAndProcessXds merges XDS responses from 1 central or 1..N K8s cluster-based XDS servers Deprecated This method makes multiple responses appear to come from a single control plane; consider using AllRequestAndProcessXds or FirstRequestAndProcessXds nolint: lll

Types

type ControlPlaneNotFoundError

type ControlPlaneNotFoundError struct {
	Namespace string
}

func (ControlPlaneNotFoundError) Error

type Options

type Options struct {
	// MessageWriter is a writer for displaying messages to users.
	MessageWriter io.Writer

	// XdsViaAgents accesses Istiod via the tap service of each agent.
	// This is only used in `proxy-status` command.
	XdsViaAgents bool

	// XdsViaAgentsLimit is the maximum number of pods being visited by istioctl,
	// when `XdsViaAgents` is true. This is only used in `proxy-status` command.
	// 0 means that there is no limit.
	XdsViaAgentsLimit int
}

Jump to

Keyboard shortcuts

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