kubernetes

package
v0.0.0-...-f1e7488 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 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 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, *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