Skip to content

Commit 890a8dc

Browse files
committed
Rename the watcherapi deployment
Remove the '-api' suffix from the deployment name, as it usually is redundant.
1 parent c3c5bca commit 890a8dc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/watcherapi/deployment.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package watcherapi
22

33
import (
4-
"fmt"
5-
64
"github.com/openstack-k8s-operators/lib-common/modules/common/env"
75
appsv1 "k8s.io/api/apps/v1"
86
corev1 "k8s.io/api/core/v1"
@@ -69,7 +67,7 @@ func Deployment(
6967

7068
deployment := &appsv1.Deployment{
7169
ObjectMeta: metav1.ObjectMeta{
72-
Name: fmt.Sprintf("%s-api", instance.Name),
70+
Name: instance.Name,
7371
Namespace: instance.Namespace,
7472
Labels: labels,
7573
},

0 commit comments

Comments
 (0)