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
Init containers currently only passes basic objects defined in task (dicts, lists, etc). It should be handling stuff in more complex way to accommodate conversion of lists of dicts to things like V1 VolumeMount and etc.
The text was updated successfully, but these errors were encountered:
Refer to these two code blocks:
Volume mount - https://github.com/ajbosco/dag-factory/blob/master/dagfactory/dagbuilder.py#L444-L448
Init containers - https://github.com/ajbosco/dag-factory/blob/master/dagfactory/dagbuilder.py#L502-L506
The problem is that volume mounts can be also not just on container level, but also on init containers level, and you can't just pass raw dict there that you got from reading yaml files (the underline casting will lead to incorrect serialized object that k8s api will not accept), it needs to match the V1VolumeMount class structure to be used properly. There might be other complex objects with similar problem that are missing conversion prior passing to constructors like V1Container.
Init containers currently only passes basic objects defined in task (dicts, lists, etc). It should be handling stuff in more complex way to accommodate conversion of lists of dicts to things like V1 VolumeMount and etc.
The text was updated successfully, but these errors were encountered: