You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.
When we create a GitRepository object and the repo contains any branch with any capital letter, the controller will give an runtimeError while creating the GitBranch object. This happens because we use branch.Name as part of the metedata.name of object, which is not allowed in kubenetes. You get error like:
invalid: metadata.name: Invalid value: "some-repo-KOGITO-2020": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
The easiest solution would be to convert the string to lower case(using strings.Lower()) before creating the object.
For reference in code see the line
The text was updated successfully, but these errors were encountered:
When we create a
GitRepository
object and the repo contains any branch with any capital letter, the controller will give an runtimeError while creating theGitBranch
object. This happens because we usebranch.Name
as part of the metedata.name of object, which is not allowed in kubenetes. You get error like:The easiest solution would be to convert the string to lower case(using strings.Lower()) before creating the object.
For reference in code see the line
The text was updated successfully, but these errors were encountered: