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 00f8d74
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 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
2 changes: 1 addition & 1 deletion tests/kuttl/test-suites/default/watcher/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ status:
apiVersion: apps/v1
kind: Deployment
metadata:
name: watcher-kuttl-api-api
name: watcher-kuttl-api
labels:
service: watcher-api
spec:
Expand Down
2 changes: 1 addition & 1 deletion tests/kuttl/test-suites/default/watcher/04-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ status:
apiVersion: apps/v1
kind: Deployment
metadata:
name: watcher-kuttl-api-api
name: watcher-kuttl-api
labels:
service: watcher-api
spec:
Expand Down
2 changes: 1 addition & 1 deletion tests/kuttl/test-suites/default/watcher/05-errors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ metadata:
apiVersion: apps/v1
kind: Deployment
metadata:
name: watcher-kuttl-api-api
name: watcher-kuttl-api
---
apiVersion: v1
kind: Pod
Expand Down

0 comments on commit 00f8d74

Please sign in to comment.