-
Notifications
You must be signed in to change notification settings - Fork 280
ApplicationSet which generates Applications with matching names should report an error and return #68
Comments
Why 0 and not 1? The first application to be created is perfectly fine |
FWIW It's not a perfect example of the problem: I originally reproduced it when reviewing #45, but I can't exactly include an unmerged PR in the reproduction steps of another issue 😄 . As for why 0 and not 1 (or 3), here's the design doc paragraph on that:
|
OK, so when an appliactionset generates an application object then it should check for duplications and report an error @jgwest do you want to raise a PR? |
I'm willing to take a swing at this, unless Jonathan is already working on it. |
As of this writing, the
generateApplications
method does not check for applications with duplicate names, and thus multiple generated Applications may use the same name.As discussed in the comments of the design proposal, this should be reported as an error:
To reproduce:
Apply the following YAML, and observe that it reports
generated 3 applications
, even though only 1 Application resource is created:In this case, 0 applications should be generated, and an error should be reported in the ApplicationSet status conditions.
The text was updated successfully, but these errors were encountered: