kubeconfig

package
v0.0.0-...-312d4b9 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

Kubeconfig

This package exports an EKS kubeconfig for the user.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(name string, clusterEndpoint pulumi.StringOutput, certData pulumi.StringOutput, clusterName pulumi.StringOutput) (pulumi.StringOutput, error)

Types

type Cluster

type Cluster struct {
	Server                   string `json:"server"`
	CertificateAuthorityData string `json:"certificate-authority-data"`
}

type Clusters

type Clusters struct {
	Cluster Cluster `json:"cluster"`
	Name    string  `json:"name"`
}

type Context

type Context struct {
	Cluster string `json:"cluster"`
	User    string `json:"user"`
}

type Contexts

type Contexts struct {
	Context Context `json:"context"`
	Name    string  `json:"name"`
}

type Env

type Env struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Exec

type Exec struct {
	APIVersion string   `json:"apiVersion"`
	Command    string   `json:"command"`
	Args       []string `json:"args"`
	Env        []Env    `json:"env"`
}

type KubeConfig

type KubeConfig struct {
	APIVersion     string      `json:"apiVersion"`
	Clusters       []Clusters  `json:"clusters"`
	Contexts       []Contexts  `json:"contexts"`
	CurrentContext string      `json:"current-context"`
	Kind           string      `json:"kind"`
	Preferences    Preferences `json:"preferences"`
	Users          []Users     `json:"users"`
}

type Preferences

type Preferences struct {
}

type User

type User struct {
	Exec Exec `json:"exec"`
}

type Users

type Users struct {
	Name string `json:"name"`
	User User   `json:"user"`
}

Jump to

Keyboard shortcuts

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