Skip to content

feat: enable debugging for service providers with workload cluster#35

Merged
christophrj merged 6 commits into
mainfrom
feat/localaccess-with-workload
Jul 14, 2026
Merged

feat: enable debugging for service providers with workload cluster#35
christophrj merged 6 commits into
mainfrom
feat/localaccess-with-workload

Conversation

@AndresNico

@AndresNico AndresNico commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

On-behalf-of: @SAP nico.andres@sap.com

What this PR does / why we need it:
Currently locally running a service provider which uses a workload cluster with DEV_DEBUG=true does not work. The localAccessReconciler patches the restConfig and client of both clusters to use localhost instead of the IP on the docker network. This is fine for the sp but not for the deployed workload which needs to access the target cluster with the IP and port on the docker network.
This PR adds a withWorkload param option to the localAdvancedClusterAccessReconciler which results in patching the cluster client to use localhost and the restConfig to use the host on the docker network.
Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Enable local debugging mode to work with service providers deploying to a workload cluster

On-behalf-of: @SAP nico.andres@sap.com
Signed-off-by: Nico Andres <nico.andres@sap.com>
On-behalf-of: @SAP nico.andres@sap.com
Signed-off-by: Nico Andres <nico.andres@sap.com>
@AndresNico AndresNico changed the title feat: enable local access for service providers with workload cluster feat: enable debugging for service providers with workload cluster Jul 13, 2026
On-behalf-of: @SAP nico.andres@sap.com
Signed-off-by: Nico Andres <nico.andres@sap.com>
On-behalf-of: @SAP nico.andres@sap.com
Signed-off-by: Nico Andres <nico.andres@sap.com>
@AndresNico
AndresNico marked this pull request as ready for review July 13, 2026 16:28
@AndresNico
AndresNico requested a review from christophrj July 13, 2026 16:28

@christophrj christophrj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @AndresNico generally lgtm 👍 please have a look at a couple of minor change requests regarding naming and realizing the feature without a breaking change.

Comment thread pkg/serviceprovider/clusteraccess/localaccess_advanced.go Outdated
Comment thread pkg/serviceprovider/clusteraccess/localaccess_advanced.go Outdated
Comment thread pkg/serviceprovider/clusteraccess/localaccess_advanced.go Outdated
On-behalf-of: @SAP nico.andres@sap.com
Signed-off-by: Nico Andres <nico.andres@sap.com>
@AndresNico
AndresNico requested a review from christophrj July 14, 2026 09:39
On-behalf-of: @SAP nico.andres@sap.com
Signed-off-by: Nico Andres <nico.andres@sap.com>
@christophrj
christophrj merged commit 74952cd into main Jul 14, 2026
2 checks passed
@christophrj
christophrj deleted the feat/localaccess-with-workload branch July 14, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants