utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespace

func GetNamespace(ns string) string

GetNamespace trying to read the namespace from the input if not set, it tries to read from an environment variable, and if not set there either it returns "default"

func IsStateApplicable

func IsStateApplicable(kubeClient k8sclient.Interface, state *v1.NodeNetworkState, nodeName string) bool

IsStateApplicable check if the state should be applied to current node

func ValidateNodeName

func ValidateNodeName(kubeClient k8sclient.Interface, nodeName string) bool

ValidateNodeName check if the current host is a k8s node

Types

This section is empty.

Jump to

Keyboard shortcuts

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