envoverwrite

package
v1.0.148 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrigWorkloadEnvValues deprecated

type OrigWorkloadEnvValues struct {
	OrigManifestValues map[string]envOverwrite.OriginalEnv
}

Deprecated: Used for migration purposes only. remove in odigos v1.1

func NewOrigWorkloadEnvValues

func NewOrigWorkloadEnvValues(workloadAnnotations map[string]string) (*OrigWorkloadEnvValues, error)

func (*OrigWorkloadEnvValues) GetContainerStoredEnvs

func (o *OrigWorkloadEnvValues) GetContainerStoredEnvs(containerName string) envOverwrite.OriginalEnv

func (*OrigWorkloadEnvValues) InsertOriginalValue

func (o *OrigWorkloadEnvValues) InsertOriginalValue(containerName, envName string, val *string)

func (*OrigWorkloadEnvValues) RemoveOriginalValue

func (o *OrigWorkloadEnvValues) RemoveOriginalValue(containerName, envName string) (*string, bool)

this function is called when reverting a value back to it's original content. it removes the env, if exists, and returns the original value for the caller to populate back into the manifest.

Jump to

Keyboard shortcuts

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