Skip to content

Commit

Permalink
Make cluster_wide_install to use different namespace for the cass-ope…
Browse files Browse the repository at this point in the history
…rator installation
  • Loading branch information
burmanm committed Jan 8, 2025
1 parent 6594726 commit 629ca07
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

var (
testName = "Cluster-wide install"
opNamespace = "test-cluster-wide-install"
opNamespace = "cass-operator"
dcNamespace1 = "test-cluster-wide-install-ns1"
dcNamespace2 = "test-cluster-wide-install-ns2"
dc1Name = "dc1"
Expand Down
25 changes: 0 additions & 25 deletions tests/cluster_wide_install/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,5 @@
# Set WATCH_NAMESPACE to "" in the deployment to provide cluster-wide install testing
namespace: test-cluster-wide-install

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
patchesJson6902:
- target:
group: rbac.authorization.k8s.io
version: v1
kind: ClusterRoleBinding
name: cass-operator-manager-rolebinding
patch: |-
- op: replace
path: /metadata/namespace
value: test-cluster-wide-install
- op: replace
path: /subjects/0/namespace
value: test-cluster-wide-install
- target:
group: rbac.authorization.k8s.io
version: v1
kind: ClusterRole
name: cass-operator-manager-crrole
patch: |-
- op: replace
path: /metadata/namespace
value: test-cluster-wide-install

resources:
- ../../config/deployments/cluster
Expand Down

0 comments on commit 629ca07

Please sign in to comment.