Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.
This repository was archived by the owner on May 6, 2020. It is now read-only.

bug(procfile): validate the procfile process name does not contain capital letters #1257

Closed
@lachie83

Description

@lachie83

Very similar to this issue although we need to check for capitals.
deis/workflow-cli#247
https://github.com/deis/controller/pull/1105/files

Need to validate procfile naming complies with Kubernetes deployment naming restrictions. Creating a proc called thisisaTest yields the following error message and breaks the app.

ERROR (app::deploy): (app::deploy): ('failed to create Deployment "namespace-thisisaTest" in Namespace "pickle": 422 Unprocessable Entity Deployment.extensions "namespace-thisisaTest" is invalid: [metadata.name: Invalid value: "namespace-thisisaTest": must match the regex [a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)* (e.g. \'example.com\'), spec.template.spec.containers[0].name: Invalid value: "namespace-thisisaTest": must match the regex [a-z0-9]([-a-z0-9]*[a-z0-9])? (e.g. \'my-name\' or \'123-abc\')]', 'namespace-thisisaTest, 'pickle')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions