Closed chiragkyal closed 3 months ago
@chiragkyal: This pull request references Jira Issue OCPBUGS-36479, which is invalid:
Comment /jira refresh
to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.
The bug has been updated to refer to the pull request using the external bug tracker.
Hello @chiragkyal! Some important instructions when contributing to openshift/api: API design plays an important part in the user experience of OpenShift and as such API PRs are subject to a high level of scrutiny to ensure they follow our best practices. If you haven't already done so, please review the OpenShift API Conventions and ensure that your proposed changes are compliant. Following these conventions will help expedite the api review process for your PR.
/assign @JoelSpeed
/assign @Miciah
/cc @lihongan
/lgtm /approve
good for backport.
verify failures looks real and look like they should be fixed.
Changes in the latest commit look ok to me, will see if @Miciah agress with the new list types
Changes in the latest commit look ok to me, will see if @Miciah agress with the new list types
The changes make sense to me.
Just to make sure I understand correctly: If the cluster-ingress-operator and router use the client-go UpdateStatus
method and controller-runtime Status().Update
method, which use Put
, does that mean that an update that changes one of these slice values will still replace the existing slice in whole, listType=map
notwithstanding? I want to be sure that code like https://github.com/openshift/router/blob/a7313722c6e0541fcc00e92c459dd5d32a4a1534/pkg/router/controller/status.go#L268 and https://github.com/openshift/cluster-ingress-operator/blob/ddd1ee6dfb7e7c37d9525f48242baab55c7527fc/pkg/operator/controller/ingress/router_status.go#L113 will still work properly as long as we use Update
and not Patch
.
And in contrast, if someone uses oc patch
to adjust weights on alternateBackends
with listType=map
, now the patch will not replace the slice in whole but will instead merge and retain slice entries that aren't listed in the patch, right?
I think yes? Your client should be setting a field manager name. If you push a status update that contains conditions
, SSA assumes you are updating all of the conditions int the slice that belong to your field manager. So, if you in one request send 3 conditions, and in the next send 4, it will add that fourth to the list, and update the 3 in place. If you then send 2 conditions, it would assume you no longer want the other two, so would remove the 2 not sent, and update the 2 that were sent.
If meanwhile, someone else added a condition with a different field manager name, your requests would not affect this condition, so it wouldn't update the whole slice no, it would only update those conditions within the slice, that are owned by your field manager name.
LIkewise for the backends, it depends on the field manager name owning each backend within the list. In most likelihood, I don't think you'd notice a difference as a kubectl user
/jira refresh
@lihongan: This pull request references Jira Issue OCPBUGS-36479, which is valid. The bug has been moved to the POST state.
Requesting review from QA contact: /cc @lihongan
/label qe-approved
verified by pre-merge testing, the ExternalRouteCertificate
has been removed
$ oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.17.0-0.ci.test-2024-07-23-070357-ci-ln-gdmdmkk-latest True False 97m Cluster version is 4.17.0-0.ci.test-2024-07-23-070357-ci-ln-gdmdmkk-latest
$ oc get featuregates.config.openshift.io cluster -oyaml | grep -i route
- name: RouteExternalCertificate
@chiragkyal: This pull request references Jira Issue OCPBUGS-36479, which is valid.
Requesting review from QA contact: /cc @lihongan
/retest
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: chiragkyal, deads2k, JoelSpeed
The full list of commands accepted by this bot can be found here.
The pull request process is described here
/jira refresh
@chiragkyal: This pull request references Jira Issue OCPBUGS-36479, which is valid.
Requesting review from QA contact: /cc @lihongan
@chiragkyal: The following test failed, say /retest
to rerun all failed tests or /retest-required
to rerun all mandatory failed tests:
Test name | Commit | Details | Required | Rerun command |
---|---|---|---|---|
ci/prow/e2e-azure | 165518dbbc9fe1f327aae08c4dc5eec91ebf8993 | link | false | /test e2e-azure |
Full PR test history. Your PR dashboard.
@chiragkyal: Jira Issue OCPBUGS-36479: All pull requests linked via external trackers have merged:
Jira Issue OCPBUGS-36479 has been moved to the MODIFIED state.
/cherrypick release-4.17
@chiragkyal: new pull request created: #2004
/cherrypick release-4.16
@chiragkyal: new pull request created: #2007
We're using
RouteExternalCertificate
feature gate as part of https://issues.redhat.com/browse/CFE-811 feature.xref:
This PR removes the inadvertently duplicated
ExternalRouteCertificate
gate added in https://github.com/openshift/api/pull/1731