✨ Add tls-profile-sync sidecar to cluster-manager operator#3049
✨ Add tls-profile-sync sidecar to cluster-manager operator#3049zhujian7 wants to merge 1 commit intostolostron:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zhujian7 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 7 minutes and 5 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/hold |
9a7bb43 to
387ba62
Compare
Inject a tls-profile-sync sidecar container into the cluster-manager operator deployment for TLS profile compliance (OpenShift 4.22). The sidecar watches APIServer.spec.tlsSecurityProfile and syncs TLS settings to an ocm-tls-profile ConfigMap that OCM components consume, enabling dynamic TLS configuration without upstream OpenShift dependency. Changes: - Add strategic-merge patch and RBAC templates under hack/patches/ - Update config.yaml with patches and additional_templates for cluster-manager chart generation - Regenerate cluster-manager chart with sidecar container and RBAC - Update CRD from upstream OCM bundle Depends on: https://github.com/zhujian7/installer-dev-tools/tree/add-helm-chart-patching-support Assisted by Claude Signed-off-by: zhujian <jiazhu@redhat.com>
387ba62 to
72f3148
Compare
|
PR needs rebase. 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. |
Description
Add a
tls-profile-syncsidecar container to the cluster-manager operator deployment for TLS profile compliance (OpenShift 4.22 requirement, ACM-26882).The sidecar watches
APIServer.spec.tlsSecurityProfileand syncs TLS settings to anocm-tls-profileConfigMap that upstream OCM components can consume, enabling dynamic TLS configuration without depending on OpenShift APIs.Related Issue
Changes Made
hack/patches/cluster-manager-tls-sidecar.yaml— Strategic merge patch adding thetls-profile-syncsidecar container to the cluster-manager deployment. Usesmanagedcluster-import-controllerimage which bundles the sidecar binary.hack/patches/cluster-manager-tls-sync-clusterrole.yaml— RBAC ClusterRole for watchingconfig.openshift.io/apiserversand managing configmaps.hack/patches/cluster-manager-tls-sync-clusterrolebinding.yaml— ClusterRoleBinding binding the role to thecluster-managerServiceAccount.hack/bundle-automation/config.yaml— Addedpatches,additional_templates, andimageMappingsentries for the sidecar.pkg/templates/charts/toggle/cluster-manager/— Regenerated chart templates with sidecar container, RBAC, and updated values.yaml.pkg/templates/crds/cluster-manager/— Updated CRD from upstream OCM bundle.How it works
The chart generation pipeline (
installer-dev-tools) applies the strategic merge patch to the cluster-manager deployment template beforeinjectRequirements()runs. This means:fixImageReferences()converts the placeholder image to a Helm template variableupdateDeployments()adds standard Helm flow control (proxy env vars, security context, etc.)Dependencies
patchesandadditional_templatessupport inbundles-to-charts.py.Checklist
Additional Notes
managedcluster-import-controllerimage used on the spoke side, which bundles thetls-profile-syncbinary.Assisted by Claude