Skip to content

[bitnami/redis] Long release name breaks statefulset pods #27549

@kkopachev

Description

@kkopachev

Name and Version

bitnami/redis 19.5.5

What architecture are you using?

None

What steps will reproduce the bug?

helm install aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa oci://registry-1.docker.io/bitnamicharts/redis --set architecture=standalone --set master.persistence.enabled=false

where release name is 41 character long

Are you using any custom parameters or values?

--set architecture=standalone --set master.persistence.enabled=false

What is the expected behavior?

Expect either error on helm install time or release name truncated further to account for longer pod names in statefulset

What do you see instead?

Helm deploys successfully, but pods in replica set fail to start with

create Pod aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-redis-master-0 in StatefulSet aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-redis-master failed error: 
Pod "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-redis-master-0" is invalid: metadata.labels: Invalid value: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-redis-master-df5fb664f": must be no more than 63 characters

Additional information

No response

Metadata

Metadata

Assignees

Labels

redissolvedstale15 days without activitytech-issuesThe user has a technical issue about an application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions