utils

package
v0.0.0-...-de76e5b Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SecretVolumePath is the path of ALL the mounted secrets.
	SecretVolumePath = "/etc/secrets"
	// ConfigVolumePath is the path of the mounted Redis Streams config file.
	ConfigVolumePath = "/etc/config"
)

Variables

This section is empty.

Functions

func NewLogger

func NewLogger() *zap.SugaredLogger

NewLogger returns a new zap.SugaredLogger

Types

type VolumeReader

type VolumeReader struct {
	// contains filtered or unexported fields
}

func NewVolumeReader

func NewVolumeReader(secretPath string) *VolumeReader

func (*VolumeReader) GetSecretFromVolume

func (vr *VolumeReader) GetSecretFromVolume(selector *corev1.SecretKeySelector) (string, error)

GetSecretFromVolume retrieves the value of mounted secret volume

func (*VolumeReader) GetSecretVolumePath

func (vr *VolumeReader) GetSecretVolumePath(selector *corev1.SecretKeySelector) (string, error)

GetSecretVolumePath returns the path of the mounted secret

Jump to

Keyboard shortcuts

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