Documentation ¶
Index ¶
- Variables
- func CaptureKubernetes(component *manifest.ComponentRef, stackBaseDir string, ...) parameters.CapturedOutputs
- func Kubeconfig(filenames []string, providers []string, context string, keepPems bool)
- func SetupKubernetes(params parameters.LockedParameters, provider string, ...)
- type KubeAuthPlugin
- type KubeConfig
- type KubeUser
- type KubeUsers
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KubernetesDefaultProviders = []string{ "kubernetes", "eks", "gke", "aks", "stack-k8s-aws", "stack-k8s-eks", "stack-k8s-gke", "stack-k8s-aks", "k8s-aws", "k8s-eks", "k8s-gke", "k8s-aks", "k8s-hybrid", "k8s-metal", "k8s-openshift"} KubernetesParameters = []string{stackDomainOutput, kubernetesFlavorOutput, kubernetesApiEndpointOutput, kubernetesApiTokenOutput, kubernetesApiCaCertOutput, kubernetesApiClientCertOutput, kubernetesApiClientKeyOutput, kubernetesEksClusterOutput, kubernetesGkeClusterOutput} KubernetesKeysParameters = []string{ kubernetesApiCaCertOutput, kubernetesApiClientCertOutput, kubernetesApiClientKeyOutput} KubernetesSecretParameters = []string{ kubernetesApiTokenOutput, kubernetesApiCaCertOutput, kubernetesApiClientCertOutput, kubernetesApiClientKeyOutput} )
Functions ¶
func CaptureKubernetes ¶
func CaptureKubernetes(component *manifest.ComponentRef, stackBaseDir string, componentsBaseDir string, componentOutputs parameters.CapturedOutputs) parameters.CapturedOutputs
func Kubeconfig ¶
func SetupKubernetes ¶
func SetupKubernetes(params parameters.LockedParameters, provider string, outputs parameters.CapturedOutputs, context string, overwrite, keepPems bool)
Types ¶
type KubeAuthPlugin ¶
type KubeConfig ¶
type KubeConfig struct { Kind string `yaml:"kind,omitempty"` ApiVersion string `yaml:"apiVersion,omitempty"` Preferences map[string]string `yaml:"preferences,omitempty"` CurrentContext string `yaml:"current-context,omitempty"` Clusters []struct { Name string `yaml:"name,omitempty"` Cluster map[string]string `yaml:"cluster,omitempty"` } `yaml:"clusters,omitempty"` Contexts []struct { Name string `yaml:"name,omitempty"` Context map[string]string `yaml:"context,omitempty"` } `yaml:"contexts,omitempty"` Users []KubeUsers `yaml:"users,omitempty"` }
type KubeUser ¶
type KubeUser struct { ClientCertificate string `yaml:"client-certificate,omitempty"` ClientCertificateData string `yaml:"client-certificate-data,omitempty"` ClientKey string `yaml:"client-key,omitempty"` ClientKeyData string `yaml:"client-key-data,omitempty"` Exec KubeAuthPlugin `yaml:"exec,omitempty"` }
Click to show internal directories.
Click to hide internal directories.