Hi,
I'm trying to use the google gke kubectl pipe to deploy to a kubernetes cluster ( https://bitbucket.org/atlassian/google-gke-kubectl-run/src/master/). How can I use pipe to apply using a kustomization directory, like:
kubectl apply -k kustomize/stage
If i set KUBECTL_COMMAND to apply, then the pipeline fails as the RESOURCE_PATH variable is mandatory.. Setting this to a dummy variable will result in a corrupt command:
kubectl apply -f dummy.yml -k kustomize/stage
which fails as kubectl apply doesn't accept both -f and -k flags to be set
Regards,
Abe
@abraham.bah thanks for reporting!
We will consider this as possible update for the next releases of kubectl pipe.
Cheers, Galyna.
Thanks :)
For now, I've managed to work around the problem by putting the arguments in KUBECTL_COMMAND and the actual command in KUBECTL_ARGS:
KUBECTL_ARGS = 'apply'
KUBECTL_COMMAND = '-k=kustomize/stage'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@abraham.bah cool, smart solution :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.