bindatautil

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyObject

func ApplyObject(ctx context.Context, client k8sclient.Client, obj *uns.Unstructured) error

ApplyObject applies the desired object against the apiserver, merging it with any existing objects if already present.

func MergeMetadataForUpdate

func MergeMetadataForUpdate(current, updated *uns.Unstructured) error

MergeMetadataForUpdate merges the read-only fields of metadata. This is to be able to do a a meaningful comparison in apply, since objects created on runtime do not have these fields populated.

func RenderDir

func RenderDir(manifestDir string, d *RenderData) ([]*unstructured.Unstructured, error)

RenderDir will render all manifests in a directory, descending in to subdirectories It will perform template substitutions based on the data supplied by the RenderData

func RenderTemplate

func RenderTemplate(path string, d *RenderData) ([]*unstructured.Unstructured, error)

RenderTemplate reads, renders, and attempts to parse a yaml or json file representing one or more k8s api objects

Types

type RenderData

type RenderData struct {
	Funcs template.FuncMap
	Data  map[string]interface{}
}

RenderData -

func MakeRenderData

func MakeRenderData() RenderData

MakeRenderData -

Jump to

Keyboard shortcuts

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