Skip to content

Comments

Added dynamic secret name resolution for hub's altermanager#566

Closed
mvazquezc wants to merge 1 commit intoopenshift-kni:release-4.20from
mvazquezc:release-4.20
Closed

Added dynamic secret name resolution for hub's altermanager#566
mvazquezc wants to merge 1 commit intoopenshift-kni:release-4.20from
mvazquezc:release-4.20

Conversation

@mvazquezc
Copy link

This change aims to fix an issue where prometheus pod won't start due to wrongly referenced secrets.

Signed-off-by: Mario Vazquez <mavazque@redhat.com>
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 26, 2026
@openshift-ci
Copy link

openshift-ci bot commented Jan 26, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mvazquezc
Once this PR has been reviewed and has the lgtm label, please assign irinamihai for approval. For more information see the Code Review Process.

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

Details 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 openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jan 26, 2026
@openshift-ci
Copy link

openshift-ci bot commented Jan 26, 2026

Hi @mvazquezc. Thanks for your PR.

I'm waiting for a openshift-kni member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@abraham2512
Copy link
Member

Hi @mvazquezc, thanks for the PR. Could you target this to main branch? This should be backported to 4.21,4.20

bearerToken:
key: token
name: observability-alertmanager-accessor
name: {{ if (lookup "v1" "Namespace" "" "open-cluster-management-addon-observability") }}{{ (regexFind "hub-cluster-id(.*)" ((fromSecret "open-cluster-management-addon-observability" "hub-info-secret" "hub-info.yaml") | base64dec)) | replace "hub-cluster-id: " "observability-alertmanager-accessor-" }}{{ end }}
Copy link
Member

Choose a reason for hiding this comment

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

What does this look like on ACM 2.14 and ACM 2.15? Is this hub secret information available on both versions?

@mvazquezc mvazquezc changed the base branch from release-4.20 to main January 27, 2026 19:58
@mvazquezc mvazquezc changed the base branch from main to release-4.20 January 27, 2026 19:59
@mvazquezc
Copy link
Author

Closing in favour of #567

@mvazquezc mvazquezc closed this Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants