forge

package
v0.3.0-rc.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// LiqoOutgoingKey is a label to set on all offloaded resources.
	LiqoOutgoingKey = "virtualkubelet.liqo.io/outgoing"
	// LiqoOriginClusterID is a label to set on all offloaded resources to identify the origin cluster.
	LiqoOriginClusterID = "virtualkubelet.liqo.io/originClusterId"
	// LiqoIncomingKey is a label for incoming resources.
	LiqoIncomingKey = "virtualkubelet.liqo.io/incoming"
)

Variables

View Source
var (
	LiqoNodeName = func() string {
		if forger.virtualNodeName == nil {
			return ""
		}
		return forger.virtualNodeName.Value().ToString()
	}
)

Functions

func ForeignReplicasetDeleted

func ForeignReplicasetDeleted(pod *corev1.Pod) *corev1.Pod

func ForeignToHome

func ForeignToHome(foreignObj, homeObj runtime.Object, reflectionType string) (runtime.Object, error)

func ForeignToHomeStatus

func ForeignToHomeStatus(foreignObj, homeObj runtime.Object) (runtime.Object, error)

func HomeToForeign

func HomeToForeign(homeObj, foreignObj runtime.Object, reflectionType string) (runtime.Object, error)

func InitForger

func InitForger(nattingTable namespacesmapping.NamespaceNatter, opts ...options.ReadOnlyOption)

InitForger initialize forger component to set all necessary fields of offloaded resources.

func ReplicasetFromPod

func ReplicasetFromPod(pod *corev1.Pod) *appsv1.ReplicaSet

Types

This section is empty.

Jump to

Keyboard shortcuts

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