Skip to content

Commit

Permalink
Rename the watcherapi deployment
Browse files Browse the repository at this point in the history
Remove the '-api' suffix from the deployment name, as it usually is
redundant.
  • Loading branch information
cescgina committed Jan 17, 2025
1 parent c3c5bca commit 890a8dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/watcherapi/deployment.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package watcherapi

import (
"fmt"

"github.com/openstack-k8s-operators/lib-common/modules/common/env"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -69,7 +67,7 @@ func Deployment(

deployment := &appsv1.Deployment{
ObjectMeta: metav1.ObjectMeta{
Name: fmt.Sprintf("%s-api", instance.Name),
Name: instance.Name,
Namespace: instance.Namespace,
Labels: labels,
},
Expand Down

0 comments on commit 890a8dc

Please sign in to comment.