forge

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 15 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(kubeletNamespace string, remoteCluster *discoveryv1alpha1.ClusterIdentity) *rbacv1.ClusterRoleBinding

VirtualKubeletClusterRoleBinding forges a ClusterRoleBinding for a VirtualKubelet.

func VirtualKubeletDeployment added in v0.3.0

func VirtualKubeletDeployment(homeCluster, remoteCluster discoveryv1alpha1.ClusterIdentity, vkNamespace, liqoNamespace string,
	opts *VirtualKubeletOpts, resourceOffer *sharingv1alpha1.ResourceOffer) (*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(namespace 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 (with the Kubernetes CSR)
	// 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
	RequestsCPU           resource.Quantity
	LimitsCPU             resource.Quantity
	RequestsRAM           resource.Quantity
	LimitsRAM             resource.Quantity
}

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