forge

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LiqoOutgoingKey = "virtualkubelet.liqo.io/outgoing"
	LiqoIncomingKey = "virtualkubelet.liqo.io/incoming"
)

Variables

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

Functions

func ChangePodIp

func ChangePodIp(newPodCidr string, oldPodIp string) (newPodIp string, err error)

ChangePodIp creates a new IP address obtained by means of the old IP address and the new podCIDR

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)

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