Hello everyone!
I'm using kubectl-run pipe on the version 1.3.3 to deploy my application to AKS. However I'm facing a problem on setting the application namespace, it's always getting the default namespace no matter what I pass to KUBECTL_ARGS. My pipe configuration looks like this:
- pipe: atlassian/kubectl-run:1.3.3
variables:
KUBE_CONFIG: $KUBE_CONFIG_PRD
KUBECTL_COMMAND: 'apply'
RESOURCE_PATH: 'deploy/WebApi/Deployment.yml'
KUBECTL_ARGS: '--namespace ${ENVIRONMENT}'
No error is shown on logs and actually the pipe executes successfully.
I could see on the source code that the KUBECTL_ARGS are concatenated with the command itself, but as I said on the AKS I'm always getting the default namespace.
This is a very important step to migrate my CI/CD from Jenkins to Bitbucket pipelines, so I really appreciate the help.
Best regards.