You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm trying to use the kubectl pipe to deploy to kubernets but I'm getting the error:
Traceback (most recent call last):
File "/pipe.py", line 165, in <module>
File "/pipe.py", line 156, in run
File "/pipe.py", line 113, in handle_apply
File "/pipe.py", line 36, in update_labels_in_metadata
I assume that this is because my yml doesn't have a root element "metadata". The yml was generated using the fabric8 maven plugin, and looks similar to the below (I've removed large chunks of it, but this should be enough to go on:
- apiVersion: v1
- apiVersion: apps/v1
Hi @Martin Cassidy ,
The new version with fix released:
script: - pipe: atlassian/kubectl-run:3.0.1 variables: KUBE_CONFIG: $KUBE_CONFIG KUBECTL_COMMAND: 'apply' RESOURCE_PATH: 'nginx.yml'
It would be great if you provide us with your feedback about the pipe.