Skip to content

Instantly share code, notes, and snippets.

@vreon
Last active February 1, 2018 21:23
Show Gist options
  • Save vreon/3968a73d63f306fa80fd9f53dfa7020a to your computer and use it in GitHub Desktop.
Save vreon/3968a73d63f306fa80fd9f53dfa7020a to your computer and use it in GitHub Desktop.
argoproj/argo-workflows#711 super-brittle workaround
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: test
spec:
entrypoint: main
templates:
- name: main
inputs:
artifacts:
- name: kubectl
http:
url: https://storage.googleapis.com/kubernetes-release/release/v1.8.0/bin/linux/amd64/kubectl
path: /usr/local/bin/kubectl
mode: 755
script:
image: busybox
command: [sh]
source: |
echo "PASSWORD=$(kubectl get secret my-secret -o jsonpath='{.data.password}' | base64 -d)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment