Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in controller.sh #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Error in controller.sh #35

wants to merge 2 commits into from

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