resources icon indicating copy to clipboard operation
resources copied to clipboard

Error in controller.sh

Open Obasoro opened this issue 1 year ago • 1 comments

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 avatar Apr 03 '24 14:04 Obasoro

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)

Obasoro avatar Apr 03 '24 14:04 Obasoro