secret

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecret

func GetSecret(context rcontext.Context, secretname string, fallback bool) (*v1.Secret, error)

GetSecret gets a kubernetes secret

func GetSecretValue

func GetSecretValue(context rcontext.Context, name string, key string, fallback bool) ([]byte, error)

GetSecretValue gets the value of a secret in the given namespace. If not found and fallback is true, check default namespace

func HasSecret

func HasSecret(context rcontext.Context, name string, fallback bool) bool

HasSecret checks if a secret exists

Types

This section is empty.

Jump to

Keyboard shortcuts

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