Deploy openshift-eng/ship-hook to app.ci#79065
Deploy openshift-eng/ship-hook to app.ci#79065petr-muller wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
WalkthroughAdds a new ship-hook Prow component: Kubernetes resources (ServiceAccount, ConfigMap, Service, Deployment), registers it as an external plugin for the openshift org, and adds a ServiceMonitor to scrape its metrics. Changesship-hook Component Deployment and Configuration
sequenceDiagram
actor GitHub
participant Prow
participant ShipHook
participant Prometheus
GitHub->>Prow: Send webhook events (pull_request, issue_comment, pull_request_review)
Prow->>ShipHook: Forward event to external plugin endpoint (http://ship-hook)
ShipHook->>GitHub: Optional GitHub API calls (e.g., checks, comments)
Prometheus->>ShipHook: Scrape /metrics on port 9090 (interval 30s)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: petr-muller 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 |
156f94b to
88a2fc3
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
clusters/app.ci/prow/03_deployment/ship-hook.yaml (1)
80-80: 💤 Low valueConsider reducing log verbosity once ship-hook is stable.
Debug logging (
--log-level=debug) is appropriate for initial deployment and troubleshooting, but you may want to reduce it toinfoorwarningonce the plugin is stable to minimize log volume.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@clusters/app.ci/prow/03_deployment/ship-hook.yaml` at line 80, The deployment currently sets ship-hook's CLI flag "--log-level=debug" which is very verbose; update the args for the ship-hook container in the manifest to a lower verbosity such as "--log-level=info" (or "--log-level=warning") once stable by replacing the "--log-level=debug" entry in ship-hook.yaml so the ship-hook process starts with the reduced log level.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@clusters/app.ci/prow/03_deployment/ship-hook.yaml`:
- Around line 74-129: The ship-hook container spec lacks a securityContext to
restrict privileges; update the container named "ship-hook" to include a
securityContext that enforces non-root execution (e.g., runAsNonRoot: true and
runAsUser with a non-zero UID), disables privilege escalation
(allowPrivilegeEscalation: false), drops all capabilities (capabilities: drop:
["ALL"]), makes the root filesystem read-only (readOnlyRootFilesystem: true) and
sets a seccompProfile (e.g., type: RuntimeDefault) to harden the pod.
---
Nitpick comments:
In `@clusters/app.ci/prow/03_deployment/ship-hook.yaml`:
- Line 80: The deployment currently sets ship-hook's CLI flag
"--log-level=debug" which is very verbose; update the args for the ship-hook
container in the manifest to a lower verbosity such as "--log-level=info" (or
"--log-level=warning") once stable by replacing the "--log-level=debug" entry in
ship-hook.yaml so the ship-hook process starts with the reduced log level.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: d59888ad-5efb-497e-acc7-1a22a95653c9
📒 Files selected for processing (3)
clusters/app.ci/openshift-user-workload-monitoring/ship-hook_servicemonitor.yamlclusters/app.ci/prow/03_deployment/ship-hook.yamlcore-services/prow/02_config/openshift/_pluginconfig.yaml
88a2fc3 to
019bf9b
Compare
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
019bf9b to
6522465
Compare
|
[REHEARSALNOTIFIER] Note: If this PR includes changes to step registry files ( Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
@petr-muller: all tests passed! 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. |
Deploys openshift-eng/ship-hook as a Prow external plugin on the app.ci cluster. This adds a Deployment, Service, ServiceAccount, ConfigMap, and ServiceMonitor in the
cinamespace, and registers ship-hook as an org-level external plugin for theopenshiftorganization. The CI build and image promotion is set up in #78840.🤖 Generated with Claude Code
This PR deploys the openshift-eng/ship-hook service to the app.ci cluster and wires it into Prow as an external plugin for the openshift org. Image build/promotion was configured in PR #78840.
What this changes in practical terms
Cluster manifests and runtime
Monitoring
Prow configuration
Effect