bakdata / kpops

Deploy Kafka pipelines to Kubernetes
https://bakdata.github.io/kpops
MIT License
12 stars 1 forks source link

Clean up fails for names > 63 chars #455

Closed torbsto closed 4 months ago

torbsto commented 4 months ago

In #390, hash-based trimming for Helm releases was already implemented. I now run into similar problems but with k8s resources. Having names bigger than 63 chars, KPOPs creates resources (in my case clean up jobs) with the same name and fails eventually because of it.

Also, it might fail because of auto-generated labels that are too long:

RuntimeError: Error: Job.batch "my-long-name" is invalid: [metadata.labels: Invalid value: "my-long-name": must be no more than 63 characters, spec.template.labels: Invalid value: "my-long-name: must be no more than 63 characters]