Closed frank-bee closed 3 hours ago
@frank-bee I don't think there is a solution for this at this moment given the 63 char annotation limit is a hard limit by Kubernetes. Possible workarounds for now is
I can see one approaches to address this problem, and it can be a feature request
I think using IngressBackend.resource would be a little overkill. The ref. from Ingress To the service works fine , it is just about the AWS specific annotation.
Why don't you use an annotation value to carry data? The annotation key could be something like 'service-ref-X', for example 'service-ref-1'.
The max. Length of keys should be predictable, which is not the case if data like the service name is carried.
Somehow a design issue I find.
If working with json data in an annotation value, even all conditions and actions (at least) could be encapsulated in one single annotation. Would be also easier to read if it is a multiline string. Something similar is done for traffic splitting.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
Describe the bug For very long service names (in our case generated ones), the annotation
alb.ingress.kubernetes.io/conditions.<service name>
gets too long (more than 63 characters).Steps to reproduce Create an Ingress for long service name where the annotation key, e.g.
alb.ingress.kubernetes.io/conditions.<service name>
is more than 63 char.Expected outcome It should be possible to create the annotation. E.g. the service name should be rather part of the value of an annotation.
Environment
Additional Context: see also https://github.com/loft-sh/vcluster/issues/1385