kube

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 Kubeconfig(filenames []string, providers []string, context string, keepPems bool)

func SetupKubernetes

func SetupKubernetes(params parameters.LockedParameters,
	provider string, outputs parameters.CapturedOutputs,
	context string, overwrite, keepPems bool)

Types

type KubeAuthPlugin

type KubeAuthPlugin struct {
	ApiVersion string   `yaml:"apiVersion,omitempty"`
	Command    string   `yaml:"command,omitempty"`
	Args       []string `yaml:"args,omitempty"`
}

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"`
}

type KubeUsers

type KubeUsers struct {
	Name string   `yaml:"name,omitempty"`
	User KubeUser `yaml:"user,omitempty"`
}

Jump to

Keyboard shortcuts

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