Skip to content

fix(ISSUE-1833): make setup authz targets wrong cluster#1840

Merged
Zaggy21 merged 13 commits intomainfrom
fix/make-setup-authz-targets-wrong-cluster
Apr 7, 2026
Merged

fix(ISSUE-1833): make setup authz targets wrong cluster#1840
Zaggy21 merged 13 commits intomainfrom
fix/make-setup-authz-targets-wrong-cluster

Conversation

@Zaggy21
Copy link
Copy Markdown
Contributor

@Zaggy21 Zaggy21 commented Mar 6, 2026

Description

This PR simplifies the authz make targets by overriding the ADMIN_CLUSTER env_var and using existing targets. It adds a dashboard config for authz cluster.
It updates the URL to access the demo org dashboard, the correct one is: http://demo.dashboard.localhost:<local-port>/.
It also removes the dependency image tag override from authz chart, so that it uses the appVersion for the greenhouse chart version.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help
  • Separate ticket for tests # (issue/pr)

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added to documentation?

  • 📜 README.md
  • 🤝 Documentation pages updated
  • 🙅 no documentation needed
  • (if applicable) generated OpenAPI docs for CRD changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

Summary by CodeRabbit

  • Documentation

    • Updated local development dashboard access URL from localhost:5001 to demo.dashboard.localhost:5001 in setup documentation.
  • Chores

    • Enhanced local development environment configuration for authorization-related setup and testing workflows.

Zaggy21 added 4 commits March 5, 2026 16:01
On-behalf-of: @SAP krzysztof.zagorski@sap.com
…e the appVersion

On-behalf-of: @SAP krzysztof.zagorski@sap.com
…dashboard

On-behalf-of: @SAP krzysztof.zagorski@sap.com
@Zaggy21 Zaggy21 requested review from a team as code owners March 6, 2026 14:20
@Zaggy21 Zaggy21 linked an issue Mar 6, 2026 that may be closed by this pull request
@github-actions github-actions Bot added size/M documentation Improvements or additions to documentation helm-charts labels Mar 6, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 6, 2026

📝 Walkthrough

Walkthrough

The PR restructures authorization setup workflows by introducing authz-specific orchestration targets, adds a new Kubernetes configuration for dashboard deployment in the greenhouse-authz namespace, updates dashboard URL references from localhost:5001 to demo.dashboard.localhost:5001, and removes explicit image tag configuration in favor of chart defaults.

Changes

Cohort / File(s) Summary
Authorization Setup Orchestration
Makefile, hack/authz/authz.mk
Refactors setup-authz dependencies to invoke new setup-dashboard-authz and setup-demo-authz targets; introduces standardized ADMIN_CLUSTER context across e2e and demo workflows with updated target definitions and dependencies.
Dashboard Configuration & Deployment
charts/authz/values.yaml, dev-env/ui.authz-config.yaml, internal/local/setup/dashboard.go
Adds new YAML configuration for cors-proxy and dashboard chart deployment in greenhouse-authz namespace; removes explicit image tag configuration; updates internal dashboard setup URL to use demo.dashboard.localhost.
Documentation
docs/contribute/local-dev.md
Updates user-facing documentation to reflect new dashboard access URL from localhost:5001 to demo.dashboard.localhost:5001.

Poem

🐰 Authz targets align with care,
Demo cluster, namespaces fair,
Dashboard dashboards, URLs bright,
Charts compose in greenhouse light,
Setup flows dance left and right! 🎯

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the fix for issue 1833 related to authz Makefile targets, though it has a grammatical issue ('targets wrong cluster' is unclear).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The PR description covers all required template sections with clear explanations of changes, appropriate type selection, issue linkage, and checklist completion.

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

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/make-setup-authz-targets-wrong-cluster

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

On-behalf-of: @SAP krzysztof.zagorski@sap.com
@abhijith-darshan
Copy link
Copy Markdown
Contributor

abhijith-darshan commented Mar 6, 2026

Have you tried setting env inside the authz.mk invoke commands like

e2e-local-authz:
ADMIN_CLUSTER=greenhouse-authz-admin make e2e-local

This way no change is necessary in the root Makefile?

@Zaggy21
Copy link
Copy Markdown
Contributor Author

Zaggy21 commented Mar 10, 2026

Have you tried setting env inside the authz.mk invoke commands like

e2e-local-authz:
ADMIN_CLUSTER=greenhouse-authz-admin make e2e-local

This way no change is necessary in the root Makefile?

Now it's also not necessary and by using target-specific variables with dependency approach there's no need to run a recursive make:

.PHONY: e2e-local-authz
e2e-local-authz: ADMIN_CLUSTER := greenhouse-authz
e2e-local-authz: SCENARIO := authz
e2e-local-authz: e2e-local

On-behalf-of: @SAP krzysztof.zagorski@sap.com
Comment thread Makefile Outdated
Zaggy21 added 2 commits March 16, 2026 11:14
On-behalf-of: @SAP krzysztof.zagorski@sap.com
@abhijith-darshan
Copy link
Copy Markdown
Contributor

@Zaggy21 let’s wait till this PR gets merged?
#1871

As I changed quite a bit of the chart values shape and the dev-env values file..

Comment thread docs/contribute/local-dev.md
@abhijith-darshan abhijith-darshan self-requested a review April 7, 2026 06:08
Copy link
Copy Markdown
Contributor

@abhijith-darshan abhijith-darshan left a comment

Choose a reason for hiding this comment

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

We can improve the makefile simplification as a follow up. Let’s not hold this PR for long

@Zaggy21 Zaggy21 merged commit 282767c into main Apr 7, 2026
22 checks passed
@Zaggy21 Zaggy21 deleted the fix/make-setup-authz-targets-wrong-cluster branch April 7, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation helm-charts size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 [BUG] - Make setup-authz targets wrong cluster

2 participants