This is an automated email from the ASF dual-hosted git repository.
pjfanning pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-management.git
The following commit(s) were added to refs/heads/main by this push:
new a21b0388 Update exception message (#853)
a21b0388 is described below
commit a21b0388e523bdcb495f21f4de6647aa94fc82e5
Author: PJ Fanning <[email protected]>
AuthorDate: Tue Jun 23 19:10:56 2026 +0100
Update exception message (#853)
* Update exception message
* Update KubernetesApi.scala
---
.../org/apache/pekko/rollingupdate/kubernetes/KubernetesApi.scala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/rolling-update-kubernetes/src/main/scala/org/apache/pekko/rollingupdate/kubernetes/KubernetesApi.scala
b/rolling-update-kubernetes/src/main/scala/org/apache/pekko/rollingupdate/kubernetes/KubernetesApi.scala
index 7818c14d..e353b8e4 100644
---
a/rolling-update-kubernetes/src/main/scala/org/apache/pekko/rollingupdate/kubernetes/KubernetesApi.scala
+++
b/rolling-update-kubernetes/src/main/scala/org/apache/pekko/rollingupdate/kubernetes/KubernetesApi.scala
@@ -94,7 +94,8 @@ private[pekko] final case class PodCost(podName: String,
cost: Int, address: Str
val normalized =
Normalizer.normalize(name,
Normalizer.Form.NFKD).toLowerCase.replaceAll("[_.]",
"-").replaceAll("[^-a-z0-9]", "")
if (normalized.length > 63)
- throw new IllegalArgumentException(s"Too long resource name
[$normalized]. At most 63 characters are accepted. " +
+ throw new IllegalArgumentException(
+ s"Resource name [$normalized] is too long. At most 63 characters are
accepted. " +
"A custom resource name can be defined in configuration
`pekko.rollingupdate.kubernetes.custom-resource.cr-name`.")
trim(normalized, List('-'))
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]