Skip to content

Instantly share code, notes, and snippets.

@iktakahiro
Last active January 17, 2019 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iktakahiro/c891715cd4ea3906e0c3bd5fd2fd4a46 to your computer and use it in GitHub Desktop.
Save iktakahiro/c891715cd4ea3906e0c3bd5fd2fd4a46 to your computer and use it in GitHub Desktop.
exampleSecretGenerator
secretGenerator:
- commands:
pgHost: bash -euc 'echo -n "$PG_HOST"'
pgPassword: bash -euc 'echo -n "$PG_PASSWORD"'
pgUser: bash -euc 'echo -n "$PG_USER"'
name: api-secret
## output-example
##
## apiVersion: v1
## data:
## pgHost: hogehoge=
## pgPassword: hogehoge=
## pgUser: hogehoge=
## kind: Secret
## metadata:
## name: api-secret-gmmct62cdf
## type: Opaque
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment