pods
pods copied to clipboard
No way to define labels when creating a pod or a container
It would be nice if there was a way to define labels on a container or a pod. I'd imagine a similar widget to the one that is responsible for adding environment variables as they both need to store a key-value pair.
I tried taking an initial stab at it by reworking the PdsEnvVarRow to be more generic PdsKeyValRow and reusing it for labels, but i think a view has to be unique to each widget, otherwise the values end up in both children that match this class.
Is creating a separate view and model for labels the way to go or is there something that would allow for a more generic view like PdsKeyValRow to be reused for both labels and environment variables?