mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Svc name must consist of lower case alphanumeric characters
This commit is contained in:
@@ -24,7 +24,7 @@ func Service(namespace, name, podName string, ports []string) (*v1.Service, erro
|
||||
|
||||
return &v1.Service{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: dnsName(name),
|
||||
Name: dnsName("dr-" + name),
|
||||
Namespace: namespace,
|
||||
},
|
||||
Spec: v1.ServiceSpec{
|
||||
|
||||
@@ -11,7 +11,7 @@ func TestService(t *testing.T) {
|
||||
expected := `
|
||||
{
|
||||
"metadata": {
|
||||
"name": "bar",
|
||||
"name": "dr-bar",
|
||||
"namespace": "foo",
|
||||
"creationTimestamp": null
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user