-
Notifications
You must be signed in to change notification settings - Fork 12
migration: Default CK8S_DRY_RUN_INSTALL to true #2838
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
Conversation
elastisys-staffan
left a comment
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.
While developing and running a migration snippet directly instead of via
Any reason why you didn't add it to the prepare template? It was a prepare snippet in my case. I've added it here: dd51e0b let me know if there is a reason for it to not be there and I'll revert it!
Indeed we should! 1552d39 |
The original task left out the prepare step so that's why it's not there. My understanding is that the helper functions that implements dry-run should only be used for apply jobs. Prepare jobs is for local config changes using the I'm not against adding it here as well, but I would like to hear @Ajarmar 's take on it. |
cc @aarnq as well In this specific case, I've added a "pre-flight" / acceptance test as a prepare snippet which uses (read-only) Helm commands. |
|
Here:
|
|
Should the default really be to mutate things? Also shouldn't get / read operations be performed even if we dry-run, so why do you need to run it with false from prepare snippets given the current state of it being only implemented for things normally done in apply snippets? I think limiting it would make it safer for use in that way in prepare snippets, right? 🤔 |
dd51e0b to
9f7c42f
Compare
Good point! 9f7c42f
I'm not sure what you're after here, limit how and where? |
I'm not sure either, I think it doesn't apply anymore as you changed the default 😄 |
|
@elastisys-staffan @Ajarmar any last words? |
Without this the script fails when it's unset.
9f7c42f to
b10bbb1
Compare
Warning
This is a public repository, ensure not to disclose:
What kind of PR is this?
Required: Mark one of the following that is applicable:
Optional: Mark one or more of the following that are applicable:
Important
Breaking changes should be marked
kind/admin-changeorkind/dev-changedepending on typeCritical security fixes should be marked with
kind/securityWhat does this PR do / why do we need this PR?
Without this the script fails when it's unset.
Information to reviewers
Checklist