Skip to content

Commit

Permalink
increase commentary around env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrannosaurus-becks committed Feb 3, 2020
1 parent 4dc0d00 commit e75fe3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions serviceregistration/kubernetes/client/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ const (
// Vault may read them in if set through these environment variables.
// Example here:
// https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/
// The client itself does nothing directly with these variables, it's
// up to the caller. However, they live here so they'll be consistently
// named should the client ever be reused.
// We generally recommend preferring environmental settings over configured
// ones, allowing settings from the Downward API to override hard-coded
// ones.
EnvVarKubernetesNamespace = "VAULT_K8S_NAMESPACE"
EnvVarKubernetesPodName = "VAULT_K8S_POD_NAME"

Expand Down

0 comments on commit e75fe3b

Please sign in to comment.