k8sutil

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrchestratorType

type OrchestratorType string

OrchestratorType is the underlying container orchestrator type

const (
	// TKGS is the VMware Tanzu Kubernetes Grid Service
	TKGS OrchestratorType = "TKGS"
	// OpenShift is the RedHat Openshift Container Platform
	OpenShift OrchestratorType = "OpenShift"
	// GKE is the Google Kubernetes Engine Service
	GKE OrchestratorType = "GKE"
	// EKS is the Amazon Elastic Kubernetes Service
	EKS OrchestratorType = "EKS"
	// AKS is the Azure Kubernetes Service
	AKS OrchestratorType = "AKS"
	// OKE is the Oracle Kubernetes Service
	OKE OrchestratorType = "OKE"
	// Ezmeral is the HPE Ezmeral Data Fabric
	Ezmeral OrchestratorType = "Ezmeral"
	// RKE is the Rancker Kubernetes Engine
	RKE OrchestratorType = "RKE"
	// K8s is the upstream Kubernetes Distribution
	K8s OrchestratorType = "Kubernetes"
	// Unknown distribution type
	Unknown OrchestratorType = "Unknown"
)

func GetOrchestratorType

func GetOrchestratorType(k8sClient client.Client) (OrchestratorType, error)

GetOrchestratorType checks the container orchestrator by looking for specific node labels that identify TKGS, OpenShift, or CSP-specific Kubernetes distributions.

Jump to

Keyboard shortcuts

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