Skip to content

Uppercase containers names to lowercase pods #1702

@BSD-Yassin

Description

@BSD-Yassin

What would you like to be added?

It's not a bug at all.

I've converted a single docker compose file to get several kubernetes deployment files out of it.

Some services were in uppercase (for no reason) in the compose file, they were not changed in the converted version.

So when I try applying my file to kubectl, here's what I got :

The Deployment "icm" is invalid: spec.template.spec.containers[0].name: Invalid value: "ICM": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?')

This is a small detail the converter could look for.

Why is this needed?

It would avoid a next manual step in the conversion, and it would teach us to not put uppercase in our files to look cool...

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions