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

MGMT-17871: Include proxy when computing openshift-apiserver spec-hash #135

Conversation

mresvanis
Copy link
Member

@mresvanis mresvanis commented May 1, 2024

This PR includes the proxy env vars to the openshift-apiserver deployment JSON spec when computing its spec-hash annotation, in order to skip an openshift-apiserver rollout after a recert run when the cluster-wide OCP Proxy is defined.

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented May 1, 2024

@mresvanis: This pull request references MGMT-16777 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.16.0" version, but no target version was set.

In response to this:

This PR includes the proxy env vars to the openshift-apiserver deployment spec when computing its spec-hash, in order to skip an openshift-apiserver after recert when the cluster-wide OCP Proxy is defined.

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 openshift-eng/jira-lifecycle-plugin repository.

Copy link

openshift-ci bot commented May 1, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added the approved label May 1, 2024
@mresvanis mresvanis force-pushed the add-proxy-support-for-spec-hash-computations branch 2 times, most recently from 5ba70d1 to f537e26 Compare May 2, 2024 14:34
@mresvanis mresvanis changed the title MGMT-16777: Include proxy when computing openshift-apiserver spec-hash MGMT-17871: Include proxy when computing openshift-apiserver spec-hash May 21, 2024
@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented May 21, 2024

@mresvanis: This pull request references MGMT-17871 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.17.0" version, but no target version was set.

In response to this:

This PR includes the proxy env vars to the openshift-apiserver deployment spec when computing its spec-hash, in order to skip an openshift-apiserver after recert when the cluster-wide OCP Proxy is defined.

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 openshift-eng/jira-lifecycle-plugin repository.

@mresvanis mresvanis force-pushed the add-proxy-support-for-spec-hash-computations branch from f537e26 to a72905d Compare June 10, 2024 14:22
Signed-off-by: Michail Resvanis <mresvani@redhat.com>
@mresvanis mresvanis force-pushed the add-proxy-support-for-spec-hash-computations branch from a72905d to 09b2bae Compare June 12, 2024 13:13
@mresvanis mresvanis marked this pull request as ready for review June 12, 2024 13:14
@openshift-ci openshift-ci bot requested review from omertuc and tsorya June 12, 2024 13:14
@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Jun 12, 2024

@mresvanis: This pull request references MGMT-17871 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.17.0" version, but no target version was set.

In response to this:

This PR includes the proxy env vars to the openshift-apiserver deployment JSON spec when computing its spec-hash, in order to skip an openshift-apiserver rollout after a recert run when the cluster-wide OCP Proxy is defined.

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 openshift-eng/jira-lifecycle-plugin repository.

@mresvanis
Copy link
Member Author

/test e2e-aws-ovn-single-node-recert-serial

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Jun 12, 2024

@mresvanis: This pull request references MGMT-17871 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.17.0" version, but no target version was set.

In response to this:

This PR includes the proxy env vars to the openshift-apiserver deployment JSON spec when computing its spec-hash annotation, in order to skip an openshift-apiserver rollout after a recert run when the cluster-wide OCP Proxy is defined.

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Jun 12, 2024

@mresvanis: This pull request references MGMT-17871 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.17.0" version, but no target version was set.

In response to this:

This PR includes the proxy env vars to the openshift-apiserver deployment JSON spec when computing its spec-hash annotation, in order to skip an openshift-apiserver rollout after a recert run when the cluster-wide OCP Proxy is defined.

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 openshift-eng/jira-lifecycle-plugin repository.

@mresvanis
Copy link
Member Author

/test e2e-aws-ovn-single-node-recert-serial

@omertuc
Copy link
Member

omertuc commented Jun 13, 2024

Does this interact correctly with our Proxy rename feature? e.g. things like should it happen before or after the proxy rename. Maybe it already does, did not give a thorough review

@mresvanis
Copy link
Member Author

Does this interact correctly with our Proxy rename feature? e.g. things like should it happen before or after the proxy rename. Maybe it already does, did not give a thorough review

Yes, both the openshift-apiserver and the oauth-apiserver spec-hash annotation adjustments are triggered after all the other customizations.

@mresvanis
Copy link
Member Author

mresvanis commented Jun 13, 2024

@omertuc FYI, because our CI currently doesn't support recert's proxy rename feature (it already checks though that after recert the SNO is healthy and no control-plane rollouts are issued), I have manually tested e2e this change by:

  • creating a seed with cluster-wide proxy
  • creating a seed image
  • creating a target with its own cluster-wide-proxy
  • running a full IBU flow
  • verifying that
    1. the SNO is healthy and no control-plane rollouts are issued
    2. that no new openshift-apiserver generation was issued

@omertuc
Copy link
Member

omertuc commented Jun 17, 2024

/lgtm

@omertuc
Copy link
Member

omertuc commented Jun 17, 2024

/approve

Copy link

openshift-ci bot commented Jun 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mresvanis, omertuc

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

@omertuc
Copy link
Member

omertuc commented Jun 17, 2024

/retest

@openshift-merge-bot openshift-merge-bot bot merged commit 5ebadac into rh-ecosystem-edge:main Jun 17, 2024
12 checks passed
@mresvanis mresvanis deleted the add-proxy-support-for-spec-hash-computations branch June 17, 2024 12:28
@eranco74
Copy link
Collaborator

eranco74 commented Aug 4, 2024

@mresvanis do we need to cherry-pick this to the release branches?

git show-branch origin/main origin/release-4.16 origin/release-4.15 
! [origin/main] Merge pull request #156 from omertuc/timefix
 ! [origin/release-4.16] Merge pull request #155 from mresvanis/update-oauth-apiserver-deployment-spec
  ! [origin/release-4.15] Merge pull request #155 from mresvanis/update-oauth-apiserver-deployment-spec
---
-   [origin/main] Merge pull request #156 from omertuc/timefix
+   [origin/main^2] Fix type inference regression in indirect dependency
+   [origin/main^^2] Include proxy when computing openshift-apiserver spec-hash
--- [origin/release-4.16] Merge pull request #155 from mresvanis/update-oauth-apiserver-deployment-spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants