Skip to content

Commit

Permalink
chore: Remove operator string from cluster resources
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Apr 8, 2024
1 parent fd962fb commit eb394c1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Adds namespace to all resources.
namespace: uptime-robot-operator-system
namespace: uptime-robot-system

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

# Labels to add to all resources and selectors.
#labels:
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/account_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
uptimerobotv1 "github.com/clevyr/uptime-robot-operator/api/v1"
)

var ClusterResourceNamespace = "uptime-robot-operator-system"
var ClusterResourceNamespace = "uptime-robot-system"

// AccountReconciler reconciles a Account object
type AccountReconciler struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/account_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func CreateAccount(ctx context.Context) (*uptimerobotv1.Account, *corev1.Secret)
secret := &corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
Name: "uptime-robot",
Namespace: "uptime-robot-operator-system",
Namespace: ClusterResourceNamespace,
},
Data: map[string][]byte{
"apiKey": []byte("1234"),
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/clevyr/uptime-robot-operator/test/utils"
)

const namespace = "uptime-robot-operator-system"
const namespace = "uptime-robot-system"

var _ = Describe("controller", Ordered, func() {
BeforeAll(func() {
Expand Down

0 comments on commit eb394c1

Please sign in to comment.