Skip to content

ROSA-745: boilerplate-update after openshift/boilerplate#748#552

Closed
MitaliBhalla wants to merge 2 commits into
openshift:masterfrom
MitaliBhalla:rosa-745-boilerplate-update
Closed

ROSA-745: boilerplate-update after openshift/boilerplate#748#552
MitaliBhalla wants to merge 2 commits into
openshift:masterfrom
MitaliBhalla:rosa-745-boilerplate-update

Conversation

@MitaliBhalla

@MitaliBhalla MitaliBhalla commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

ROSA-745: make boilerplate-update after openshift/boilerplate#748.

Picks up Dependabot docker template changes (lgtm/approved, Mon 03:00 UTC) and latest boilerplate-managed files.

make boilerplate-update does not refresh an existing boilerplate-managed .github/dependabot.yml; this PR syncs it from the #748 template (docker-only).

Renovate/MintMaker gomod rules are inherited via extends: openshift/boilerplate — no renovate change in this PR.

Test plan

  • CI green (prow + Konflux)
  • Dependabot docker PRs get lgtm/approved after merge

Jira: ROSA-745

Summary by CodeRabbit

  • Chores
    • Updated dependency management to run Docker package updates on a weekly schedule (Mondays at 03:00 UTC).
    • Adjusted dependency ignore policies and added approval labels to dependency update PRs.
    • Removed automatic Go module updates and simplified the Docker update configuration (including removal of the previous open-PR limit).

Pick up Dependabot docker automerge labels/schedule from boilerplate.
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 11, 2026
@openshift-ci-robot

openshift-ci-robot commented Jun 11, 2026

Copy link
Copy Markdown

@MitaliBhalla: This pull request references ROSA-745 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 initiative to target the "5.0.0" version, but no target version was set.

Details

In response to this:

Summary

ROSA-745: make boilerplate-update after openshift/boilerplate#748.

Picks up Dependabot docker template changes (lgtm/approved, Mon 03:00 UTC) and latest boilerplate-managed files.

make boilerplate-update does not refresh an existing boilerplate-managed .github/dependabot.yml; this PR syncs it from the #748 template (docker-only).

Renovate/MintMaker gomod rules are inherited via extends: openshift/boilerplate — no renovate change in this PR.

Test plan

  • CI green (prow + Konflux)
  • Dependabot docker PRs get lgtm/approved after merge

Jira: ROSA-745

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.

@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: a87b33f2-5fc8-4a1e-89c2-c70eba9a26b4

📥 Commits

Reviewing files that changed from the base of the PR and between 6256530 and aa2fdb5.

📒 Files selected for processing (1)
  • .github/dependabot.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/dependabot.yml

Walkthrough

Replaces .github/dependabot.yml with a boilerplate Docker-only Dependabot config targeting /build, specifies weekly schedule (Monday 03:00 UTC), adds lgtm and approved labels, updates the ignore list, and removes the previous Docker PR limit and Go module updates.

Changes

Dependabot Configuration Update

