package kubeconfig
import "github.com/oslokommune/okctl/pkg/kubeconfig"
Package kubeconfig creates a kubernetes KUBECONFIG that uses awm-iam-authenticator to receive an authorisation token and fetches the certificate and endpoint from EKS
Index ¶
- func Create(awsIAMAuthenticatorPath string, username string, cfg *v1alpha5.ClusterConfig) clientCmdApi.Config
- func GetUser(iamRoleARN string) string
- type Config
- func (k *Config) Bytes() ([]byte, error)
- func (k *Config) Config() clientCmdApi.Config
- func (k *Config) Validate() error
- type Getter
Functions ¶
func Create ¶
func Create(awsIAMAuthenticatorPath string, username string, cfg *v1alpha5.ClusterConfig) clientCmdApi.Config
Create returns an initialised kubeconfig
func GetUser ¶
GetUser returns the username part - This is stolen from eksctl
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config contains the
func (*Config) Bytes ¶
Bytes returns the serialised kubeconfig
func (*Config) Config ¶
func (k *Config) Config() clientCmdApi.Config
Config returns the plain config
func (*Config) Validate ¶
Validate a configuration
type Getter ¶
Getter defines the kubeconf get interactions
func New ¶
func New(awsIAMAuthenticatorPath string, clusterConfig *v1alpha5.ClusterConfig, provider v1alpha1.CloudProvider) Getter
New returns an initialised kubeconfig creator
Source Files ¶
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 5 days ago –
Tools for package owners.