Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit eb394c1

Browse files
committed
chore: Remove operator string from cluster resources
1 parent fd962fb commit eb394c1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

config/default/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Adds namespace to all resources.
2-
namespace: uptime-robot-operator-system
2+
namespace: uptime-robot-system
33

44
# Value of this field is prepended to the
55
# names of all resources, e.g. a deployment named
66
# "wordpress" becomes "alices-wordpress".
77
# Note that it should also match with the prefix (text before '-') of the namespace
88
# field above.
9-
namePrefix: uptime-robot-operator-
9+
namePrefix: uptime-robot-
1010

1111
# Labels to add to all resources and selectors.
1212
#labels:

internal/controller/account_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
uptimerobotv1 "github.com/clevyr/uptime-robot-operator/api/v1"
3535
)
3636

37-
var ClusterResourceNamespace = "uptime-robot-operator-system"
37+
var ClusterResourceNamespace = "uptime-robot-system"
3838

3939
// AccountReconciler reconciles a Account object
4040
type AccountReconciler struct {

internal/controller/account_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func CreateAccount(ctx context.Context) (*uptimerobotv1.Account, *corev1.Secret)
6464
secret := &corev1.Secret{
6565
ObjectMeta: metav1.ObjectMeta{
6666
Name: "uptime-robot",
67-
Namespace: "uptime-robot-operator-system",
67+
Namespace: ClusterResourceNamespace,
6868
},
6969
Data: map[string][]byte{
7070
"apiKey": []byte("1234"),

test/e2e/e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/clevyr/uptime-robot-operator/test/utils"
2828
)
2929

30-
const namespace = "uptime-robot-operator-system"
30+
const namespace = "uptime-robot-system"
3131

3232
var _ = Describe("controller", Ordered, func() {
3333
BeforeAll(func() {

0 commit comments

Comments
 (0)