Layer / File(s) Summary
Docker-only Dependabot configuration with updated scheduling
.github/dependabot.yml
Replaced the multi-ecosystem Dependabot configuration with a single Docker entry targeting /build, expanded the weekly schedule to specify Monday at 03:00 UTC, added lgtm and approved labels, updated the ignore list with different dependency names, and removed the Docker PR limit and Go module update block.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 13 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Microshift Test Compatibility ⚠️ Warning New e2e tests added in test/e2e/validation_webhook_tests.go use APIs not available on MicroShift without protection: ClusterVersion (line 285), FeatureGate/TechPreviewNoUpgrade (line 273), Promethe... Add [apigroup:config.openshift.io] tags to tests using ClusterVersion/FeatureGate, [apigroup:monitoring.coreos.com] for PrometheusRule tests, and [apigroup:quota.openshift.io] for ClusterResourceQuota tests, OR add [Skipped:MicroShift] l...
Single Node Openshift (Sno) Test Compatibility ⚠️ Warning PR adds 3 new e2e tests with SNO incompatibilities: (1) "blocks pods scheduled onto master/infra nodes" - assumes master/infra node taints; (2) "allows cluster-admin to schedule pods onto master/in... Add SNO skip guards to tests: (1) & (2) use exutil.IsSingleNode() or [Skipped:SingleReplicaTopology] label; (3) add exutil.IsSingleNode() check since it expects separate infra nodes. Reference: test/e2e/validation_webhook_tests.go lines...
✅ Passed checks (13 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'ROSA-745: boilerplate-update after openshift/boilerplate#748' directly reflects the main change—syncing boilerplate updates including Dependabot configuration changes from a referenced upstream issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed PR only modifies .github/dependabot.yml (a config file), not any Ginkgo test files. The custom check for stable test names is not applicable to configuration-only changes.
Test Structure And Quality ✅ Passed This PR modifies only configuration files (.github/dependabot.yml and other boilerplate files) and does not create or modify any Ginkgo test code, so the test quality check is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed PR is a boilerplate configuration update to .github/dependabot.yml and related files. No deployment manifests, operator code with scheduling constraints, or controllers with topology-aware scheduli...
Ote Binary Stdout Contract ✅ Passed PR only modifies .github/dependabot.yml and boilerplate-managed files; no changes to Go code, main(), init(), or stdout-writing code paths.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed This PR is a boilerplate-update that only modifies .github/dependabot.yml configuration. No new Ginkgo e2e tests are added in this PR; therefore, the IPv6 and disconnected network compatibility che...
No-Weak-Crypto ✅ Passed PR changes only .github/dependabot.yml (configuration file). No weak crypto patterns (MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB), custom crypto, or non-constant-time comparisons found in changes or...
Container-Privileges ✅ Passed No privileged container configurations found. PR updates Dependabot config; all K8s manifests lack privileged: true, hostPID/Network/IPC, SYS_ADMIN capabilities, or allowPrivilegeEscalation: true s...
No-Sensitive-Data-In-Logs ✅ Passed No sensitive data (passwords, tokens, API keys, PII, session IDs, or customer data) exposed in logs. GitHub token properly handled via secrets masking and not echoed in any statement.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci Bot requested review from anispate and clcollins June 11, 2026 05:03
@openshift-ci

openshift-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: MitaliBhalla

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

The pull request process is described 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 11, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 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 @.github/dependabot.yml:
- Around line 17-20: Update the Dependabot ignore entries so they match the
actual Docker base images used in build/Dockerfile: replace the ignored
dependency-name values "redhat-services-prod/openshift/boilerplate" and
"openshift4/ose-operator-registry" with the image names used in the FROM lines
(e.g. "registry.access.redhat.com/ubi9/go-toolset:1.26.3-1780490420" and
"registry.access.redhat.com/ubi9/ubi-minimal:latest") in .github/dependabot.yml
so Dependabot will skip PRs for those exact base images.
🪄 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: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: c6a49537-fd4e-4ae0-8a19-da7314e20313

📥 Commits

Reviewing files that changed from the base of the PR and between d403e2a and 6256530.

⛔ Files ignored due to path filters (2)
  • boilerplate/_data/last-boilerplate-commit is excluded by !boilerplate/**
  • boilerplate/_lib/subscriber-propose-update is excluded by !boilerplate/**
📒 Files selected for processing (1)
  • .github/dependabot.yml

Comment thread .github/dependabot.yml Outdated
Comment on lines +17 to +20
- dependency-name: "redhat-services-prod/openshift/boilerplate"
# don't upgrade boilerplate via these means
- dependency-name: "openshift/origin-operator-registry"
# don't upgrade origin-operator-registry via these means
- package-ecosystem: gomod
directory: "/"
labels:
- "area/dependency"
- "ok-to-test"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
# Group related updates together to reduce PR volume
groups:
aws-sdk:
patterns:
- "github.com/aws/aws-sdk-go-v2*"
kubernetes:
patterns:
- "k8s.io/*"
- "sigs.k8s.io/*"
openshift:
patterns:
- "github.com/openshift/*"
- dependency-name: "openshift4/ose-operator-registry"
# don't upgrade ose-operator-registry via these means

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Search for FROM statements in Dockerfiles to identify base images

echo "Searching for Docker base images in /build..."
if [ -d "build" ]; then
  echo "FROM statements found:"
  rg -n "^FROM " build/ --type dockerfile 2>/dev/null || rg -n "^FROM " build/ -g "Dockerfile*"
  echo ""
  echo "Note: Verify that any frequently-updated or build-time-only base images are included in the ignore list."
else
  echo "❌ /build directory does not exist"
fi

Repository: openshift/managed-cluster-validating-webhooks

Length of output: 389


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== dependabot.yml (relevant lines) ==="
if [ -f .github/dependabot.yml ]; then
  nl -ba .github/dependabot.yml | sed -n '1,120p'
else
  echo "Missing .github/dependabot.yml"
  exit 1
fi

echo
echo "=== Search for ignored dependency names in repo ==="
rg -n --hidden --glob '!.git/*' 'redhat-services-prod/openshift/boilerplate|openshift4/ose-operator-registry' . || true

echo
echo "=== Search for Docker base images referenced in Dockerfiles ==="
fd -e Dockerfile . || true
fd -t f 'Dockerfile*' .github . build . || true
rg -n --hidden --glob '!.git/*' '^FROM ' --type-add 'dockerfile:Dockerfile*' --type dockerfile . || true

echo
echo "=== Search for ubi9/ubi-minimal references ==="
rg -n --hidden --glob '!.git/*' 'registry\.access\.redhat\.com/ubi9/ubi-minimal|ubi9/ubi-minimal' . || true

Repository: openshift/managed-cluster-validating-webhooks

Length of output: 190


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== dependabot.yml (first 120 lines, with line numbers) ==="
if [ -f .github/dependabot.yml ]; then
  cat -n .github/dependabot.yml | sed -n '1,120p'
else
  echo "Missing .github/dependabot.yml"
  exit 1
fi

echo
echo "=== dependabot.yml ignore dependency-name entries ==="
rg -n 'dependency-name:' .github/dependabot.yml || true

echo
echo "=== Dockerfiles present ==="
find . -type f \( -iname 'Dockerfile' -o -iname 'Dockerfile.*' \) -print

echo
echo "=== All Dockerfile FROM lines ==="
# Print FROM lines only (excluding commented FROM)
find . -type f \( -iname 'Dockerfile' -o -iname 'Dockerfile.*' \) -print0 | xargs -0 rg -n '^[[:space:]]*FROM[[:space:]]+' || true

echo
echo "=== Search for specific ignored dependency-name strings in repo ==="
rg -n --hidden --glob '!.git/*' 'redhat-services-prod/openshift/boilerplate|openshift4/ose-operator-registry' . || true

Repository: openshift/managed-cluster-validating-webhooks

Length of output: 1745


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Search for boilerplate/ose-operator-registry in /build ==="
rg -n --hidden --glob '!.git/*' 'redhat-services-prod/openshift/boilerplate|openshift4/ose-operator-registry|boilerplate|ose-operator-registry' build || true

echo
echo "=== Dockerfiles under /build and their FROM lines ==="
find build -type f \( -iname 'Dockerfile' -o -iname 'Dockerfile.*' \) -print0 | xargs -0 -I{} sh -c 'echo "--- {} ---"; rg -n "^[[:space:]]*FROM[[:space:]]+" "{}"' || true

Repository: openshift/managed-cluster-validating-webhooks

Length of output: 627


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== build/Dockerfile (lines 1-120) ==="
cat -n build/Dockerfile | sed -n '1,120p'

echo
echo "=== build/build_push*.sh (lines 1-200) ==="
for f in build/build_push.sh build/build_push_package.sh; do
  if [ -f "$f" ]; then
    echo "--- $f ---"
    cat -n "$f" | sed -n '1,200p'
  fi
done

echo
echo "=== test/e2e/Dockerfile (lines 1-120) ==="
cat -n test/e2e/Dockerfile | sed -n '1,120p'

Repository: openshift/managed-cluster-validating-webhooks

Length of output: 10847


Fix Dependabot ignore list to match actual /build Docker base images

.github/dependabot.yml ignores redhat-services-prod/openshift/boilerplate and openshift4/ose-operator-registry, but neither appears in build/Dockerfile; the FROM images there are registry.access.redhat.com/ubi9/go-toolset:1.26.3-1780490420 and registry.access.redhat.com/ubi9/ubi-minimal:latest. If those base images are meant to be excluded from Dependabot PRs, update the ignore entries accordingly.

🤖 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 @.github/dependabot.yml around lines 17 - 20, Update the Dependabot ignore
entries so they match the actual Docker base images used in build/Dockerfile:
replace the ignored dependency-name values
"redhat-services-prod/openshift/boilerplate" and
"openshift4/ose-operator-registry" with the image names used in the FROM lines
(e.g. "registry.access.redhat.com/ubi9/go-toolset:1.26.3-1780490420" and
"registry.access.redhat.com/ubi9/ubi-minimal:latest") in .github/dependabot.yml
so Dependabot will skip PRs for those exact base images.

MCWV uses ubi9/go-toolset + ubi-minimal, not boilerplate or
ose-operator-registry. Ignore go-toolset only; allow ubi-minimal bumps.

Co-authored-by: Cursor <cursoragent@cursor.com>
@openshift-ci

openshift-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

@MitaliBhalla: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@MitaliBhalla

Copy link
Copy Markdown
Contributor Author

/close

@openshift-ci openshift-ci Bot closed this Jun 11, 2026
@openshift-ci

openshift-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

@MitaliBhalla: Closed this PR.

Details

In response to this:

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants