Skip to content

Commit

Permalink
Merge pull request #219 from percona/CLOUD-767-namespace-psmdb
Browse files Browse the repository at this point in the history
CLOUD-767 - include Release.Namespace in metadata objects
  • Loading branch information
tplavcic authored Sep 8, 2023
2 parents 9945951 + 4f7a533 commit 7c312ed
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions charts/psmdb-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ appVersion: "1.14.0"
description: A Helm chart for installing Percona Server MongoDB Cluster Databases using the PSMDB Operator.
name: psmdb-db
home: https://www.percona.com/doc/kubernetes-operator-for-psmongodb/index.html
version: 1.14.3
version: 1.14.4
maintainers:
- name: cap1984
email: [email protected]
- name: tplavcic
email: [email protected]
- name: nmarukovich
email: [email protected]
1 change: 1 addition & 0 deletions charts/psmdb-db/templates/cluster-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ include "psmdb-database.fullname" . }}-secrets
namespace: {{ .Release.Namespace }}
labels:
{{ include "psmdb-database.labels" . | indent 4 }}
type: Opaque
Expand Down
1 change: 1 addition & 0 deletions charts/psmdb-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"psmdb.percona.com/v1","kind":"PerconaServerMongoDB"}
name: {{ include "psmdb-database.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{ include "psmdb-database.labels" . | indent 4 }}
finalizers:
Expand Down
6 changes: 3 additions & 3 deletions charts/psmdb-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ appVersion: "1.14.0"
description: A Helm chart for deploying the Percona Operator for MongoDB
name: psmdb-operator
home: https://docs.percona.com/percona-operator-for-mongodb/
version: 1.14.2
version: 1.14.3
maintainers:
- name: cap1984
email: [email protected]
- name: tplavcic
email: [email protected]
- name: nmarukovich
email: [email protected]
- name: spron-in
email: [email protected]
1 change: 1 addition & 0 deletions charts/psmdb-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "psmdb-operator.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{ include "psmdb-operator.labels" . | indent 4 }}
spec:
Expand Down
3 changes: 3 additions & 0 deletions charts/psmdb-operator/templates/role-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "psmdb-operator.fullname" . }}
namespace: {{ .Release.Namespace }}
---
{{- end }}
{{- if .Values.rbac.create }}
Expand All @@ -16,6 +17,8 @@ metadata:
name: service-account-{{ include "psmdb-operator.fullname" . }}
{{- if .Values.watchNamespace }}
namespace: {{ .Values.watchNamespace }}
{{- else if not .Values.watchAllNamespaces }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
{{ include "psmdb-operator.labels" . | indent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/psmdb-operator/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "psmdb-operator.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{ include "psmdb-operator.labels" . | indent 4 }}
rules:
Expand Down

0 comments on commit 7c312ed

Please sign in to comment.