kubernetes

package
v0.0.0-...-a4d1c61 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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