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
The pipe configuration below fails:
INFO: Successfully updated the kube config.
Traceback (most recent call last):
File "/pipe.py", line 47, in <module>
File "/root/.local/lib/python3.8/site-packages/kubectl_run/pipe.py", line 157, in run
File "/root/.local/lib/python3.8/site-packages/kubectl_run/pipe.py", line 114, in handle_apply
File "/root/.local/lib/python3.8/site-packages/kubectl_run/pipe.py", line 37, in update_labels_in_metadata
TypeError: 'NoneType' object is not iterable
Thanks, Igor. I tried to disable the labels as the branch name was longer than 63 characters accepted by Kubectl for a label.
Now, if you can see the script, LABELS is definitely not empty:
@Brad Vrabete Seems like you doing it right and the problem on our side.
The only one temporary solution i can provide is to pass labels directly to your template file "k8s/deploy/aws-dev" under `kind: Deployment metadata`.
Example of the template:
template = """
<pass your custom labels here>
- image: nginx:1.7.9
- containerPort: 80
I actually found an easier way: