Documentation ¶
Index ¶
- Constants
- func GetAccount(secret *corev1.Secret, cm *corev1.ConfigMap) string
- func GetBaseURL(cm *corev1.ConfigMap) string
- func GetClusterIdentifier(cm *corev1.ConfigMap) string
- func GetClusterUniqueIdentifier(kc kubernetes.Interface) (string, error)
- func GetOceanConfigMap(ctx context.Context, kc kubernetes.Interface) (*corev1.ConfigMap, error)
- func GetOceanSecret(ctx context.Context, kc kubernetes.Interface) (*corev1.Secret, error)
- func GetProxyURL(cm *corev1.ConfigMap) string
- func GetToken(secret *corev1.Secret, cm *corev1.ConfigMap) string
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 GetBaseURL ¶
func GetClusterIdentifier ¶
func GetClusterUniqueIdentifier ¶
func GetClusterUniqueIdentifier(kc kubernetes.Interface) (string, error)
func GetOceanConfigMap ¶
func GetOceanSecret ¶
func GetProxyURL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.