Skip to content

Drop a trailing dot when truncating generated object names - #18803

Merged
kubernetes-prow[bot] merged 2 commits into
kubernetes-sigs:mainfrom
burrows99:fix-name-sanitizer-trailing-dot
Nov 16, 2026
Merged

kubernetes-prow[bot] merged 2 commits into
kubernetes-sigs:mainfrom
burrows99:fix-name-sanitizer-trailing-dot

Conversation

@burrows99

@burrows99 burrows99 commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it?

Kueue shortens long generated names by cutting a prefix to a length limit and appending -<hash>. When the cut ends on a ., the name contains .-, which is not a valid DNS subdomain, so the API server rejects the Workload or ProvisioningRequest (HTTP 422).

This adds utilstrings.TruncateNamePrefix, which cuts the prefix and then drops any trailing ., and uses it in the three sanitizers named in the issue:

  • GenerateWorkloadNameWithExtra (and GetWorkloadNameForVariant, which shares generateWorkloadNameWithHash); GenerateWorkloadNamePrefix uses it too, so the prefix still matches the name, and the local truncate helper is removed
  • limitObjectNameWithReservedSuffix (ProvisioningRequest and its PodTemplate names)
  • virtualPodName
flowchart TD
    A[Long name cut to the length limit] --> B{Cut ends on a dot}
    B -->|Before| C[Name contains dot hyphen and is rejected]
    B -->|After| D[Trailing dot dropped and the name is valid]
Loading

Fixes #16929

Useful notes for your reviewer

Only a trailing . is trimmed, not a trailing -. A cut that ends on - gives --<hash>, which is valid, and Workloads and ProvisioningRequests with such names may already exist. Kueue finds them by recomputing the name (for example ProvisioningRequestName and matchesWorkloadAndCheck, or the Pod group and StatefulSet webhooks), so trimming - would rename them on upgrade. With only . trimmed, every name that changes was previously invalid, so no existing object is affected.

Out of scope: virtualGroupName already trims .- since #16904 and is unchanged. The broader unification of the sanitizers (point 2 of the issue) and the hash-length discussion in the comments are not attempted here.

Behavior Level Command and result Not run and why
Workload name (including variant names) is valid when the cut ends on ., with ShortWorkloadNames on and off unit go test ./pkg/controller/jobframework/: ok. The 3 new cases fail on main integration/e2e: no cluster available
ProvisioningRequest name is valid when the cut ends on ., and is still matched to its Workload and attempt unit go test ./pkg/controller/admissionchecks/provisioning/: ok. The new case fails on main integration/e2e: no cluster available
Virtual Pod name is valid when the cut ends on . unit go test ./pkg/cache/scheduler/was/: ok. The new case fails on main none
TruncateNamePrefix: name under the limit unchanged, cut at the limit, trailing . dropped, trailing - kept unit go test ./pkg/util/strings/: ok none

All new cases are in existing unit-test packages, which make test selects (every package outside /test/). Each new case also asserts validation.IsDNS1123Subdomain on the output. The existing exact-name cases (short names, long truncated names, wl-check-1) pass unchanged.

make verify could not run here: the Makefile requires GNU sed on macOS, and shell-lint/npm-depcheck need Docker, neither of which was available. Instead I ran the repo-pinned golangci-lint v2.15.0 with .golangci.yaml on the four changed packages (0 issues), plus go vet and gofmt -l (both clean).

Narrated recording, before then after (sound on):

evidence.mp4

The commands in the video, with their output. Before, with main's sanitizers and the new tests:

$ git checkout main -- pkg/controller/jobframework/workload_names.go pkg/controller/admissionchecks/provisioning/controller.go pkg/cache/scheduler/was/virtual_pods.go
$ go test -count=1 -v -run /truncated_at_a_dot ./pkg/controller/jobframework/ ./pkg/controller/admissionchecks/provisioning/ ./pkg/cache/scheduler/was/ 2>&1 | grep -E -- '--- (PASS|FAIL).*dot|^(ok|FAIL)'
    --- FAIL: TestGenerateWorkloadNameWithExtra/long_owner_name_truncated_at_a_dot_(ShortWorkloadNames=false) (0.00s)
    --- FAIL: TestGenerateWorkloadNameWithExtra/long_owner_name_truncated_at_a_dot_(ShortWorkloadNames=true) (0.00s)
    --- FAIL: TestGetWorkloadNameForVariant/flavor_name_truncated_at_a_dot_(ShortWorkloadNames=false) (0.00s)
FAIL
FAIL	sigs.k8s.io/kueue/pkg/controller/jobframework	0.555s
    --- FAIL: TestProvisioningRequestName/name_truncated_at_a_dot (0.00s)
FAIL
FAIL	sigs.k8s.io/kueue/pkg/controller/admissionchecks/provisioning	0.438s
    --- FAIL: TestVirtualPodName/long_name_truncated_at_a_dot (0.00s)
FAIL
FAIL	sigs.k8s.io/kueue/pkg/cache/scheduler/was	1.375s
FAIL

After, on this branch:

$ git checkout HEAD -- pkg
$ go test -count=1 -v -run /truncated_at_a_dot ./pkg/controller/jobframework/ ./pkg/controller/admissionchecks/provisioning/ ./pkg/cache/scheduler/was/ 2>&1 | grep -E -- '--- (PASS|FAIL).*dot|^(ok|FAIL)'
    --- PASS: TestGenerateWorkloadNameWithExtra/long_owner_name_truncated_at_a_dot_(ShortWorkloadNames=false) (0.00s)
    --- PASS: TestGenerateWorkloadNameWithExtra/long_owner_name_truncated_at_a_dot_(ShortWorkloadNames=true) (0.00s)
    --- PASS: TestGetWorkloadNameForVariant/flavor_name_truncated_at_a_dot_(ShortWorkloadNames=false) (0.00s)
ok  	sigs.k8s.io/kueue/pkg/controller/jobframework	0.786s
    --- PASS: TestProvisioningRequestName/name_truncated_at_a_dot (0.00s)
ok  	sigs.k8s.io/kueue/pkg/controller/admissionchecks/provisioning	0.486s
    --- PASS: TestVirtualPodName/long_name_truncated_at_a_dot (0.00s)
ok  	sigs.k8s.io/kueue/pkg/cache/scheduler/was	1.503s
$ go test -count=1 ./pkg/util/strings/ ./pkg/controller/jobframework/ ./pkg/controller/admissionchecks/provisioning/ ./pkg/cache/scheduler/was/
ok  	sigs.k8s.io/kueue/pkg/util/strings	0.103s
ok  	sigs.k8s.io/kueue/pkg/controller/jobframework	1.381s
ok  	sigs.k8s.io/kueue/pkg/controller/admissionchecks/provisioning	1.377s
ok  	sigs.k8s.io/kueue/pkg/cache/scheduler/was	2.625s

The grep only hides klog's feature-gate warnings, which fill about 1,700 lines.

Edge cases and unchanged behaviour checked (all by unit tests, shown in the video's last part; nothing was run against a cluster):

  • A name under the limit is unchanged.
  • A trailing . at the cut is dropped, and a trailing - at the cut is kept.
  • Unchanged: the existing exact-name cases for GenerateWorkloadNameWithExtra and ProvisioningRequestName still pass, and the four packages pass in full.

AI assistance (Claude Code) was used to write this change, its tests and this description.

Release note

Workloads: Fixed a bug that caused generated Workload and ProvisioningRequest names to contain `.-` after truncation. The API server rejected these names. Now Kueue removes trailing dots from the truncated name before it appends the hash suffix.

AI summary

This PR fixes generated object names that contain .- after truncation. Such names are invalid for the Kubernetes API server.

  • Adds utilstrings.TruncateNamePrefix in pkg/util/strings/strings.go. It truncates a string to at most n bytes and removes trailing . characters. It keeps trailing - characters.
  • Uses the helper in:
    • GenerateWorkloadNamePrefix and generateWorkloadNameWithHash in pkg/controller/jobframework/workload_names.go. The local truncate helper is removed.
    • limitObjectNameWithReservedSuffix in pkg/controller/admissionchecks/provisioning/controller.go, which names ProvisioningRequests.
    • The virtual pod name generation in pkg/cache/scheduler/was/virtual_pods.go.
  • Adds tests for dot truncation in the string, jobframework, provisioning, and virtual pod packages. The tests check DNS-1123 subdomain validity of generated names.
  • Does not change trailing-hyphen handling, virtualGroupName, or the sanitizer structure. The linked issue #16929 proposes trimming trailing - and unifying the sanitizers. This PR does not implement those parts.

Suggested release note

Workloads: Fixed a bug that caused generated Workload and ProvisioningRequest names to contain `.-` after truncation. The API server rejected these names. Now Kueue removes trailing dots from the truncated name before it appends the hash suffix.

Workload, ProvisioningRequest, ProvisioningRequest PodTemplate and virtual
Pod names are built by truncating a prefix and appending "-<hash>". When
the cut ends on a '.', the result contains ".-", which is not a valid
DNS subdomain, so the API server rejects the Workload or
ProvisioningRequest.

Add utilstrings.TruncateNamePrefix, which truncates and then trims any
trailing '.', and use it in all three name sanitizers. A trailing '-' is
kept: "--" is valid, and trimming it would change the names of existing
objects.

Signed-off-by: burrows99 <raunakburrows@gmail.com>
@kubernetes-prow kubernetes-prow Bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. labels Nov 15, 2026
@netlify

netlify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

👷 Deploy request for kubernetes-sigs-kueue pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 86aa619

@linux-foundation-easycla

linux-foundation-easycla Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: burrows99 / name: Raunak Burrows (86aa619)
  • ✅ login: burrows99 / name: burrows99 (1de6deb)

@kubernetes-prow

Copy link
Copy Markdown

Welcome @burrows99!

It looks like this is your first PR to kubernetes-sigs/kueue 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/kueue has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@kubernetes-prow kubernetes-prow Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Nov 15, 2026
@kubernetes-prow

Copy link
Copy Markdown

Hi @burrows99. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Excluded labels (none allowed): 3

  • needs-ok-to-test
  • do-not-merge/work-in-progress
  • cncf-cla: no

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Name generation now uses a shared helper that truncates prefixes and removes trailing periods. Tests cover names near truncation boundaries and validate generated names as DNS-1123 subdomains.

Changes: Generated Name Prefixes

Layer / File(s) Summary
Shared prefix truncation
pkg/util/strings/strings.go, pkg/util/strings/strings_test.go
Adds TruncateNamePrefix. It truncates to a byte limit and removes trailing periods while retaining trailing hyphens.
Workload name generation
pkg/controller/jobframework/workload_names.go, pkg/controller/jobframework/workload_names_test.go
Workload name generation uses the shared helper. Tests cover dot-boundary names and DNS-1123 validity.
Provisioning request names
pkg/controller/admissionchecks/provisioning/controller.go, pkg/controller/admissionchecks/provisioning/provisioning_test.go
Provisioning request name generation uses the shared helper and retains its hash suffix. Tests check DNS-1123 validity for a name truncated at a dot.
Virtual pod names
pkg/cache/scheduler/was/virtual_pods.go, pkg/cache/scheduler/was/virtual_pods_test.go
Virtual pod name generation uses the shared helper. Tests check generated-name length and DNS-1123 validity.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested labels: kind/bug, area/was

Suggested reviewers: alien1403, vladikkuzn, henry3260

Merge Risk: Minimal · previous review 1de6d

The change prevents generated object names from ending a truncated prefix with a dot, which the API server rejects. It is narrow, covered by unit tests, and easy to revert. Merge risk is minimal. The CLA status still needs to be resolved.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: truncating generated object names now drops a trailing dot. The changeset adds TruncateNamePrefix, which removes trailing periods after truncation, and uses it in the …
Linked Issues check Passed Issue #16929 is the only directly linked issue, and it is open. Its reported defect is a generated name that contains .- and is rejected with HTTP 422. The PR fixes this in the three named sanitizer…
Out of Scope Changes check Passed All changed files relate to the linked issue. The changes are: the new TruncateNamePrefix helper and its tests (pkg/util/strings); the Workload name sanitizers and the removed local truncate helpe…
Full details: Title check

Explanation

The title names the main change: truncating generated object names now drops a trailing dot. The changeset adds TruncateNamePrefix, which removes trailing periods after truncation, and uses it in the workload, provisioning request, and virtual pod name paths. The title is specific and matches the linked issue's concern about names ending in '.-'.

Full details: Linked Issues check

Explanation

Issue #16929 is the only directly linked issue, and it is open. Its reported defect is a generated name that contains .- and is rejected with HTTP 422. The PR fixes this in the three named sanitizers. utilstrings.TruncateNamePrefix (pkg/util/strings/strings.go) drops trailing . after truncation. It is used in GenerateWorkloadNamePrefix and generateWorkloadNameWithHash (pkg/controller/jobframework/workload_names.go; the local truncate helper is removed), in limitObjectNameWithReservedSuffix (ProvisioningRequest and PodTemplate names), and in virtualPodName. New unit tests cover the cut-at-dot case and assert validation.IsDNS1123Subdomain. Expected-output tests cover the trailing-dot and trailing-hyphen cases.

Deviation from the issue text: the issue asks to strip trailing . and -. The PR strips only .. The author gives a concrete reason: a trailing - yields --&lt;hash&gt;, which is a valid name, and stripping it would change names that existing Workloads and ProvisioningRequests are recomputed from. This deviation does not leave the reported 422 defect open. It is treated as a justified departure.

Requirement 2 of the issue (unifying the sanitizers) is a cleanup suggestion. The PR states it is out of scope, and it is not a required outcome of the bug fix. It is not counted against this PR.

Coding evidence is from the PR summary, the diff of workload_names.go, and the head source of strings.go. Test results are as reported by the author; they were not re-run.

Full details: Out of Scope Changes check

Explanation

All changed files relate to the linked issue. The changes are: the new TruncateNamePrefix helper and its tests (pkg/util/strings); the Workload name sanitizers and the removed local truncate helper (pkg/controller/jobframework/workload_names.go and its tests); the ProvisioningRequest name function (pkg/controller/admissionchecks/provisioning/controller.go and its tests); and the virtual Pod name function (pkg/cache/scheduler/was/virtual_pods.go and its tests). Switching GenerateWorkloadNamePrefix to the helper keeps the prefix consistent with the generated name, so it supports the same fix. The PR description states that virtualGroupName and the broader sanitizer unification are not changed. No unrelated change was found in the summary.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d78346f and 1de6deb.

Files selected for processing: 8

  • pkg/cache/scheduler/was/virtual_pods.go
  • pkg/cache/scheduler/was/virtual_pods_test.go
  • pkg/controller/admissionchecks/provisioning/controller.go
  • pkg/controller/admissionchecks/provisioning/provisioning_test.go
  • pkg/controller/jobframework/workload_names.go
  • pkg/controller/jobframework/workload_names_test.go
  • pkg/util/strings/strings.go
  • pkg/util/strings/strings_test.go

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@mimowo

mimowo commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

/ok-to-test

@kubernetes-prow kubernetes-prow Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 15, 2026
Comment thread pkg/util/strings/strings.go Resolved
@alien1403

alien1403 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

@burrows99 nice PR! 🎉🎉
Don't forget to authorize the CNCF CLA following the steps here: #18803 (comment)
Also, for future PRs, there's no need to record/upload a video showing the tests passing as Prow runs the test suite automatically and we can see the results directly in the Commits tab

@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Nov 16, 2026
@burrows99

Copy link
Copy Markdown
Contributor Author

thanks! added the n <= 0 guard with tests. cla signing in progress, noted on videos.

@alien1403

Copy link
Copy Markdown
Member

thanks!
/lgtm

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 16, 2026
@kubernetes-prow

Copy link
Copy Markdown

LGTM label has been added.

DetailsGit tree hash: 11a067fd4066565a6e89e7cd5674aca769f0cbe6

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

Looks good. TruncateNamePrefix is the right place for this, and keeping trailing - while dropping trailing . matches the upgrade story in the description (only previously-invalid names change).

The three call sites plus the DNS1123 assertions in the new cases cover the issue well. One small follow-up that is fine as a separate cleanup: virtualGroupName still has its own trim path (#16904); not blocking.

LGTM from my side on the bug fix itself.

@mimowo

mimowo commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

/lgtm
/approve
/cherrypick release-0.20
/cherrypick release-0.19
Thanks 👍

@k8s-infra-cherrypick-robot

Copy link
Copy Markdown
Contributor

@mimowo: once the present PR merges, I will cherry-pick it on top of release-0.19, release-0.20 in new PRs and assign them to you.

Details

In response to this:

/lgtm
/approve
/cherrypick release-0.20
/cherrypick release-0.19
Thanks 👍

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.

@kubernetes-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: burrows99, mimowo

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

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 16, 2026
@kubernetes-prow
kubernetes-prow Bot merged commit fdf58b8 into kubernetes-sigs:main Nov 16, 2026
56 checks passed
@kubernetes-prow kubernetes-prow Bot added this to the v0.21 milestone Nov 16, 2026
@k8s-infra-cherrypick-robot

Copy link
Copy Markdown
Contributor

@mimowo: #18803 failed to apply on top of branch "release-0.19":

Applying: Drop a trailing dot when truncating generated object names
Using index info to reconstruct a base tree...
A	pkg/cache/scheduler/was/virtual_pods.go
A	pkg/cache/scheduler/was/virtual_pods_test.go
M	pkg/controller/admissionchecks/provisioning/controller.go
M	pkg/controller/admissionchecks/provisioning/provisioning_test.go
M	pkg/controller/jobframework/workload_names.go
M	pkg/util/strings/strings.go
M	pkg/util/strings/strings_test.go
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): pkg/cache/scheduler/was/virtual_pods.go deleted in HEAD and modified in Drop a trailing dot when truncating generated object names.  Version Drop a trailing dot when truncating generated object names of pkg/cache/scheduler/was/virtual_pods.go left in tree.
CONFLICT (modify/delete): pkg/cache/scheduler/was/virtual_pods_test.go deleted in HEAD and modified in Drop a trailing dot when truncating generated object names.  Version Drop a trailing dot when truncating generated object names of pkg/cache/scheduler/was/virtual_pods_test.go left in tree.
Auto-merging pkg/controller/admissionchecks/provisioning/controller.go
Auto-merging pkg/controller/admissionchecks/provisioning/provisioning_test.go
CONFLICT (content): Merge conflict in pkg/controller/admissionchecks/provisioning/provisioning_test.go
Auto-merging pkg/controller/jobframework/workload_names.go
Auto-merging pkg/util/strings/strings.go
Auto-merging pkg/util/strings/strings_test.go
CONFLICT (content): Merge conflict in pkg/util/strings/strings_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Drop a trailing dot when truncating generated object names

Details

In response to this:

/lgtm
/approve
/cherrypick release-0.20
/cherrypick release-0.19
Thanks 👍

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.

@k8s-infra-cherrypick-robot

Copy link
Copy Markdown
Contributor

@mimowo: #18803 failed to apply on top of branch "release-0.20":

Applying: Drop a trailing dot when truncating generated object names
Using index info to reconstruct a base tree...
M	pkg/cache/scheduler/was/virtual_pods.go
M	pkg/cache/scheduler/was/virtual_pods_test.go
Falling back to patching base and 3-way merge...
Auto-merging pkg/cache/scheduler/was/virtual_pods.go
CONFLICT (content): Merge conflict in pkg/cache/scheduler/was/virtual_pods.go
Auto-merging pkg/cache/scheduler/was/virtual_pods_test.go
CONFLICT (content): Merge conflict in pkg/cache/scheduler/was/virtual_pods_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Drop a trailing dot when truncating generated object names

Details

In response to this:

/lgtm
/approve
/cherrypick release-0.20
/cherrypick release-0.19
Thanks 👍

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.

@mbobrovskyi

Copy link
Copy Markdown
Contributor

/set-release-note
Workloads: Fixed a bug that caused generated Workload and ProvisioningRequest names to contain .- after truncation. The API server rejected these names. Now Kueue removes trailing dots from the truncated name before it appends the hash suffix.

@github-actions

Copy link
Copy Markdown

✅ The release note was updated to:

Workloads: Fixed a bug that caused generated Workload and ProvisioningRequest names to contain `.-` after truncation. The API server rejected these names. Now Kueue removes trailing dots from the truncated name before it appends the hash suffix.

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Sanitizing compound names may produce an incorrect .- substring

6 participants