LOG-9376: Enhance operator to deploy collector with SAR authn/z#3265
LOG-9376: Enhance operator to deploy collector with SAR authn/z#3265jcantrill wants to merge 2 commits intoopenshift:masterfrom
Conversation
|
@jcantrill: This pull request references LOG-9376 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 sub-task to target the "4.8.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jcantrill 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 |
Review Summary by QodoEnhance collector metrics endpoint with SAR authentication
WalkthroughsDescription• Add SAR authentication to collector metrics endpoint • Create ClusterRoleBinding for metrics auth with system:auth-delegator • Configure Vector prometheus exporter with auth strategy • Update functional tests to validate metrics auth RBAC Diagramflowchart LR
A["Collector Reconciliation"] -->|"Add metrics auth RBAC"| B["ReconcileMetricsAuthRBAC"]
B -->|"Create ClusterRoleBinding"| C["system:auth-delegator Role"]
D["Vector Config"] -->|"Configure auth"| E["PrometheusExporterAuth"]
E -->|"SAR strategy"| F["Metrics Endpoint Auth"]
G["Functional Tests"] -->|"Validate RBAC"| H["Token Review & Metrics Reader"]
File Changes1. internal/controller/observability/collector.go
|
Code Review by Qodo
1.
|
|
/label tide/merge-method-squash |
| ServiceAccount: constants.LogfilesmetricexporterName, | ||
| ServiceAccountTokenSecret: constants.LogfilesmetricexporterName + "-token", | ||
| MetadataReaderClusterRoleBinding: "cluster-logging-" + constants.LogfilesmetricexporterName + "-metadata-reader", | ||
| MetadataReaderClusterRoleBinding: fmt.Sprintf("cluster-logging-%s-%s-metadata-reader", lfmeInstance.Namespace, constants.LogfilesmetricexporterName), |
There was a problem hiding this comment.
How rename impact instaled cluster during upgrade?
There was a problem hiding this comment.
This functionality is new in this release, added by @Clee2691 so it will not matter
|
/retest |
|
@jcantrill: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Description
This PR:
Links
cc @Clee2691 @vparfonov
/hold