configmap

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadInt added in v0.13.0

func ReadInt(requests []ReadIntRequest, config *corev1.ConfigMap) error

ReadInt reads int values from a given configmap according to the specs.

Types

type ReadIntRequest added in v0.13.0

type ReadIntRequest struct {
	// Key in the configmap to read.
	Key string
	// Field is the int field to set.
	Field *int
	// DefaultValue is the default value to use if Key doesn't exist.
	DefaultValue int
}

ReadIntRequest specifies the key to read from a configmap. Its value is set to the Field.

Jump to

Keyboard shortcuts

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