kubernetes

package
Version: v0.0.0-...-501032a Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeKubernetes

func InitializeKubernetes(kubeconfig string, logger ign.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 ign.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 ign.Logger) orchestrator.Cluster

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
}

Config is used to group the inputs for NewCustomKubernetes. It includes all the needed subcomponents required by Kubernetes.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL