Skip to content

Conversation

@Obasoro
Copy link

@Obasoro Obasoro commented Apr 3, 2024

The error came up running bash controller.sh

"The Deployment "kube-root-ca.crt" is invalid: spec.template.spec.containers[0].name: Invalid value: "kube-root-ca.crt": 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])?')"

@Obasoro
Copy link
Author

Obasoro commented Apr 3, 2024

After studying the controller.sh file added | tr '.' '-'

while read next; do                                        
    NAME=$(echo $next | cut -d' ' -f2 | tr '.' '-')   # Replace '.' with '-'
    EVENT=$(echo $next | cut -d' ' -f1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant