kubeconfig

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: Apache-2.0 Imports: 7 Imported by: 80

Documentation

Overview

Package kubeconfig defines and generates the kubeconfig assets.

Index

Constants

View Source
const (
	// KubeconfigUserNameAdmin is the user name of the admin kubeconfig.
	KubeconfigUserNameAdmin = "admin"
	// KubeconfigUserNameKubelet is the user name of the kubelet kubeconfig.
	KubeconfigUserNameKubelet = "kubelet"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubeconfig

type Kubeconfig struct {
	// contains filtered or unexported fields
}

Kubeconfig implements the asset.Asset interface that generates the admin kubeconfig and kubelet kubeconfig.

func (*Kubeconfig) Dependencies

func (k *Kubeconfig) Dependencies() []asset.Asset

Dependencies returns the dependency of the kubeconfig.

func (*Kubeconfig) Generate

func (k *Kubeconfig) Generate(parents map[asset.Asset]*asset.State) (*asset.State, error)

Generate generates the kubeconfig.

func (*Kubeconfig) Name

func (k *Kubeconfig) Name() string

Name returns the human-friendly name of the asset.

type Stock

type Stock interface {
	// KubeconfigAdmin is the asset that generates the admin kubeconfig.
	KubeconfigAdmin() asset.Asset
	// KubeconfigKubelet is the asset that generates the kubelet kubeconfig.
	KubeconfigKubelet() asset.Asset
}

Stock is the stock of the kubeconfig assets that can be generated.

type StockImpl

type StockImpl struct {
	// contains filtered or unexported fields
}

StockImpl implements the Stock interface for kubeconfig assets.

func (*StockImpl) EstablishStock

func (s *StockImpl) EstablishStock(installConfigStock installconfig.Stock, tlsStock tls.Stock)

EstablishStock establishes the stock of assets.

func (*StockImpl) KubeconfigAdmin

func (s *StockImpl) KubeconfigAdmin() asset.Asset

KubeconfigAdmin is the asset that generates the admin kubeconfig.

func (*StockImpl) KubeconfigKubelet

func (s *StockImpl) KubeconfigKubelet() asset.Asset

KubeconfigKubelet is the asset that generates the kubelet kubeconfig.

Jump to

Keyboard shortcuts

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