Open BoyFromDubai opened 1 month ago
In the web ui,using the yaml above,it'll throw an error of "source is required".
I wonder if it would be more convenient to limit spec.source
field to be required in the CRD.
Yes, but there is an alternative which is “sources” for using multiple sources within one app. That’s why “required” was not used in CRD I suppose
Oh sorry, I forgot this situation
how about oneOf
, we can require source/sources at least one required
refer: https://kubernetes.io/blog/2019/06/20/crd-structural-schema/#structural-schema
Maybe, sounds suitable But I’m not good at CRDs actually
Checklist:
argocd version
.Describe the bug When you create an application without source and sources the Web UI is not accessible, showing the stacktrace
To Reproduce Deploy smth like this
Expected behavior
An existence of sources or source must be validated or just give to an app an unknown status in the WebUI
Screenshots
Version
But tested in v2.12.x also, and if I'm not mistaken, the same issue exists