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 ¶
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
Click to show internal directories.
Click to hide internal directories.