forge

package
v0.3.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package forge contains the logic required to generate the virtual kubelet resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterRoleLabels added in v0.3.0

func ClusterRoleLabels(remoteClusterID string) map[string]string

ClusterRoleLabels returns the labels to be set on a ClusterRoleBinding related to a VirtualKubelet.

func VirtualKubeletClusterRoleBinding added in v0.3.0

func VirtualKubeletClusterRoleBinding(name, kubeletNamespace, remoteClusterID string) *rbacv1.ClusterRoleBinding

VirtualKubeletClusterRoleBinding forges a ClusterRoleBinding for a VirtualKubelet.

func VirtualKubeletDeployment added in v0.3.0

func VirtualKubeletDeployment(remoteClusterID, vkName, vkNamespace, liqoNamespace,
	nodeName, homeClusterID string, opts *VirtualKubeletOpts) (*appsv1.Deployment, error)

VirtualKubeletDeployment forges the deployment for a virtual-kubelet.

func VirtualKubeletLabels added in v0.3.0

func VirtualKubeletLabels(remoteClusterID string, opts *VirtualKubeletOpts) map[string]string

VirtualKubeletLabels forges the labels for a virtual-kubelet.

func VirtualKubeletServiceAccount added in v0.3.0

func VirtualKubeletServiceAccount(name, kubeletNamespace string) *v1.ServiceAccount

VirtualKubeletServiceAccount forges a ServiceAccount for a VirtualKubelet.

Types

type VirtualKubeletOpts added in v0.3.0

type VirtualKubeletOpts struct {
	// ContainerImage contains the virtual kubelet image name and tag.
	ContainerImage string
	// InitContainerImage contains the virtual kubelet init-container image name and tag.
	InitContainerImage string
	// DisableCertGeneration allows to disable the virtual kubelet certificate generation by means
	// of the init container (used for logs/exec capabilities).
	DisableCertGeneration bool
	ExtraAnnotations      map[string]string
	ExtraLabels           map[string]string
	ExtraArgs             []string
	NodeExtraAnnotations  argsutils.StringMap
	NodeExtraLabels       argsutils.StringMap
}

VirtualKubeletOpts defines the custom options associated with the virtual kubelet deployment forging.

Jump to

Keyboard shortcuts

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