Version: v0.6.0 Latest Latest

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 4 Imported by: 0




This section is empty.


This section is empty.


func GetClusters

func GetClusters(config *Config) ([]*cluster.Cluster, error)

GetClusters returns all clusters for the given provider. When the provider field doesn't match our custom Type, we only log a warning instead of throwing an error. This allows kobs to start also, when one provided provider is invalid.


type Config

type Config struct {
	Provider   Type              `json:"provider"`
	InCluster  incluster.Config  `json:"incluster"`
	Kubeconfig kubeconfig.Config `json:"kubeconfig"`

Config is the provider configuration to get Kubernetes clusters from. The provider configuration only contains the provider type and a provider specific configuration.

type Type

type Type string

Type is the type of the cluster provider. At the moment it is only possible to load clusters via the incluster configuration or a Kubeconfig file. It is planed to implement support GKE, EKS and AKS later, so that all clusters can be automatically added from a cloud provider.

const (
	// INCLUSTER is the type of the cluster provider, when kobs should be used for the cluster where it is running in.
	INCLUSTER Type = "incluster"
	// KUBECONFIG is the type of the cluster provider, when kobs should be used for all clusters in a given Kubeconfig
	// file.
	KUBECONFIG Type = "kubeconfig"

Source Files


Path Synopsis

Jump to

Keyboard shortcuts

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