utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatReleaseVersion

func FormatReleaseVersion(version string) (string, error)

FormatReleaseVersion returns the major and minor version of the release

func GetMonitoredNamespaces

func GetMonitoredNamespaces(client kubernetes.Interface, osmControlPlaneNamespace common.MeshNamespace) (*corev1.NamespaceList, error)

GetMonitoredNamespaces returns a list of namespaces monitored by the osm control plane.

func GetOSMControllerDeployment

func GetOSMControllerDeployment(client kubernetes.Interface, osmControlPlaneNamespace common.MeshNamespace) (*v1.Deployment, error)

GetOSMControllerDeployment returns the OSM controller deployment in a given namespace

Types

type MeshInfo

type MeshInfo struct {
	Name       common.MeshName
	Namespace  common.MeshNamespace
	OSMVersion version.ControllerVersion
}

MeshInfo is the type used to represent service mesh information

func GetMeshInfo

func GetMeshInfo(client kubernetes.Interface, osmControlPlaneNamespace common.MeshNamespace) (*MeshInfo, error)

GetMeshInfo returns the MeshInfo for a service mesh with its control plane in the given namespace

Jump to

Keyboard shortcuts

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