Skip to content
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

Bug 1713263: pkg/cli/admin/upgrade: allow users to force when updating to latest #145

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

abhinavdahiya
Copy link
Contributor

--force is used when
a) the release image is not verified.
b) the operators are blocking upgrades.

For cases when the users are using custom update channel, the release-image is probably not going to be verified by Red Hat signature, but the users should be allowed to update to the latest
available update by skipping the verification step.

And for cases where the users want to upgrade to the latest upgrade, even when the operators are blocking updates should be achievable by setting the force flag.

/assign @smarterclayton

--force is used when
a) the release image is not verified.
b) the operators are blocking upgrades.

For cases when the users are using custom update channel, the release-image is probably not going to be verified by Red Hat signature, but the users should be allowed to update to the latest
available update by skipping the verification step.

And for cases where the users want to upgrade to the latest upgrade, even when the operators are blocking updates should be achievable by setting the force flag.
@openshift-ci-robot
Copy link

@abhinavdahiya: This pull request references Bugzilla bug 1713263, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Bug 1713263: pkg/cli/admin/upgrade: allow users to force when updating to latest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 4, 2019
update := cv.Status.AvailableUpdates[len(cv.Status.AvailableUpdates)-1]
cv.Spec.DesiredUpdate = &update
if o.Force {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm, I kind of would prefer not allowing this. I think if you have to force you should have to at least give us a version (was the rationale for not having this before).

Copy link
Contributor Author

@abhinavdahiya abhinavdahiya Nov 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I think QE is in a situation where they set the upstream to the point to the nightly, and then mark update to the latest version.
but they can't just --to-latest because nightly is not signed. and there they need to --force
So, hopefully when the nighties get signed, maybe that use-case doesn't apply.

But if the customer is running their own update-server in disconnected env wouldn't have access to verify, so they might want to use --to-latest --force
but maybe when we support such an env in a better way we can allow these customers to host our signatures locally, in which case this wouldn't apply too.

So the last one is, i have overrides set, or i have techpreview features on, and i want to update to whtever latest version there is, but that needs a --to-latest --force.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK.

@abhinavdahiya
Copy link
Contributor Author

ping @smarterclayton ?

@smarterclayton
Copy link
Contributor

/lgtm
/retest

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 13, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, smarterclayton

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 13, 2019
@abhinavdahiya
Copy link
Contributor Author

/retest

@openshift-merge-robot openshift-merge-robot merged commit a6c8ac8 into openshift:master Nov 14, 2019
@openshift-ci-robot
Copy link

@abhinavdahiya: All pull requests linked via external trackers have merged. Bugzilla bug 1713263 has been moved to the MODIFIED state.

In response to this:

Bug 1713263: pkg/cli/admin/upgrade: allow users to force when updating to latest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants