Skip to content

Shorten deployment names when over 47 characters#204

Merged
carlydf merged 5 commits intomainfrom
keep-deployment-name-short
Mar 9, 2026
Merged

Shorten deployment names when over 47 characters#204
carlydf merged 5 commits intomainfrom
keep-deployment-name-short

Conversation

@carlydf
Copy link
Copy Markdown
Collaborator

@carlydf carlydf commented Feb 21, 2026

What was changed

Shorten deployment names (while keeping them unique) if over 47 characters.

Why?

Deployment names in k8s should be <=47 characters so that Pod names can be short enough for DNS limits.

Checklist

  1. Closes

  2. How was this tested:
    New unit tests, and existing functional tests.

  3. Any docs updates needed?

@carlydf carlydf requested review from a team and jlegrone as code owners February 21, 2026 00:57
carlydf and others added 3 commits March 8, 2026 12:53
kube-apiserver was timing out on shutdown because testEnv.Stop() was
called while the manager goroutine was still running against it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread internal/tests/internal/env_helpers.go
Copy link
Copy Markdown
Contributor

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

Good stuff @carlydf :) One little doc suggestion, but nothing to hold up the PR about.

Comment thread docs/limits.md
@carlydf carlydf merged commit 58df597 into main Mar 9, 2026
14 checks passed
@carlydf carlydf deleted the keep-deployment-name-short branch March 9, 2026 18:53
shashwatsuri pushed a commit to shashwatsuri/temporal-worker-controller that referenced this pull request Apr 28, 2026
<!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR! 
If it is a significant code change, please **make sure there is an open
issue** for this.
We work best with you when we have accepted the idea first before you
code. -->

<!--- For ALL Contributors 👇 -->

## What was changed
Shorten deployment names (while keeping them unique) if over 47
characters.

## Why?
Deployment names in k8s should be <=47 characters so that Pod names can
be short enough for DNS limits.

## Checklist
<!--- add/delete as needed --->

1. Closes <!-- add issue number here -->

2. How was this tested:
New unit tests, and existing functional tests. 

3. Any docs updates needed?
<!--- update README if applicable
      or point out where to update docs.temporal.io -->

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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