Documentation ¶
Index ¶
- func Btoi(b bool) int
- func CRDInstalled(discovery client.IDiscovery) bool
- func CleanupOldCrd(client *dclient.Client)
- func ContainsNamepace(patterns []string, ns string) bool
- func ContainsString(list []string, element string) bool
- func JoinPatches(patches [][]byte) []byte
- func NewKubeClient(config *rest.Config) (kubernetes.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ContainsNamepace ¶ added in v0.10.0
ContainsNamepace check if namespace satisfies any list of pattern(regex)
func ContainsString ¶ added in v0.10.0
ContainsString check if the string is contains in a list
func JoinPatches ¶ added in v0.8.0
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.
Click to show internal directories.
Click to hide internal directories.