utils

package
v0.0.0-...-7c77b90 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeYAMLData

func DecodeYAMLData(data string, into runtime.Object) (runtime.Object, error)

DecodeYAMLData reads a string to extract the Kubernetes object definition

func DecodeYAMLFile

func DecodeYAMLFile(path string, into runtime.Object) (runtime.Object, error)

DecodeYAMLFile reads a YAMl file to extract the Kubernetes object definition

func EnsureDirectory

func EnsureDirectory(f string) error

EnsureDirectory makes sure that the directories specified in the path exist If not, it will create them, if possible.

func TagPodsIfPresent

func TagPodsIfPresent(unstruct *unstructured.Unstructured, tag string)

TagPodsIfPresent finds the TemplateSpec from any workload object that contains it and changes the spec to include the tag label

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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