internal

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package internal contains the utility functions used across the codebase.

Index

Constants

View Source
const (
	// NamespaceLabelKey acts a placeholder for the generic key name
	// `lokomotive.kinvolk.io/name`.
	// NOTE: In the subsequent versions if this value changes, it's very possible
	// that the change might not be backwards compatible.
	// In such a case we need to avoid updating this value and introduce
	// another key to ensure backwards compatibility.
	NamespaceLabelKey = "lokomotive.kinvolk.io/name"
)

Variables

This section is empty.

Functions

func AppendNamespaceLabel

func AppendNamespaceLabel(namespace string, labels map[string]string) map[string]string

AppendNamespaceLabel appends the release namespace as value to the key `lokomotive.kinvolk.io/name`.

func Indent added in v0.5.0

func Indent(data string, indent int) string

Indent indents the given string after splitting it first on `\n` and adds the space padding to each token by the provided indent number.

func MergeMaps

func MergeMaps(m1, m2 map[string]string) map[string]string

MergeMaps merges two maps[string]string, with the values in first map overriding the same keys in the second map.

Types

This section is empty.

Directories

Path Synopsis
Package admissionwebhookserver contains code for admission webhook.
Package admissionwebhookserver contains code for admission webhook.
Package template contains the utility functions that help in rendering the go templates.
Package template contains the utility functions that help in rendering the go templates.

Jump to

Keyboard shortcuts

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