Documentation ¶
Index ¶
- Constants
- func DirectPVDriveInterface(token string) (*directpvclient.DirectCSIDriveInterface, error)
- func DirectPVVolumeInterface(token string) (*directpvclient.DirectCSIVolumeInterface, error)
- func GetK8sAPIServer() string
- func GetK8sConfig(token string) *rest.Config
- func GetMinioImage() (*string, error)
- func GetNsFromFile() string
- func K8sClient(token string) (*kubernetes.Clientset, error)
- func OperatorClient(token string) (*operator.Clientset, error)
Constants ¶
View Source
const ( ConsoleK8sAPIServer = "CONSOLE_K8S_API_SERVER" ConsoleK8SAPIServerTLSRootCA = "CONSOLE_K8S_API_SERVER_TLS_ROOT_CA" ConsoleMinioImage = "CONSOLE_MINIO_IMAGE" )
Variables ¶
This section is empty.
Functions ¶
func DirectPVDriveInterface ¶ added in v0.20.0
func DirectPVDriveInterface(token string) (*directpvclient.DirectCSIDriveInterface, error)
func DirectPVVolumeInterface ¶ added in v0.20.0
func DirectPVVolumeInterface(token string) (*directpvclient.DirectCSIVolumeInterface, error)
func GetK8sAPIServer ¶
func GetK8sAPIServer() string
func GetK8sConfig ¶
func GetMinioImage ¶
GetMinioImage returns the image URL to be used when deploying a MinIO instance, if there is a preferred image to be used (configured via ENVIRONMENT VARIABLES) GetMinioImage will return that if not, GetMinioImage will try to obtain the image URL for the latest version of MinIO and return that
func GetNsFromFile ¶
func GetNsFromFile() string
GetNsFromFile assumes console is running inside a k8s pod and extract the current namespace from the /var/run/secrets/kubernetes.io/serviceaccount/namespace file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.