Skip to content

Renaming rosa-regional-platform-api references to rosa-hyperfleet-api - #117

Open
ravitri wants to merge 1 commit into
openshift-online:mainfrom
ravitri:rename-hf
Open

Renaming rosa-regional-platform-api references to rosa-hyperfleet-api#117
ravitri wants to merge 1 commit into
openshift-online:mainfrom
ravitri:rename-hf

Conversation

@ravitri

@ravitri ravitri commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This PR updates references from rosa-regional-platform-api to rosa-hyperfleet-api.

Similar to PR openshift-online/rosa-hyperfleet#665

Summary by CodeRabbit

  • New Features

    • Rebranded the service to ROSA Hyperfleet API across app, container, deployment, and documentation references.
    • Updated deployment assets so the application, namespace, and chart naming align with the new service name.
  • Bug Fixes

    • Updated build, run, and CI references to use the correct binary and repository paths.
    • Adjusted Kubernetes and Argo CD wiring to target the renamed deployment consistently.
  • Documentation

    • Refreshed README, security, and contributor guidance to match the new project name and links.

@openshift-ci

openshift-ci Bot commented Jul 2, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ravitri
Once this PR has been reviewed and has the lgtm label, please assign syncrou 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

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

This PR performs a project-wide rename from rosa-regional-platform-api to rosa-hyperfleet-api, updating the Go module path, all internal import paths, binary names, container/build scripts, Kubernetes/ArgoCD/Helm deployment resources, and documentation references accordingly, plus removing the old rosa-regional-frontend Helm chart.

Changes

Repository rename

