Closed JohnGarbutt closed 1 year ago
@JohnGarbutt
Do you want me to take a look at this? I want this fixed before merging the Azimuth patch as the hacks that you need because of it in Azimuth are rubbish.
So the default in cluster parameter seems tricky somehow:
- default: typing.Optional[str] # TODO(johngarbutt): k8s said no if this was any!
+ default: typing.Optional[schema.Any]
Currently all values are strings.
Apparently we can use schema.Dict from the kube-custom-resource package rather than typing.Dict and it would just work.
At the same time, we should also do this to properly support the choices params in the ui-meta parsing. Currently we json encode that, then decode it in azimuth, to work around the issue.