util

package
v0.0.0-...-3b5879d Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualArrays

func EqualArrays(a, b []int) bool

func Image

func Image(app, version string) string

Image returns full app image given app and version

func LogTraceAsYaml

func LogTraceAsYaml(identifier string, i interface{})

LogTraceAsYaml logs anything as YAML when trace logging is enabled

func Project

func Project() string

Project returns project's name. TODO: Should be loaded from namespace labels..

func Registry

func Registry() string

Registry returns docker registry setting

func RegistrySecrets

func RegistrySecrets() string

Types

type ConfigMapGenerator

type ConfigMapGenerator struct {
	// Name of configMap (required)
	Name string
	// FileSources to derive the configMap from (optional)
	FileSources []string
	// AppendHash; if true, derive a hash from the ConfigMap and append it to the name
	AppendHash bool
}

ConfigMapGenerator supports stable generation of a configMap.

func (ConfigMapGenerator) Generate

func (s ConfigMapGenerator) Generate() (*v1.ConfigMap, error)

Generate outputs a configMap object using the configured fields.

Directories

Path Synopsis
k8s

Jump to

Keyboard shortcuts

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