Fix: Skip error log when console link is disabled and absent#949
Conversation
|
Hi @nmirasch. Thanks for your PR. I'm waiting for a redhat-developer member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
|
/ok-to-test |
98c3fcb to
584797a
Compare
Signed-off-by: nmirasch <neus.miras@gmail.com>
Signed-off-by: nmirasch <neus.miras@gmail.com>
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: svghadi The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cherry-pick v1.18 |
|
@svghadi: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
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-sigs/prow repository. |
|
/cherry-pick v1.17 |
|
@svghadi: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
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-sigs/prow repository. |
9e522bf
into
redhat-developer:master
|
@svghadi: new pull request created: #954 DetailsIn response to this:
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-sigs/prow repository. |
|
@svghadi: #949 failed to apply on top of branch "v1.17": DetailsIn response to this:
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-sigs/prow repository. |
…developer#949) * Skip error log when console link is disabled and absent Signed-off-by: nmirasch <neus.miras@gmail.com> * Remove ConsoleLink when disabled, otherwise reconcile Signed-off-by: nmirasch <neus.miras@gmail.com> --------- Signed-off-by: nmirasch <neus.miras@gmail.com> (cherry picked from commit 9e522bf)
…developer#949) * Skip error log when console link is disabled and absent Signed-off-by: nmirasch <neus.miras@gmail.com> * Remove ConsoleLink when disabled, otherwise reconcile Signed-off-by: nmirasch <neus.miras@gmail.com> --------- Signed-off-by: nmirasch <neus.miras@gmail.com> (cherry picked from commit 9e522bf)
What type of PR is this?
/kind bug
What does this PR do / why we need it:
This PR removes misleading error logs that appeared when the environment variable DISABLE_DEFAULT_ARGOCD_CONSOLELINK was set to true and the ConsoleLink resource did not exist before.
Previously, the operator logged an error in this scenario even though the behavior was correct and no real issue occurred. This could confuse users and clutter the logs.
The operator now skips logging an error when the ConsoleLink is disabled and not present, ensuring logs only reflect actual problems.
Have you updated the necessary documentation?
Which issue(s) this PR fixes:
Fixes: https://issues.redhat.com/browse/GITOPS-7331
Test acceptance criteria:
How to test changes / Special notes to the reviewer: