From 54e8a014bc71d25cefc1b4d150a9429403bac99c Mon Sep 17 00:00:00 2001 From: guineveresaenger Date: Mon, 25 Jun 2018 16:39:29 -0700 Subject: [PATCH] Adds example for secret download using curl It is possible to download secrets from web locations, as the command subfield can execute any terminal command specified. This is a useful feature that should be highlighted. --- docs/kustomization.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/kustomization.yaml b/docs/kustomization.yaml index ac377f5e8..438498ad4 100644 --- a/docs/kustomization.yaml +++ b/docs/kustomization.yaml @@ -82,6 +82,11 @@ secretGenerator: tls.crt: "cat secret/tls.cert" tls.key: "cat secret/tls.key" type: "kubernetes.io/tls" +- name: downloaded_secret + commands: + username: "curl -s https://path/to/secrets/username.yaml" + password: "curl -s https://path/to/secrets/password.yaml" + type: Opaque # Each entry in this list should resolve to a directory # containing a kustomization file, else the