Skip to content

Conversation

xrstf
Copy link
Contributor

@xrstf xrstf commented Sep 16, 2025

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.

@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
Copy link
Member

@embik embik left a comment

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
Contributor

LGTM label has been added.

Git tree hash: af5669710c9e3a88d6f2cd850b46f62fa71ce49b

@kcp-ci-bot
Copy link
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

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
Copy link
Member

embik commented Sep 18, 2025

/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
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
3 participants