common

package
v0.0.0-...-6be268e Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 16

Documentation

Overview

Package common contains resource names, which may vary from version to version.

Index

Constants

View Source
const (
	ProxyContainerName     = "istio-proxy"
	DiscoveryContainerName = "discovery"
	OperatorContainerName  = "istio-operator"

	// namespaceAll is the default argument of across all namespaces
	NamespaceAll        = ""
	StrNamespaceAll     = "allNamespaces"
	KubeSystemNamespace = "kube-system"
)

Variables

This section is empty.

Functions

func IsCniPod

func IsCniPod(pod string) bool

func IsDiscoveryContainer

func IsDiscoveryContainer(clusterVersion, container string, labels map[string]string) bool

IsDiscoveryContainer reports whether the given container is an Istio discovery container for the given version. Labels are the labels for the given pod.

func IsOperatorContainer

func IsOperatorContainer(_, container string) bool

IsOperatorContainer reports whether the container is an istio-operator container.

func IsProxyContainer

func IsProxyContainer(_, container string) bool

IsProxyContainer reports whether container is an istio proxy container.

func IstiodDebugURLs

func IstiodDebugURLs(clusterVersion string) []string

IstiodDebugURLs returns a list of Istiod debug URLs for the given version.

func LogAndPrintf

func LogAndPrintf(format string, a ...any)

func ProxyDebugURLs

func ProxyDebugURLs(clusterVersion string) []string

ProxyDebugURLs returns a list of proxy debug URLs for the given version.

func ZtunnelDebugURLs

func ZtunnelDebugURLs(clusterVersion string) []string

ZtunnelDebugURLs returns a list of ztunnel debug URLs for the given version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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