Skip to content

Commit

Permalink
Merge pull request #35 from jsafrane/4.4-shuffle-namespace-again
Browse files Browse the repository at this point in the history
4.4: Bug 1816826: Move to namespace openshift-cluster-storage-operator
  • Loading branch information
openshift-merge-robot committed Mar 27, 2020
2 parents 245855a + 418876b commit 4492120
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 30 deletions.
2 changes: 1 addition & 1 deletion assets/csi_controller_deployment.yaml
Expand Up @@ -2,7 +2,7 @@ kind: Deployment
apiVersion: apps/v1
metadata:
name: csi-snapshot-controller
namespace: openshift-csi-snapshot-controller
namespace: openshift-cluster-storage-operator
spec:
serviceName: "csi-snapshot-controller"
replicas: 1
Expand Down
12 changes: 1 addition & 11 deletions manifests/00_namespace.yaml
@@ -1,18 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: openshift-csi-snapshot-controller-operator
name: openshift-cluster-storage-operator
annotations:
openshift.io/node-selector: ""
labels:
openshift.io/cluster-monitoring: "true"

---
apiVersion: v1
kind: Namespace
metadata:
name: openshift-csi-snapshot-controller
annotations:
openshift.io/node-selector: ""
labels:
openshift.io/cluster-monitoring: "true"
6 changes: 4 additions & 2 deletions manifests/03_configmap.yaml
@@ -1,8 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
namespace: openshift-csi-snapshot-controller-operator
name: openshift-csi-snapshot-controller-operator-config
namespace: openshift-cluster-storage-operator
name: csi-snapshot-controller-operator-config
labels:
app: csi-snapshot-controller-operator
data:
operator-config.yaml: |
apiVersion: operator.openshift.io/v1alpha1
Expand Down
4 changes: 2 additions & 2 deletions manifests/03_service.yaml
Expand Up @@ -6,8 +6,8 @@ metadata:
service.alpha.openshift.io/serving-cert-secret-name: serving-cert
labels:
app: csi-snapshot-controller-operator
name: metrics
namespace: openshift-csi-snapshot-controller-operator
name: csi-snapshot-controller-operator-metrics
namespace: openshift-cluster-storage-operator
spec:
ports:
- name: https
Expand Down
6 changes: 4 additions & 2 deletions manifests/04_serviceaccount.yaml
Expand Up @@ -2,12 +2,14 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: csi-snapshot-controller-operator
namespace: openshift-csi-snapshot-controller-operator
namespace: openshift-cluster-storage-operator
labels:
app: csi-snapshot-controller-operator

---

apiVersion: v1
kind: ServiceAccount
metadata:
name: csi-snapshot-controller
namespace: openshift-csi-snapshot-controller
namespace: openshift-cluster-storage-operator
8 changes: 4 additions & 4 deletions manifests/05_operand_rbac.yaml
Expand Up @@ -36,7 +36,7 @@ metadata:
subjects:
- kind: ServiceAccount
name: csi-snapshot-controller
namespace: openshift-csi-snapshot-controller
namespace: openshift-cluster-storage-operator
roleRef:
kind: ClusterRole
name: openshift-csi-snapshot-controller-runner
Expand All @@ -46,7 +46,7 @@ roleRef:
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: openshift-csi-snapshot-controller
namespace: openshift-cluster-storage-operator
name: csi-snapshot-controller-leaderelection
rules:
- apiGroups: ["coordination.k8s.io"]
Expand All @@ -58,11 +58,11 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-snapshot-controller-leaderelection
namespace: openshift-csi-snapshot-controller
namespace: openshift-cluster-storage-operator
subjects:
- kind: ServiceAccount
name: csi-snapshot-controller
namespace: openshift-csi-snapshot-controller
namespace: openshift-cluster-storage-operator
roleRef:
kind: Role
name: csi-snapshot-controller-leaderelection
Expand Down
4 changes: 2 additions & 2 deletions manifests/05_operator_rbac.yaml
Expand Up @@ -2,14 +2,14 @@ kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-snapshot-controller-operator-role
namespace: openshift-csi-snapshot-controller-operator
namespace: openshift-cluster-storage-operator
labels:
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
subjects:
- kind: ServiceAccount
name: csi-snapshot-controller-operator
namespace: openshift-csi-snapshot-controller-operator
namespace: openshift-cluster-storage-operator
roleRef:
kind: ClusterRole
name: cluster-admin
4 changes: 2 additions & 2 deletions manifests/07_deployment.yaml
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: openshift-csi-snapshot-controller-operator
namespace: openshift-cluster-storage-operator
name: csi-snapshot-controller-operator
labels:
app: csi-snapshot-controller-operator
Expand Down Expand Up @@ -48,7 +48,7 @@ spec:
- name: config
configMap:
defaultMode: 440
name: openshift-csi-snapshot-controller-operator-config
name: csi-snapshot-controller-operator-config
priorityClassName: "system-cluster-critical"
tolerations:
- key: "node.kubernetes.io/unreachable"
Expand Down
2 changes: 1 addition & 1 deletion manifests/08_clusteroperator.yaml
Expand Up @@ -10,4 +10,4 @@ status:
version: "0.0.1-snapshot"
- name: csi-snapshot-controller
version: "0.0.1-snapshot"
spec: {}
spec: {}
2 changes: 1 addition & 1 deletion pkg/generated/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/operator/operator.go
Expand Up @@ -31,8 +31,8 @@ var deploymentVersionHashKey = operatorv1.GroupName + "/rvs-hash"

const (
targetName = "csi-snapshot-controller"
targetNamespace = "openshift-csi-snapshot-controller"
operatorNamespace = "openshift-csi-snapshot-controller-operator"
targetNamespace = "openshift-cluster-storage-operator"
operatorNamespace = "openshift-cluster-storage-operator"
globalConfigName = "cluster"

operatorVersionEnvName = "OPERATOR_IMAGE_VERSION"
Expand Down

0 comments on commit 4492120

Please sign in to comment.