Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudProvider ¶ added in v1.3.0
type CloudProvider string
const ( CloudProviderUndef CloudProvider = "" CloudProviderUnknown CloudProvider = "unknown" CloudProviderGKE CloudProvider = "gke" CloudProviderEKS CloudProvider = "eks" CloudProviderAKS CloudProvider = "aks" CloudProviderDOKS CloudProvider = "doks" CloudProviderOKE CloudProvider = "oke" CloudProviderACK CloudProvider = "ack" CloudProviderNKP CloudProvider = "nkp" CloudProviderPlatform9 CloudProvider = "platform9" CloudProviderTanzu CloudProvider = "tanzu" CloudProviderRancher CloudProvider = "rancher" )
func DetectCloudProvider ¶ added in v1.3.0
func DetectCloudProvider(ctx context.Context, client rest.Interface, cfg *rest.Config) CloudProvider
DetectCloudProvider returns the managed Kubernetes offering the operator runs on, or CloudProviderUnknown when no probe matches.
type ServerVersion ¶
type ServerVersion struct {
Platform Platform
CloudProvider CloudProvider
Info k8sversion.Info
}
func GetServerVersion ¶
func GetServerVersion(cliCmd clientcmd.Client) (*ServerVersion, error)
func (*ServerVersion) String ¶ added in v1.3.0
func (s *ServerVersion) String() string
String returns the platform identifier reported to telemetry, with the cloud provider appended when detected (e.g. "kubernetes-gke").