https://pulumi.com logo
i

important-leather-28796

04/01/2019, 8:08 PM
I need to incorporate a shell command to
htpasswd
to create a basic auth token prior to creating a secret with that token, the equivalent of
Copy code
htpasswd -cb ${FILE} admin@${DOMAIN} ${TRAEFIK_PW}

kubectl create secret generic \
    ${NAME} \
    --from-file=${FILE} \
    --namespace=${TRAEFIK_NAMESPACE}
can I use a promise or other to make this happen?