Skip to content

fix templating variables for related resources#91

Merged
kcp-ci-bot merged 1 commit into
mainfrom
fix-templating
Sep 18, 2025
Merged

fix templating variables for related resources#91
kcp-ci-bot merged 1 commit into
mainfrom
fix-templating

Conversation

@xrstf

@xrstf xrstf commented Sep 16, 2025

Copy link
Copy Markdown
Contributor

Summary

I made a simple mistake when writing this function and never caught it because none of the tests checked that side-related information (i.e. the cluster name or the workspace path) are actually available.

Since the cluster name is dynamic, the best I could come up with is relying on its length, which we always know :)

What Type of PR Is This?

/kind bug

Related Issue(s)

Fixes #90

Release Notes

Fix `ClusterName` and `WorkspacePath` being empty in templating strings for related resources.

On-behalf-of: @SAP christoph.mewes@sap.com
@kcp-ci-bot kcp-ci-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/bug Categorizes issue or PR as related to a bug. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 16, 2025
@xrstf xrstf requested a review from embik September 16, 2025 18:18
@mirzakopic mirzakopic moved this from In Progress to Blocked/Waiting in Platform Mesh & Kube Projects - Backlog Sep 17, 2025

@embik embik 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.

/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 18, 2025
@kcp-ci-bot

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: af5669710c9e3a88d6f2cd850b46f62fa71ce49b

@kcp-ci-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: embik

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

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 18, 2025
@embik

embik commented Sep 18, 2025

Copy link
Copy Markdown
Member

/retest

dear bot, please merge?

@kcp-ci-bot kcp-ci-bot merged commit 59f097e into main Sep 18, 2025
11 checks passed
@kcp-ci-bot kcp-ci-bot deleted the fix-templating branch September 18, 2025 09:35
@github-project-automation github-project-automation Bot moved this from Blocked/Waiting to Done in Platform Mesh & Kube Projects - Backlog Sep 18, 2025
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. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: .spec.related[*].object.selector.matchLabels does not resolve .ClusterName and .ClusterPath

4 participants