platform

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

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInfraStatus

func GetInfraStatus(kClient client.Client) (*configv1.InfrastructureStatus, error)

GetInfraStatus will return the clusterwide Infrastructure's object status

func GetInfraStatusUsingKubeconfig

func GetInfraStatusUsingKubeconfig(kubeconfig string) (*configv1.InfrastructureStatus, error)

GetInfraStatusUsingKubeconfig queries the k8s api for the infrastructure CR using the kubeconfig file pointed to by the passed in kubeconfig (pass in empty string to use default k8s client configurations)

func GetType

func GetType(infraStatus *configv1.InfrastructureStatus) configv1.PlatformType

GetType returns the platform type given an infrastructure status. If PlatformStatus is set, it will get the platform type from it, otherwise it will get it from InfraStatus.Platform which is deprecated in 4.2

Types

This section is empty.

Jump to

Keyboard shortcuts

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