api

package
v0.0.0-...-2c88b72 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeObject

func DeserializeObject(yaml []byte) (runtime.Object, error)

DeserializeObject reads a k8s object from yaml.

func GetCurrentClusterClient

func GetCurrentClusterClient() (*kubernetes.Clientset, error)

GetCurrentClusterClient gets a client for the current cluster upon which we are currently executing upon. Only works when running in a cluster.

func ProcessTemplate

func ProcessTemplate(yamlTemplate string, values interface{}) (yaml []byte, err error)

ProcessTemplate substitutes the supplied values into a yaml template.

func SerializeObject

func SerializeObject(obj runtime.Object) (string, error)

SerializeObject returns the yaml representation of a k8s object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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