istiodata

package
v0.0.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRevisionTagInfo

func GetRevisionTagInfo(ctx context.Context, kubeClient *kubernetes.Clientset) ([]tags.TagDescription, error)

Types

type IstioData

type IstioData struct {
	ProxyStatuses        []IstioProxyStatusData
	TagInfo              map[string]tags.TagDescription // key is tag name
	LastUpdate           time.Time
	RevisionsByNamespace map[string]string
	// contains filtered or unexported fields
}

func (*IstioData) CheckProxiedPods

func (r *IstioData) CheckProxiedPods(ctx context.Context, kubeClient *kubernetes.Clientset) ([]corev1.Pod, error)

TODO: allow passing namespace to limit search to one namespace? Would be useful to call from namespace controller

func (*IstioData) PrintProxyStatusData

func (id *IstioData) PrintProxyStatusData(ctx context.Context)

func (*IstioData) PrintRevisionTagInfo

func (id *IstioData) PrintRevisionTagInfo(ctx context.Context)

func (*IstioData) RefreshIstioData

func (id *IstioData) RefreshIstioData(ctx context.Context, kubeClient *kubernetes.Clientset) error

type IstioProxyStatusData

type IstioProxyStatusData struct {
	ClusterID           string
	IstiodPodName       string
	IstiodPodNamespace  string
	IstiodRevision      string
	IstiodVersion       string
	ProxiedPodId        string
	ProxiedPodName      string
	ProxiedPodNamespace string
}

func GetProxyStatusData

func GetProxyStatusData(ctx context.Context, kubeClient *kubernetes.Clientset) ([]IstioProxyStatusData, error)

this should be called from the controllers - it will fetch and process the istio data

Jump to

Keyboard shortcuts

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