istio

package
v1.89.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DefaultRevisionLabel is the value for the default revision.
	DefaultRevisionLabel = "default"
	// IstioInjectionLabel is the value for the istio injection label on a namespace.
	IstioInjectionLabel = "istio-injection"
)

Variables

This section is empty.

Functions

func GetHealthyIstiodPods added in v1.87.0

func GetHealthyIstiodPods(kubeCache cache.KubeCache, revision string, namespace string) ([]*corev1.Pod, error)

func GetLatestPod added in v1.87.0

func GetLatestPod(pods []*corev1.Pod) *corev1.Pod

func GetVersion

func GetVersion(ctx context.Context, conf *config.Config, client kubernetes.ClientInterface, kubeCache cache.KubeCache, revision string, namespace string) (*models.ExternalServiceInfo, error)

GetVersion returns the latest version of the Istio control plane. If there are multiple healthy istiod pods, the latest one by creation timestamp is returned.

Types

type Discovery added in v1.87.0

type Discovery struct {
	// contains filtered or unexported fields
}

Discovery detects istio infrastructure and configuration across clusters.

func NewDiscovery added in v1.87.0

func NewDiscovery(kialiSAClients map[string]kubernetes.ClientInterface, cache cache.KialiCache, conf *config.Config) *Discovery

NewDiscovery initializes a new Discovery.

func (*Discovery) Clusters added in v1.87.0

func (in *Discovery) Clusters() ([]models.KubeCluster, error)

Clusters resolves the Kubernetes clusters that are hosting the mesh. Resolution is done as best-effort using the resources that are present in the cluster. TODO: should this go in kubernetes package?

func (*Discovery) IsRemoteCluster added in v1.87.0

func (in *Discovery) IsRemoteCluster(ctx context.Context, cluster string) bool

IsRemoteCluster determines if the cluster has a controlplane or if it's a remote cluster without one. Clusters that do not exist or are not accessible are considered remote clusters.

func (*Discovery) Mesh added in v1.87.0

func (in *Discovery) Mesh(ctx context.Context) (*models.Mesh, error)

Mesh gathers information about the mesh and controlplanes running in the mesh from various sources e.g. istio configmap, istiod deployment envvars, etc.

Jump to

Keyboard shortcuts

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