You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The check for a kind of 'List' in the manifests(...) function within kubeyaml.py (see here) causes a TypeError to be thrown when a subdocument is missing the kind field. I noticed this when pushing a multi-document manifest to a Flux-enabled repo. For example:
---
# This is a comment to mark that all documents below are Deployment configs
---
apiVersion: apps/v1beta2
kind: Deployment
...
Stack Trace
Traceback (most recent call last):
File \"kubeyaml.py\", line 238, in <module>
File \"kubeyaml.py\", line 233, in main
File \"kubeyaml.py\", line 66, in apply_to_yaml
File \"site-packages/ruamel/yaml/main.py\", line 452, in dump_all
File \"kubeyaml.py\", line 73, in update_image
File \"kubeyaml.py\", line 116, in manifests
TypeError: 'NoneType' object has no attribute '__getitem__'
Failed to execute script kubeyaml"
Additional Info
This error popped up after generating a multi-doc manifest file using a templated Helm chart. It formats the file in a style similar to this to mark which file each sub-document originated from.
The text was updated successfully, but these errors were encountered:
Error Description
The check for a
kind
of'List'
in themanifests(...)
function withinkubeyaml.py
(see here) causes aTypeError
to be thrown when a subdocument is missing thekind
field. I noticed this when pushing a multi-document manifest to a Flux-enabled repo. For example:Stack Trace
Additional Info
This error popped up after generating a multi-doc manifest file using a templated Helm chart. It formats the file in a style similar to this to mark which file each sub-document originated from.
The text was updated successfully, but these errors were encountered: