-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set default observedGeneration to -1 #277
Conversation
Attempting to correct for the failed check now. |
@sbernheim you shouldn’t edit edit the manifests manually as they are generated from code. Please run |
l had to do a bunch of things to get the tests to run. The tests don't seem to want to work without Docker which I was trying to replace with I also had to add an
That directory is where Now of course the tests are failing but with a different error message that the GitHub checks which indicates that the default All the long string values in the generated CRD's However, the same tests fail on my local and the generated CRD has the same problem when I run it against the I'll dig a bit more and try to resolve these issues over the next week or so. |
Found an open issue for the line-wrapping problem, which has a suggested mitigation in the most recent comment kubernetes-sigs/controller-tools#514 Putting the link here so I don't forget where I saw that later when I have time to try again. |
ac64b82
to
47c8d56
Compare
Pinning
It's still wrapping all the long text lines at 90 chars, though. I pushed what I have to see if the tests pass, but obviously I'd rather not change all the |
@sbernheim I created a commit on my own fork that should fix CI: makkes@28fc2cb Feel free to cherry-pick it into this PR's branch. |
527d1a0
to
e36ca0a
Compare
@makkes - Thanks for that! I cherry-picked your PR into my branch, but the "dirty tree" check still failed! It appears that @relu merged a commit to main while updating the Flux Took me a while to figure out why that last round of testing was failing. At first I thought I must be reading the diff backwards and had somehow dropped your commit again after merging it to my branch. I figured out what had happened once I took a little dive into the blame history for the generated CRD file. Hopefully the tests will succeed this time and we can finally put this one to bed. All's well that ends well AFAIC! |
d56cdc1
to
5b49691
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you @sbernheim! ✔️
Sets a default value of -1 for the observedGeneration field of the ImageUpdateAutomations type status.observedGeneration attribute. This ensures that tools like kstatus do not consider the resource to be in a Ready state prematurely because the generation and observedGeneration attributes are briefly initialized with 0 values. Signed-off-by: Sebastian Bernheim <sebastian@weave.works>
5b49691
to
447a15b
Compare
🎉 !!! |
Sets a default value of -1 for the
observedGeneration
field of the ImageUpdateAutomations typestatus.observedGeneration
attribute. This ensures that tools likekstatus
do not consider the resource to be in a Ready state prematurely because thegeneration
andobservedGeneration
attributes are briefly initialized with0
values.Credits to @tomhuang12 for his prior work on fluxcd/image-reflector-controller#189