util

package
v0.0.0-...-686509f Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationNodePodSubnet = "parrot.sap.cc/podsubnet"
	ConfigPath              = "/etc/kubernetes/kube-parrot/config"
)

Variables

This section is empty.

Functions

func GetNodeInternalIP

func GetNodeInternalIP(node *v1.Node) (string, error)

func GetNodePodSubnet

func GetNodePodSubnet(node *v1.Node) (string, error)

Types

type Config

type Config struct {
	PodCIDR string `json:"podCIDR"`
}

type DirtyReconcilerInterface

type DirtyReconcilerInterface interface {
	Interface
	Dirty()
}

func NewNamedDirtyReconciler

func NewNamedDirtyReconciler(name string, reconcileFunc func() error) DirtyReconcilerInterface

type Interface

type Interface interface {
	Reconcile() error
	Run(stopCh <-chan struct{})
}

type Type

type Type struct {
	// contains filtered or unexported fields
}

func (*Type) Reconcile

func (c *Type) Reconcile() error

func (*Type) Run

func (c *Type) Run(stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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