ocean

package
v0.0.0-...-c6cf6ad Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpotinstOceanConfigmap = "spotinst-kubernetes-cluster-controller-config"
	SpotinstOceanSecret    = "spotinst-kubernetes-cluster-controller"

	SpotinstClusterIdentifier = "spotinst.cluster-identifier"
	SpotinstToken             = "token"
	SpotinstTokenLegacy       = "spotinst.token"
	SpotinstAccount           = "account"
	SpotinstAccountLegacy     = "spotinst.account"
	SpotinstProxyURL          = "proxy-url"
	SpotinstBaseURL           = "base-url"
)

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(secret *corev1.Secret, cm *corev1.ConfigMap) string

func GetBaseURL

func GetBaseURL(cm *corev1.ConfigMap) string

func GetClusterIdentifier

func GetClusterIdentifier(cm *corev1.ConfigMap) string

func GetClusterUniqueIdentifier

func GetClusterUniqueIdentifier(kc kubernetes.Interface) (string, error)

func GetOceanConfigMap

func GetOceanConfigMap(ctx context.Context, kc kubernetes.Interface) (*corev1.ConfigMap, error)

func GetOceanSecret

func GetOceanSecret(ctx context.Context, kc kubernetes.Interface) (*corev1.Secret, error)

func GetProxyURL

func GetProxyURL(cm *corev1.ConfigMap) string

func GetToken

func GetToken(secret *corev1.Secret, cm *corev1.ConfigMap) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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