For apply / replace configMap I need to run two kubectl commands in the following way:
kubectl create configmap sb-products-files --from-file=configmap_files/ \
-o yaml --dry-run=client | kubectl replace --namespace=myNamespace -f -
Basically, I need to run one command, and it's output send as input to another command.
Is there any way to accomplish it in bitbucket pipeline?
@Kostya Kostyushko I meant somethong like
- kubectl ... > output.yml
- pipe: atlassian/kubectl-run:2.0.0
The location of your resource file can vary depending on your requirements and project structure.
We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events