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
Global defaults for image configs #887
Conversation
57f752e
to
0c39925
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.
Sorry for the delay and thanks your contrib! Please see my review.
I marked as draft so I could identify the outstanding issue, bit it appears to be ratelimitting on the e2e tests. |
I read through the workflow file to recreate these tests locally and I get the same rate limit issue on |
I think this is linked to your changes. Tests in this PR #902 run fine. |
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.
Seems linked to the change of watchRepo to true instead of false as it was before.
Ah! Thanks so much. I must have missed up my find and replace. I bet the reason I reproduced it on master was because I had already run the test on my branch causing me to run up my API requests prior. I'll go through and double check my defaults aren't changing. |
062c034
to
1960b18
Compare
Squashed and rebased onto master. |
Looks like codecov is not happy but this is linked to new Fine to look at this in follow-up. I will review your PR asap but thanks in advance for your work on this! |
So, this is not my first time being confused by codecov. I'm not sure why my patch gets dinged for this when that file had no coverage before and I added a few lines and every one of those lines in that file are covered. |
That's because adding |
Are there any more tests you'd like me to write to get coverage up, or is this ok since I added partial coverage to an uncovered file. |
1960b18
to
32496fb
Compare
Decided to make merging easier by adding more test cases to get |
@crazy-max Since you last reviewed this, I've improved coverage and added merging of |
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.
Sorry forgot I got pending reviews 😥
I will take a further look next week, sorry for the delay (again!)
Allows setting of image configs at a global level to act as default values. This required a change in the model.Image struct due to a bool field not having a third, unset state. The remedy is to unmarshal into a temporary data structure to detect the presents of a field value and then use that to determine if the default value should be used. Fixes crazy-max#491
ca6ece0
to
60ddac4
Compare
Rebased on master to avoid merge conflicts. |
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.
Just docs update missing
@IamTheFij I'm merging your PR but can you open a follow-up for docs please? Thanks. |
Allows setting of image configs at a global level to act as default values.
This required a change in the model.Image struct due to a bool field not having a third, unset state. The remedy is to unmarshal into a temporary data structure to detect the presents of a field value and then use that to determine if the default value should be used.
Fixes #491