Layer / File(s) Summary
Module path and entrypoint
go.mod, cmd/rosa-hyperfleet-api/main.go
Module declaration and entrypoint imports switched to the new module path.
Core pkg import updates
pkg/authz/..., pkg/config/config.go, pkg/clients/..., pkg/middleware/..., pkg/server/..., pkg/zoa/...
Import paths and maestro sourceID strings updated to the new module across authz, config, clients, middleware, server, and zoa packages.
Handlers import updates
pkg/handlers/*.go, pkg/handlers/*_test.go
Handler files and tests updated to import authz, middleware, maestro, hyperfleet, types, and zoa from the new module path.
E2E/internal test and script updates
internal/test/thanos/helpers.go, test/e2e-*/**, scripts/run-e2e-authz.sh
Test files' awstest/thanos imports and the e2e-authz script's binary/build/log references updated to the new module and binary name.
Build, container, and CI scripts
Dockerfile, Makefile, ci/Containerfile, ci/build-push-image.sh, .gitignore
Build/run targets, image names, repo URLs, and ignore rules updated to rosa-hyperfleet-api.
Deployment manifests and ArgoCD
deployment/manifests/api.yaml, deployment/argocd/application*.yaml
Kubernetes resources and ArgoCD Applications retargeted with new names, namespaces, labels, and selectors.
Helm chart rename
deployment/helm/rosa-hyperfleet-frontend/*, deployment/helm/rosa-regional-frontend/Chart.yaml (removed)
New rosa-hyperfleet-frontend chart added, replacing the removed rosa-regional-frontend chart.
Documentation updates
AGENTS.md, CLAUDE.md, README.md, SECURITY-AUDIT.md, docs/api/zoa-endpoints.md
Text, links, and examples updated to reference ROSA Hyperfleet API.

Estimated code review effort: 2 (Simple) | ~15 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 11
✅ Passed checks (11 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the primary change: replacing rosa-regional-platform-api references with rosa-hyperfleet-api throughout the repo.
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.
No-Weak-Crypto ✅ Passed Rename-only PR; scans found no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB, custom crypto, or secret-token comparisons in changed files.
Container-Privileges ✅ Passed No PR changes introduce privileged/host* settings; Dockerfile runs as nonroot and the deployment/Helm manifests lack securityContext or allowPrivilegeEscalation fields.
No-Sensitive-Data-In-Logs ✅ Passed PASS: I found no new logging of passwords/tokens/PII; touched files only log operational metadata like account IDs, ARNs, and endpoints.
No-Hardcoded-Secrets ✅ Passed Repository scan found no hardcoded secrets, credentialed URLs, private keys, or secret-name string assignments in the changed/config files.
No-Injection-Vectors ✅ Passed Touched files are renames/docs only; repo scan found no unsafe eval/yaml.load/pickle/os.system/innerHTML/shell=True patterns, only benign comments/strings.
Ai-Attribution ✅ Passed No AI-tool use is mentioned in the PR or commit message; HEAD has no Co-Authored-By, Assisted-by, or Generated-by trailers, so the attribution check is not triggered.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

project: default
source:
repoURL: https://github.com/cdoan1/rosa-regional-platform-api
repoURL: https://github.com/cdoan1/rosa-hyperfleet-api

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I want to verify on this fork reference - @cdoan1 @typeid ?

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 8

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
ci/build-push-image.sh (1)

12-17: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Default IMAGE_REPO still references rosa-regional-platform-api.

Header comment and image-push default were only partially renamed — the actual default value at Line 17 (and its comment at Line 12) still push to quay.io/cdoan0/rosa-regional-platform-api, contradicting the rename described in the PR.

🔧 Proposed fix
-#   IMAGE_REPO  - destination image (default: quay.io/cdoan0/rosa-regional-platform-api)
+#   IMAGE_REPO  - destination image (default: quay.io/cdoan0/rosa-hyperfleet-api)
...
-IMAGE_REPO="${IMAGE_REPO:-quay.io/cdoan0/rosa-regional-platform-api}"
+IMAGE_REPO="${IMAGE_REPO:-quay.io/cdoan0/rosa-hyperfleet-api}"
🤖 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 `@ci/build-push-image.sh` around lines 12 - 17, The build script still defaults
IMAGE_REPO to the old rosa-regional-platform-api image, so update the IMAGE_REPO
header comment and the IMAGE_REPO assignment in build-push-image.sh to the new
repository name. Make sure the default value used by the push logic matches the
rename throughout the script.
Makefile (1)

3-24: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

IMAGE_REPO/CI_IMAGE_REPO still reference the old rosa-regional-platform-api name.

BINARY_NAME and REPO_URL were renamed to hyperfleet, but IMAGE_REPO (Line 4) and CI_IMAGE_REPO (Line 22) still point at rosa-regional-platform-api/rosa-regional-platform-api-ci, leaving the image build/push targets and the CI lint container inconsistent with the rest of the rename.

🔧 Proposed fix
-IMAGE_REPO ?= quay.io/openshift-online/rosa-regional-platform-api
+IMAGE_REPO ?= quay.io/openshift-online/rosa-hyperfleet-api
...
-CI_IMAGE_REPO ?= quay.io/openshift-online/rosa-regional-platform-api-ci
+CI_IMAGE_REPO ?= quay.io/openshift-online/rosa-hyperfleet-api-ci
🤖 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 `@Makefile` around lines 3 - 24, Update the remaining container image defaults
in Makefile to match the hyperfleet rename: IMAGE_REPO and CI_IMAGE_REPO still
point to the old rosa-regional-platform-api names. Change those defaults so the
image build/push targets and the CI lint container use the same renamed
repository as BINARY_NAME and REPO_URL, keeping the Makefile variables
consistent.
cmd/rosa-hyperfleet-api/main.go (1)

73-76: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Stale service name in startup log message.

The startup log still identifies the service as rosa-regional-platform-api, even though this PR renames the module and binary to rosa-hyperfleet-api. This is user/operator-visible (log aggregation, dashboards) and should be updated for consistency with the rename.

🏷️ Proposed fix
-	logger.Info("starting rosa-regional-platform-api",
+	logger.Info("starting rosa-hyperfleet-api",
 		"log_level", logLevel,
 		"log_format", logFormat,
 	)
🤖 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 `@cmd/rosa-hyperfleet-api/main.go` around lines 73 - 76, The startup log
message still uses the old service name, so update the string in main.go where
logger.Info is called to match the renamed binary/module `rosa-hyperfleet-api`.
Keep the rest of the log fields the same and ensure any other startup or
service-identifying messages in the entrypoint use the new name for consistency.
🤖 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 `@ci/Containerfile`:
- Line 1: The Containerfile currently defines no non-root runtime user, so the
image will run as root by default. Update the CI image definition to add an
explicit non-root USER instruction in the Containerfile, placing it
appropriately after any setup steps so the final image runs as a restricted user
instead of root.

In `@CLAUDE.md`:
- Around line 46-49: Update the generated guidance in CLAUDE.md so it matches
the current backend description: replace the stale DynamoDB persistence note
with PostgreSQL, keeping the rest of the module guidance unchanged. This is a
documentation-only sync fix for the generated copy, so adjust the persistence
line near the module overview to align with AGENTS.md and avoid conflicting
guidance.

In `@deployment/argocd/application-helm-hook.yaml`:
- Around line 4-11: The ArgoCD application manifests are still referencing the
old Helm chart path, so update the source path in both application definitions
to the frontend chart location. In `application-helm-hook` and `application`
under the ArgoCD manifests, change the `source.path` value from the backend
chart directory to `deployment/helm/rosa-hyperfleet-frontend` so ArgoCD can
locate the chart correctly.

In `@deployment/argocd/application.yaml`:
- Around line 4-11: The ArgoCD Application is pointing to a non-existent chart
path, so update the source path in the application spec to the actual Helm chart
directory used by this app. Locate the Application manifest under the
spec.source configuration and change the path from the old chart location to
deployment/helm/rosa-hyperfleet-frontend so ArgoCD can find and sync the chart
successfully.

In `@deployment/helm/rosa-hyperfleet-frontend/README.md`:
- Around line 27-28: The install command and ArgoCD source paths are pointing at
the wrong chart directory. Update the references in the README and the related
application manifests so they use the same chart folder as this component, not
the non-frontend path. Use the existing chart-specific symbols and paths in the
README, application.yaml, and application-helm-hook.yaml to ensure all installs
and syncs target the frontend chart consistently.

In `@deployment/helm/rosa-hyperfleet-frontend/values.yaml`:
- Line 16: The app.image.repository value still points to the old
rosa-regional-platform-api image, so update the repository reference to the
renamed rosa-hyperfleet-api in the Helm values and keep it consistent with the
image reference used by the API manifest. Check the app.image.repository setting
in values.yaml and the corresponding image repository field in
deployment/manifests/api.yaml so both point to the new repository name.

In `@deployment/manifests/api.yaml`:
- Around line 131-150: The container image reference is still using the old
repository name, so update the image value in the rosa-hyperfleet deployment
spec to point to the new rosa-hyperfleet image instead of the stale
quay.io/cdoan0/rosa-regional-platform-api:latest reference; make the same
repository rename in the corresponding frontend Helm values entry so the
deployment and chart stay consistent. Locate and fix the image fields under the
rosa-hyperfleet container configuration and the rosa-hyperfleet-frontend values
to remove the old repo name entirely.

In `@README.md`:
- Around line 403-407: The CI blurb in the README still refers to the old
“platform-api image” wording, which is inconsistent with the current branding.
Update the compatibility test description near the
rosa-regionality-compatibility-e2e section to use the current API name
consistently, keeping the rest of the trigger and configuration text unchanged.

---

Outside diff comments:
In `@ci/build-push-image.sh`:
- Around line 12-17: The build script still defaults IMAGE_REPO to the old
rosa-regional-platform-api image, so update the IMAGE_REPO header comment and
the IMAGE_REPO assignment in build-push-image.sh to the new repository name.
Make sure the default value used by the push logic matches the rename throughout
the script.

In `@cmd/rosa-hyperfleet-api/main.go`:
- Around line 73-76: The startup log message still uses the old service name, so
update the string in main.go where logger.Info is called to match the renamed
binary/module `rosa-hyperfleet-api`. Keep the rest of the log fields the same
and ensure any other startup or service-identifying messages in the entrypoint
use the new name for consistency.

In `@Makefile`:
- Around line 3-24: Update the remaining container image defaults in Makefile to
match the hyperfleet rename: IMAGE_REPO and CI_IMAGE_REPO still point to the old
rosa-regional-platform-api names. Change those defaults so the image build/push
targets and the CI lint container use the same renamed repository as BINARY_NAME
and REPO_URL, keeping the Makefile variables consistent.
🪄 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-online/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: e825bd7d-862c-476e-81eb-ba8d2fab8852

📥 Commits

Reviewing files that changed from the base of the PR and between 4521cd6 and c7b9d68.

📒 Files selected for processing (71)
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
  • Dockerfile
  • Makefile
  • README.md
  • SECURITY-AUDIT.md
  • ci/Containerfile
  • ci/build-push-image.sh
  • cmd/rosa-hyperfleet-api/main.go
  • cmd/rosa-hyperfleet-api/main_test.go
  • deployment/argocd/application-helm-hook.yaml
  • deployment/argocd/application.yaml
  • deployment/helm/rosa-hyperfleet-frontend/.helmignore
  • deployment/helm/rosa-hyperfleet-frontend/Chart.yaml
  • deployment/helm/rosa-hyperfleet-frontend/README.md
  • deployment/helm/rosa-hyperfleet-frontend/templates/_helpers.tpl
  • deployment/helm/rosa-hyperfleet-frontend/templates/configmap.yaml
  • deployment/helm/rosa-hyperfleet-frontend/templates/deployment.yaml
  • deployment/helm/rosa-hyperfleet-frontend/templates/post-sync-hook-job.yaml
  • deployment/helm/rosa-hyperfleet-frontend/templates/post-sync-hook-rbac.yaml
  • deployment/helm/rosa-hyperfleet-frontend/templates/service.yaml
  • deployment/helm/rosa-hyperfleet-frontend/templates/serviceaccount.yaml
  • deployment/helm/rosa-hyperfleet-frontend/templates/targetgroupbinding.yaml
  • deployment/helm/rosa-hyperfleet-frontend/values.yaml
  • deployment/helm/rosa-regional-frontend/Chart.yaml
  • deployment/manifests/api.yaml
  • docs/api/zoa-endpoints.md
  • go.mod
  • internal/test/thanos/helpers.go
  • pkg/authz/authz.go
  • pkg/authz/privileged/privileged.go
  • pkg/authz/store/accounts.go
  • pkg/authz/store/admins.go
  • pkg/authz/store/groups.go
  • pkg/authz/store/members.go
  • pkg/clients/hyperfleet/client.go
  • pkg/clients/hyperfleet/client_test.go
  • pkg/clients/maestro/client.go
  • pkg/clients/maestro/client_test.go
  • pkg/config/config.go
  • pkg/handlers/accounts.go
  • pkg/handlers/authz.go
  • pkg/handlers/cluster.go
  • pkg/handlers/cluster_test.go
  • pkg/handlers/management_cluster.go
  • pkg/handlers/nodepool.go
  • pkg/handlers/resource_bundle.go
  • pkg/handlers/resource_bundle_test.go
  • pkg/handlers/work.go
  • pkg/handlers/work_test.go
  • pkg/handlers/zoa.go
  • pkg/handlers/zoa_test.go
  • pkg/middleware/account_check.go
  • pkg/middleware/admin_check.go
  • pkg/middleware/admin_check_test.go
  • pkg/middleware/authz.go
  • pkg/middleware/privileged.go
  • pkg/server/server.go
  • pkg/server/server_test.go
  • pkg/zoa/audit_store.go
  • pkg/zoa/reconciler.go
  • pkg/zoa/reconciler_test.go
  • pkg/zoa/store.go
  • scripts/run-e2e-authz.sh
  • test/e2e-api/api_client.go
  • test/e2e-cli/cluster_test.go
  • test/e2e-platform-monitoring/logging_test.go
  • test/e2e-platform-monitoring/observability_test.go
  • test/e2e-platform-monitoring/suite_test.go
  • test/e2e-zoa/suite_test.go
💤 Files with no reviewable changes (1)
  • deployment/helm/rosa-regional-frontend/Chart.yaml

Comment thread ci/Containerfile
@@ -1,4 +1,4 @@
# CI build-root image for rosa-regional-platform-api PR checks.
# CI build-root image for rosa-hyperfleet-api PR checks.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win

Header rename is fine; missing USER non-root directive (pre-existing).

Static analysis flags this image runs as root — no USER instruction is defined anywhere in the file. As per path instructions, Containerfiles should run as a non-root USER; never run as root. Consider adding a non-root USER even for this CI/lint image.

🧰 Tools
🪛 Trivy (0.69.3)

[error] 1-1: Image user should not be 'root'

Specify at least 1 USER command in Dockerfile with non-root user as argument

Rule: DS-0002

Learn more

(IaC/Dockerfile)

🤖 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 `@ci/Containerfile` at line 1, The Containerfile currently defines no non-root
runtime user, so the image will run as root by default. Update the CI image
definition to add an explicit non-root USER instruction in the Containerfile,
placing it appropriately after any setup steps so the final image runs as a
restricted user instead of root.

Sources: Path instructions, Linters/SAST tools

Comment thread CLAUDE.md
Comment on lines +46 to 49
- Module path: `github.com/openshift/rosa-hyperfleet-api`
- Uses Ginkgo/Gomega for testing
- OpenAPI-first API design
- DynamoDB for data persistence

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Keep the generated guidance in sync.

CLAUDE.md still says DynamoDB for data persistence, which conflicts with the PostgreSQL backend documented in AGENTS.md and makes this auto-generated copy misleading.

Suggested fix
-- DynamoDB for data persistence
+- PostgreSQL for data persistence
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- Module path: `github.com/openshift/rosa-hyperfleet-api`
- Uses Ginkgo/Gomega for testing
- OpenAPI-first API design
- DynamoDB for data persistence
- PostgreSQL for data persistence
🤖 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 `@CLAUDE.md` around lines 46 - 49, Update the generated guidance in CLAUDE.md
so it matches the current backend description: replace the stale DynamoDB
persistence note with PostgreSQL, keeping the rest of the module guidance
unchanged. This is a documentation-only sync fix for the generated copy, so
adjust the persistence line near the module overview to align with AGENTS.md and
avoid conflicting guidance.

Comment on lines +4 to +11
name: rosa-hyperfleet
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/cdoan1/rosa-regional-platform-api
repoURL: https://github.com/cdoan1/rosa-hyperfleet-api
targetRevision: define-application-deployment
path: deployment/helm/rosa-regional-platform
path: deployment/helm/rosa-hyperfleet

@coderabbitai coderabbitai Bot Jul 2, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '## tracked files under deployment/argocd and deployment/helm\n'
git ls-files 'deployment/argocd/*' 'deployment/helm/*' | sed 's#^`#-` #'

printf '\n## directory listing for deployment/helm\n'
find deployment/helm -maxdepth 2 -type d | sort

printf '\n## application-helm-hook.yaml\n'
cat -n deployment/argocd/application-helm-hook.yaml

printf '\n## application.yaml\n'
cat -n deployment/argocd/application.yaml

Repository: openshift-online/rosa-hyperfleet-api

Length of output: 3327


Update both ArgoCD source paths to the frontend chart

deployment/argocd/application-helm-hook.yaml and deployment/argocd/application.yaml still point at deployment/helm/rosa-hyperfleet, but the only chart in this repo is deployment/helm/rosa-hyperfleet-frontend. ArgoCD will fail to locate the chart until these paths are updated.

🤖 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 `@deployment/argocd/application-helm-hook.yaml` around lines 4 - 11, The ArgoCD
application manifests are still referencing the old Helm chart path, so update
the source path in both application definitions to the frontend chart location.
In `application-helm-hook` and `application` under the ArgoCD manifests, change
the `source.path` value from the backend chart directory to
`deployment/helm/rosa-hyperfleet-frontend` so ArgoCD can locate the chart
correctly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a nice catch as well. Need to check

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@ravitri Sounds good — happy to help however needed. Just to summarize the concern: the path values in both deployment/argocd/application-helm-hook.yaml and deployment/argocd/application.yaml point to deployment/helm/rosa-hyperfleet, but the only chart present in the repo is deployment/helm/rosa-hyperfleet-frontend. If rosa-hyperfleet (backend) chart is intentionally missing and only the frontend chart exists so far, these paths will need to be updated to deployment/helm/rosa-hyperfleet-frontend (or a backend chart will need to be added later) before ArgoCD can sync successfully.

Let me know once you've confirmed the intended chart layout, and I can help verify the fix if needed.

Comment on lines +4 to +11
name: rosa-hyperfleet
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/openshift-online/rosa-regional-platform-api
repoURL: https://github.com/openshift-online/rosa-hyperfleet-api
targetRevision: main
path: deployment/helm/rosa-regional-platform
path: deployment/helm/rosa-hyperfleet

@coderabbitai coderabbitai Bot Jul 2, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'Top-level deployment paths:\n'
git ls-files 'deployment/**' | sed -n '1,200p'

printf '\nHelm chart files under deployment/helm:\n'
git ls-files 'deployment/helm/**' | sed -n '1,200p'

printf '\nApplication manifest:\n'
cat -n deployment/argocd/application.yaml

Repository: openshift-online/rosa-hyperfleet-api

Length of output: 2910


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'Exists: deployment/helm/rosa-hyperfleet?\n'
[ -e deployment/helm/rosa-hyperfleet ] && echo yes || echo no

printf 'Exists: deployment/helm/rosa-hyperfleet-frontend?\n'
[ -e deployment/helm/rosa-hyperfleet-frontend ] && echo yes || echo no

printf '\nFiles in deployment/helm/rosa-hyperfleet-frontend (if any):\n'
find deployment/helm/rosa-hyperfleet-frontend -maxdepth 2 -type f 2>/dev/null | sort

printf '\nFiles in deployment/helm/rosa-hyperfleet (if any):\n'
find deployment/helm/rosa-hyperfleet -maxdepth 2 -type f 2>/dev/null | sort

printf '\napplication.yaml line(s):\n'
sed -n '1,30p' deployment/argocd/application.yaml

Repository: openshift-online/rosa-hyperfleet-api

Length of output: 1152


Point ArgoCD at the actual chart directory
deployment/helm/rosa-hyperfleet does not exist; the chart lives at deployment/helm/rosa-hyperfleet-frontend, so this application will fail to sync until the path is updated.

🤖 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 `@deployment/argocd/application.yaml` around lines 4 - 11, The ArgoCD
Application is pointing to a non-existent chart path, so update the source path
in the application spec to the actual Helm chart directory used by this app.
Locate the Application manifest under the spec.source configuration and change
the path from the old chart location to deployment/helm/rosa-hyperfleet-frontend
so ArgoCD can find and sync the chart successfully.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This one too. We have deployment/helm/rosa-regional-frontend instead. Seems its better to keep this path as it is.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
echo "== deployment/helm listing =="
git ls-files 'deployment/helm/**' | sort

echo
echo "== application.yaml current content =="
cat -n deployment/argocd/application.yaml

echo
echo "== application-helm-hook.yaml current content =="
cat -n deployment/argocd/application-helm-hook.yaml

Length of output: 3356


@ravitri Thanks for weighing in! I double-checked the current state of the PR branch, and here's what I found:

$ git ls-files 'deployment/helm/**'
deployment/helm/rosa-hyperfleet-frontend/Chart.yaml
deployment/helm/rosa-hyperfleet-frontend/README.md
deployment/helm/rosa-hyperfleet-frontend/templates/...
deployment/helm/rosa-hyperfleet-frontend/values.yaml
...

deployment/helm/rosa-regional-frontend no longer exists on this branch — this PR itself renames it to deployment/helm/rosa-hyperfleet-frontend (the diff shows deployment/helm/rosa-regional-frontend/Chart.yaml deleted and deployment/helm/rosa-hyperfleet-frontend/Chart.yaml added).

So regardless of whether the path in application.yaml is left as deployment/helm/rosa-hyperfleet or changed, it still won't match any directory that exists after this PR merges — the only chart directory present is deployment/helm/rosa-hyperfleet-frontend. If ArgoCD tries to sync this application against this repo/branch, it will fail to find the chart either way.

That said, if this Application manifest isn't actively used yet (e.g., it's a placeholder for future GitOps wiring, or the real path will be fixed in a follow-up PR), it's reasonable to leave it as-is for now. Just flagging so it's not forgotten before this gets applied to a live ArgoCD instance.

Let me know if you'd like me to open a follow-up issue to track fixing the Argo CD Application path(s) once the Helm chart location is finalized.

Comment on lines +27 to +28
helm install rosa-hyperfleet ./deployment/helm/rosa-hyperfleet \
--namespace rosa-hyperfleet \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Install path doesn't match this chart's own directory.

This README lives at deployment/helm/rosa-hyperfleet-frontend/README.md, but the install command references ./deployment/helm/rosa-hyperfleet (missing -frontend). Same discrepancy affects the ArgoCD application.yaml/application-helm-hook.yaml source.path.

🔧 Proposed fix
-helm install rosa-hyperfleet ./deployment/helm/rosa-hyperfleet \
+helm install rosa-hyperfleet ./deployment/helm/rosa-hyperfleet-frontend \
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
helm install rosa-hyperfleet ./deployment/helm/rosa-hyperfleet \
--namespace rosa-hyperfleet \
helm install rosa-hyperfleet ./deployment/helm/rosa-hyperfleet-frontend \
--namespace rosa-hyperfleet \
🤖 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 `@deployment/helm/rosa-hyperfleet-frontend/README.md` around lines 27 - 28, The
install command and ArgoCD source paths are pointing at the wrong chart
directory. Update the references in the README and the related application
manifests so they use the same chart folder as this component, not the
non-frontend path. Use the existing chart-specific symbols and paths in the
README, application.yaml, and application-helm-hook.yaml to ensure all installs
and syncs target the frontend chart consistently.

name: rosa-regional-platform
name: rosa-hyperfleet
image:
repository: quay.io/cdoan0/rosa-regional-platform-api

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Image repository still references the old name.

app.image.repository is quay.io/cdoan0/rosa-regional-platform-api, not renamed to rosa-hyperfleet-api, mirroring the same stale reference in deployment/manifests/api.yaml Line 150.

🔧 Proposed fix
-    repository: quay.io/cdoan0/rosa-regional-platform-api
+    repository: quay.io/cdoan0/rosa-hyperfleet-api
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
repository: quay.io/cdoan0/rosa-regional-platform-api
repository: quay.io/cdoan0/rosa-hyperfleet-api
🤖 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 `@deployment/helm/rosa-hyperfleet-frontend/values.yaml` at line 16, The
app.image.repository value still points to the old rosa-regional-platform-api
image, so update the repository reference to the renamed rosa-hyperfleet-api in
the Helm values and keep it consistent with the image reference used by the API
manifest. Check the app.image.repository setting in values.yaml and the
corresponding image repository field in deployment/manifests/api.yaml so both
point to the new repository name.

Comment on lines +131 to 150
name: rosa-hyperfleet
namespace: rosa-hyperfleet
labels:
app: rosa-regional-platform
app: rosa-hyperfleet
spec:
replicas: 1
selector:
matchLabels:
app: rosa-regional-platform
app: rosa-hyperfleet
template:
metadata:
labels:
app: rosa-regional-platform
app: rosa-hyperfleet
spec:
containers:
# =================================================================
# Main application container
# =================================================================
- name: rosa-regional-platform
- name: rosa-hyperfleet
image: quay.io/cdoan0/rosa-regional-platform-api:latest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Container image still references the old repo name.

Deployment identity (name/namespace/labels/container name) is renamed to rosa-hyperfleet, but the container image at Line 150 still points at quay.io/cdoan0/rosa-regional-platform-api:latest. Same stale reference exists in deployment/helm/rosa-hyperfleet-frontend/values.yaml Line 16.

🔧 Proposed fix
-          image: quay.io/cdoan0/rosa-regional-platform-api:latest
+          image: quay.io/cdoan0/rosa-hyperfleet-api:latest
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
name: rosa-hyperfleet
namespace: rosa-hyperfleet
labels:
app: rosa-regional-platform
app: rosa-hyperfleet
spec:
replicas: 1
selector:
matchLabels:
app: rosa-regional-platform
app: rosa-hyperfleet
template:
metadata:
labels:
app: rosa-regional-platform
app: rosa-hyperfleet
spec:
containers:
# =================================================================
# Main application container
# =================================================================
- name: rosa-regional-platform
- name: rosa-hyperfleet
image: quay.io/cdoan0/rosa-regional-platform-api:latest
name: rosa-hyperfleet
namespace: rosa-hyperfleet
labels:
app: rosa-hyperfleet
spec:
replicas: 1
selector:
matchLabels:
app: rosa-hyperfleet
template:
metadata:
labels:
app: rosa-hyperfleet
spec:
containers:
# =================================================================
# Main application container
# =================================================================
- name: rosa-hyperfleet
image: quay.io/cdoan0/rosa-hyperfleet-api:latest
🤖 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 `@deployment/manifests/api.yaml` around lines 131 - 150, The container image
reference is still using the old repository name, so update the image value in
the rosa-hyperfleet deployment spec to point to the new rosa-hyperfleet image
instead of the stale quay.io/cdoan0/rosa-regional-platform-api:latest reference;
make the same repository rename in the corresponding frontend Helm values entry
so the deployment and chart stay consistent. Locate and fix the image fields
under the rosa-hyperfleet container configuration and the
rosa-hyperfleet-frontend values to remove the old repo name entirely.

Comment thread README.md
Comment on lines +403 to +407
Tests compatibility by spinning up an ephemeral [rosa-hyperfleet](https://github.com/openshift-online/rosa-hyperfleet) environment with the platform-api image from the PR, then running the rosa-hyperfleet test suite against it using the commit hash of the PR.

**Trigger:** `/test rosa-regionality-compatibility-e2e` (does not run automatically).

**Configuration:** Defined in [openshift/release](https://github.com/openshift/release) under `ci-operator/config/openshift-online/rosa-regional-platform-api/`.
**Configuration:** Defined in [openshift/release](https://github.com/openshift/release) under `ci-operator/config/openshift-online/rosa-hyperfleet-api/`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Use the current API branding in the CI blurb.

platform-api image is stale wording here and makes the Prow job description inconsistent with the rename.

Suggested fix
- Tests compatibility by spinning up an ephemeral [rosa-hyperfleet](https://github.com/openshift-online/rosa-hyperfleet) environment with the platform-api image from the PR, then running the rosa-hyperfleet test suite against it using the commit hash of the PR.
+ Tests compatibility by spinning up an ephemeral [rosa-hyperfleet](https://github.com/openshift-online/rosa-hyperfleet) environment with the current API image from the PR, then running the test suite against it using the commit hash of the PR.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Tests compatibility by spinning up an ephemeral [rosa-hyperfleet](https://github.com/openshift-online/rosa-hyperfleet) environment with the platform-api image from the PR, then running the rosa-hyperfleet test suite against it using the commit hash of the PR.
**Trigger:** `/test rosa-regionality-compatibility-e2e` (does not run automatically).
**Configuration:** Defined in [openshift/release](https://github.com/openshift/release) under `ci-operator/config/openshift-online/rosa-regional-platform-api/`.
**Configuration:** Defined in [openshift/release](https://github.com/openshift/release) under `ci-operator/config/openshift-online/rosa-hyperfleet-api/`.
Tests compatibility by spinning up an ephemeral [rosa-hyperfleet](https://github.com/openshift-online/rosa-hyperfleet) environment with the current API image from the PR, then running the test suite against it using the commit hash of the PR.
🤖 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 `@README.md` around lines 403 - 407, The CI blurb in the README still refers to
the old “platform-api image” wording, which is inconsistent with the current
branding. Update the compatibility test description near the
rosa-regionality-compatibility-e2e section to use the current API name
consistently, keeping the rest of the trigger and configuration text unchanged.

@ravitri

ravitri commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

/hold

Reviews are welcome but meanwhile, addressing other points in review so far

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 2, 2026
@openshift-ci openshift-ci Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 16, 2026
@openshift-ci

openshift-ci Bot commented Jul 16, 2026

Copy link
Copy Markdown

PR needs rebase.

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.

@ravitri

ravitri commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

Will handle the rebase for this PR once #121 is merged as well

@openshift-ci

openshift-ci Bot commented Jul 27, 2026

Copy link
Copy Markdown

@ravitri: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/integration c7b9d68 link true /test integration

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.

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

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant