# Helm chart psmdb-operator 1.13.0 - Not aligned with the rest of 1.13.0

**URL:** <https://forums.percona.com/t/helm-chart-psmdb-operator-1-13-0-not-aligned-with-the-rest-of-1-13-0/17675>\
**Category:** Percona Operator for MongoDB\
**Created:** [September 26, 2022, 4:15pm UTC](https://forums.percona.com/t/helm-chart-psmdb-operator-1-13-0-not-aligned-with-the-rest-of-1-13-0/17675 "2022-09-26T16:15:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ORich](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/orich/32/7918_2.png) [@ORich](https://forums.percona.com/u/ORich)\
**Post date:** [September 26, 2022, 4:15pm UTC](https://forums.percona.com/t/helm-chart-psmdb-operator-1-13-0-not-aligned-with-the-rest-of-1-13-0/17675/1 "2022-09-26T16:15:47Z")

</div>

Chart 1.13.0 looks not supporting cluster wide deployment as well as Deployment rendered by chart is missing here under env variables

```auto
env:
            - name: LOG_STRUCTURED
              value: 'false'
             - name: DISABLE_TELEMETRY
               value: "false"

```

---

<div class="post-metadata">

**Author:** ![ORich](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/orich/32/7918_2.png) [@ORich](https://forums.percona.com/u/ORich)\
**Post date:** [September 27, 2022, 8:33am UTC](https://forums.percona.com/t/helm-chart-psmdb-operator-1-13-0-not-aligned-with-the-rest-of-1-13-0/17675/2 "2022-09-27T08:33:18Z")

</div>

About cluster-wide mode and according to [Percona doc](https://docs.percona.com/percona-operator-for-mongodb/cluster-wide.html):

> `WATCH_NAMESPACE` key-value pair in the `env` section should have `value` equal to a comma-separated list of the namespaces to be watched by the Operator, _and_ the namespace in which the Operator resides ( **or just a blank string to make the Operator deal with _all namespaces_ in a Kubernetes cluster** ).

On the other side, from Helm Chart comments:

> set if you want to specify a namespace to watch  
> defaults to `.Release.namespace` if left blank  
> watchNamespace:

---

<div class="post-metadata">

**Author:** ![ORich](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/orich/32/7918_2.png) [@ORich](https://forums.percona.com/u/ORich)\
**Post date:** [September 27, 2022, 8:47am UTC](https://forums.percona.com/t/helm-chart-psmdb-operator-1-13-0-not-aligned-with-the-rest-of-1-13-0/17675/3 "2022-09-27T08:47:40Z")

</div>

Here is another major discrepancy: percona/psmdb-operator templates/role-binding.yaml does not manage ClusterRoleBinding but only RoleBinding

```auto
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: service-account-{{ include "psmdb-operator.fullname" . }}
  {{- if .Values.watchNamespace }}
  namespace: {{ .Values.watchNamespace }}
  {{- end }}
  labels:
{{ include "psmdb-operator.labels" . | indent 4 }}
subjects:
- kind: ServiceAccount
  name: {{ include "psmdb-operator.fullname" . }}
  {{- if .Values.watchNamespace }}
  namespace: {{ .Release.Namespace }}
  {{- end }}
roleRef:
  {{- if .Values.watchNamespace }}
  kind: ClusterRole
  {{- else }}
  kind: Role
  {{- end }}
  name: {{ include "psmdb-operator.fullname" . }}
  apiGroup: rbac.authorization.k8s.io

```

But cw-rbac.yaml does

```auto
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: service-account-percona-server-mongodb-operator
subjects:
- kind: ServiceAccount
  name: percona-server-mongodb-operator
  namespace: "psmdb-operator"
roleRef:
  kind: ClusterRole
  name: percona-server-mongodb-operator
  apiGroup: rbac.authorization.k8s.i

```

---

<div class="post-metadata">

**Author:** ![Ivan\_Pylypenko](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_pylypenko/32/2452_2.png) [@Ivan\_Pylypenko](https://forums.percona.com/u/Ivan_Pylypenko)\
**Post date:** [September 28, 2022, 6:51pm UTC](https://forums.percona.com/t/helm-chart-psmdb-operator-1-13-0-not-aligned-with-the-rest-of-1-13-0/17675/4 "2022-09-28T18:51:00Z")

</div>

Hi

Thank you for the detailed report. We preparing the necessary changes to the already published chart.  
Please feel free your comments [here](https://github.com/percona/percona-helm-charts/pull/174)
