utils

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Btoi added in v0.8.0

func Btoi(b bool) int

Btoi converts boolean to int

func CRDInstalled added in v0.9.0

func CRDInstalled(discovery client.IDiscovery) bool

CRDInstalled to check if the CRD is installed or not

func CleanupOldCrd added in v1.1.0

func CleanupOldCrd(client *dclient.Client)

func ContainsNamepace added in v0.10.0

func ContainsNamepace(patterns []string, ns string) bool

ContainsNamepace check if namespace satisfies any list of pattern(regex)

func ContainsString added in v0.10.0

func ContainsString(list []string, element string) bool

ContainsString check if the string is contains in a list

func JoinPatches added in v0.8.0

func JoinPatches(patches [][]byte) []byte

JoinPatches joins array of serialized JSON patches to the single JSONPatch array

func NewKubeClient added in v0.8.0

func NewKubeClient(config *rest.Config) (kubernetes.Interface, error)

NewKubeClient returns a new kubernetes client

Types

This section is empty.

Jump to

Keyboard shortcuts

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