Title: Move namespace.cozystack.io/host from namespace label to annotation · Issue #2002 · cozystack/cozystack · GitHub
Open Graph Title: Move namespace.cozystack.io/host from namespace label to annotation · Issue #2002 · cozystack/cozystack
X Title: Move namespace.cozystack.io/host from namespace label to annotation · Issue #2002 · cozystack/cozystack
Description: Problem The namespace.cozystack.io/host label on tenant namespaces concatenates the tenant name with the root domain: labels: namespace.cozystack.io/host: "mytenantname.cozystack.example.com" Kubernetes label values are limited to 63 cha...
Open Graph Description: Problem The namespace.cozystack.io/host label on tenant namespaces concatenates the tenant name with the root domain: labels: namespace.cozystack.io/host: "mytenantname.cozystack.example.com" Kuber...
X Description: Problem The namespace.cozystack.io/host label on tenant namespaces concatenates the tenant name with the root domain: labels: namespace.cozystack.io/host: "mytenantname.cozystack.example.com&q...
Opengraph URL: https://github.com/cozystack/cozystack/issues/2002
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Move namespace.cozystack.io/host from namespace label to annotation","articleBody":"## Problem\n\nThe `namespace.cozystack.io/host` label on tenant namespaces concatenates the tenant name with the root domain:\n\n```yaml\nlabels:\n namespace.cozystack.io/host: \"mytenantname.cozystack.example.com\"\n```\n\nKubernetes label values are limited to 63 characters. With typical domain names (e.g., `cozystack.example.com` = 21 chars), tenant names are effectively limited to ~41 characters before hitting this limit.\n\n## Analysis\n\nUnlike other `namespace.cozystack.io/*` labels (etcd, ingress, monitoring, seaweedfs) which are used in network policy selectors, the `/host` label appears to be informational only:\n\n- **Defined in**: `packages/apps/tenant/templates/namespace.yaml:60`\n- **Used as selector**: No - grep shows no label selector references\n- **Purpose**: Stores the computed host for the tenant namespace\n\n## Proposed Solution\n\nMove `namespace.cozystack.io/host` from labels to annotations:\n\n```yaml\n# Before (label)\nlabels:\n namespace.cozystack.io/host: \"mytenantname.cozystack.example.com\"\n\n# After (annotation) \nannotations:\n namespace.cozystack.io/host: \"mytenantname.cozystack.example.com\"\n```\n\nAnnotations don't have the 63-character value limit, so this removes one constraint on tenant name length.\n\n## Impact\n\n- Low risk: The label is not used for selection anywhere\n- The value is also stored in `cozystack-values` Secret, so consumers likely read it from there\n- Reduces effective tenant name restrictions\n\n## Affected Files\n\n- `packages/apps/tenant/templates/namespace.yaml`","author":{"url":"https://github.com/lllamnyp","@type":"Person","name":"lllamnyp"},"datePublished":"2026-02-09T12:37:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2002/cozystack/issues/2002"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5dc7a952-e4cd-7b72-5d31-cefec47d4e7b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A224:156E:2670D:33006:698E9E96 |
| html-safe-nonce | 08fbddb2f32239023cbc4651033b9062ced807be7882c3b99d6d1bf3c1da29b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjI0OjE1NkU6MjY3MEQ6MzMwMDY6Njk4RTlFOTYiLCJ2aXNpdG9yX2lkIjoiNzEyMTgyNjkzMTMyNzAxNjU5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4e696f0e9b1fc046afd52f37f2c3ecc8c74580e83935c18b941731458682e196 |
| hovercard-subject-tag | issue:3916176068 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cozystack/cozystack/2002/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0ddf262d22939e292d353477f4376100ce52c6bd6e09041212bd7d566753fd0d/cozystack/cozystack/issues/2002 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ddf262d22939e292d353477f4376100ce52c6bd6e09041212bd7d566753fd0d/cozystack/cozystack/issues/2002 |
| og:image:alt | Problem The namespace.cozystack.io/host label on tenant namespaces concatenates the tenant name with the root domain: labels: namespace.cozystack.io/host: "mytenantname.cozystack.example.com" Kuber... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lllamnyp |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/cozystack/cozystack git https://github.com/cozystack/cozystack.git |
| octolytics-dimension-user_id | 202342215 |
| octolytics-dimension-user_login | cozystack |
| octolytics-dimension-repository_id | 721858229 |
| octolytics-dimension-repository_nwo | cozystack/cozystack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 721858229 |
| octolytics-dimension-repository_network_root_nwo | cozystack/cozystack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width