Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
move entrypoint querying into the webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
bonifaido committed Jun 7, 2019
1 parent f4ee968 commit f4cb1be
Show file tree
Hide file tree
Showing 11 changed files with 258 additions and 321 deletions.
46 changes: 0 additions & 46 deletions cmd/vault-env/entrypoint_cmd.go

This file was deleted.

131 changes: 0 additions & 131 deletions cmd/vault-env/k8s.go

This file was deleted.

11 changes: 2 additions & 9 deletions cmd/vault-env/main.go
Expand Up @@ -52,10 +52,6 @@ var sanitizeEnvmap = map[string]bool{
"VAULT_ROLE": true,
"VAULT_PATH": true,
"VAULT_IGNORE_MISSING_SECRETS": true,
"MY_POD_NAME": true,
"NAMESPACE": true,
"CONTAINER_NAME": true,
"REGISTRY_SKIP_VERIFY": true,
}

// Appends variable an entry (name=value) into the environ list.
Expand Down Expand Up @@ -174,11 +170,8 @@ func main() {

var entrypointCmd []string
if len(os.Args) == 1 {
// reads entrypoint and cmd from image configuration
entrypoint, cmd := GetEntrypointCmd(client)

logger.Info("Retrieved configuration", zap.Strings("entrypoint", entrypoint), zap.Strings("cmd", cmd))
entrypointCmd = append(entrypoint, cmd...)
logger.Fatal("no command is given, vault-env can't determine the entrypoint (command), please specify it explicitly or let the webhook query it (see documentation)")
os.Exit(1)
} else {
entrypointCmd = os.Args[1:]
}
Expand Down
26 changes: 0 additions & 26 deletions cmd/vault-env/types.go

This file was deleted.

85 changes: 0 additions & 85 deletions cmd/vault-env/utils.go

This file was deleted.

0 comments on commit f4cb1be

Please sign in to comment.