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) 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 ¶
KubeconfigAdmin is the asset that generates the admin kubeconfig.
func (*StockImpl) KubeconfigKubelet ¶
KubeconfigKubelet is the asset that generates the kubelet kubeconfig.
Click to show internal directories.
Click to hide internal directories.