Drone

K8s Namespace issue

Hello,

I am evaluating Drone v1 on K8s with K8s controller, coupled with Bitbucket Server (Stash).
Everything works, thank you.

I just found that issue when I am using a personal repository:

default: Namespace "vijy52g2w6y8g4nxsbaeesrywpjwv02r" is invalid: metadata.labels: Invalid value:
"~MARCOUJ": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')

Indeed, bitbucket use this (ugly) structure ~[USERNAME] as project name.

I would suggest to protect the NS label to match K8s validations.

2 Likes

@bradrydzewski Even iā€™m facing the same issue with droneV1.6.1 which is running in K8s.
How do i resolve it? please suggest me the steps that i need to follow.

If you are experiencing this issue it would tell me you installed the legacy kubernetes integration instead of our new kubernetes runner. This typically happens when people try to install Drone using the charts in helm stable. These charts are not official (we are not involved with them) and they are pretty much broken. Please use gtaylor/drone-charts instead.