Documentation ¶
Index ¶
- func InitializeKubernetes(kubeconfig string, logger gz.Logger) (orchestrator.Cluster, error)
- func NewCustomKubernetes(config Config) orchestrator.Cluster
- func NewDefaultKubernetes(api kubernetes.Interface, spdyInit spdy.Initializer, logger gz.Logger) orchestrator.Cluster
- func NewFakeKubernetes(logger gz.Logger) (orchestrator.Cluster, *fake.Clientset)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeKubernetes ¶
func InitializeKubernetes(kubeconfig string, logger gz.Logger) (orchestrator.Cluster, error)
InitializeKubernetes initializes a new Kubernetes orchestrator. `kubeconfig` is the path to the target cluster's kubeconfig file. If it is empty, the default config is used.
func NewCustomKubernetes ¶
func NewCustomKubernetes(config Config) orchestrator.Cluster
NewCustomKubernetes returns a orchestrator.Cluster implementation using Kubernetes. All the subcomponents provided by the Config should be already initialized.
func NewDefaultKubernetes ¶
func NewDefaultKubernetes(api kubernetes.Interface, spdyInit spdy.Initializer, logger gz.Logger) orchestrator.Cluster
NewDefaultKubernetes initializes the set of Kubernetes subcomponents using the given kubernetes client api, spdy initializer and logger.
func NewFakeKubernetes ¶
func NewFakeKubernetes(logger gz.Logger) (orchestrator.Cluster, *fake.Clientset)
NewFakeKubernetes initializes the set of Kubernetes subcomponents using fake implementations.
Types ¶
type Config ¶
type Config struct { Nodes nodes.Nodes Pods pods.Pods Ingresses ingresses.Ingresses IngressRules ingresses.IngressRules Services services.Services NetworkPolicies network.Policies Configurations configurations.Configurations }
Config is used to group the inputs for NewCustomKubernetes. It includes all the needed subcomponents required by Kubernetes.