util

package module
v0.0.0-...-1a1c726 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfirmToProceed

func ConfirmToProceed() bool

func ConvertToEnvVarName

func ConvertToEnvVarName(text string) string

ConvertToEnvVarName converts the given text into a usable env var removing any special chars with '_' and transforming text to upper case

func GenerateSHA

func GenerateSHA(data string) string

GenerateSHA from text

func GetSHAfromConfigmap

func GetSHAfromConfigmap(configmap *v1.ConfigMap) string

GetSHAfromConfigmap generate SHA for a configmap

func Int32Ptr

func Int32Ptr(i int32) *int32

Int32Ptr

func InterfaceSlice

func InterfaceSlice(slice interface{}) []interface{}

InterfaceSlice converts an interface to an interface array

Types

type Config

type Config struct {
	Namespace           string
	ResourceName        string
	ResourceAnnotations map[string]string
	Annotation          string
	SHAValue            string
	Type                string
}

Config contains rolling upgrade configuration parameters

type ObjectMeta

type ObjectMeta struct {
	meta_v1.ObjectMeta
}

func ToObjectMeta

func ToObjectMeta(kubernetesObject interface{}) ObjectMeta

Jump to

Keyboard shortcuts

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