Skip to content

Commit

Permalink
Merge pull request rook#13300 from rook/mergify/bp/release-1.12/pr-13288
Browse files Browse the repository at this point in the history
helm: Add namespace to all resource templates (backport rook#13288)
  • Loading branch information
mergify[bot] authored Nov 30, 2023
2 parents d6c2534 + 55c2089 commit 79018ae
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
name: {{ $blockpool.name }}
namespace: {{ $root.Release.Namespace }} # namespace:cluster
spec:
{{ toYaml $blockpool.spec | indent 2 }}
---
Expand Down
1 change: 1 addition & 0 deletions deploy/charts/rook-ceph-cluster/templates/cephcluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
name: {{ default .Release.Namespace .Values.clusterName }}
namespace: {{ .Release.Namespace }} # namespace:cluster
spec:
{{- if .Values.monitoring }}
monitoring:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
name: {{ $ecblockpool.name }}
namespace: {{ $root.Release.Namespace }} # namespace:cluster
spec:
{{ toYaml $ecblockpool.spec | indent 2 }}
{{ end }}
Expand Down Expand Up @@ -43,4 +44,3 @@ parameters:
allowVolumeExpansion: {{ $cephEcStorage.allowVolumeExpansion }}
reclaimPolicy: {{ $cephEcStorage.reclaimPolicy }}
{{ end }}

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ apiVersion: ceph.rook.io/v1
kind: CephFilesystem
metadata:
name: {{ $filesystem.name }}
namespace: {{ $root.Release.Namespace }} # namespace:cluster
spec:
{{ toYaml $filesystem.spec | indent 2 }}
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ apiVersion: {{ include "capabilities.ingress.apiVersion" $ }}
kind: Ingress
metadata:
name: {{ .name }}
namespace: {{ .Release.Namespace }} # namespace:cluster
{{- with .ingress.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ apiVersion: ceph.rook.io/v1
kind: CephObjectStore
metadata:
name: {{ $objectstore.name }}
namespace: {{ $root.Release.Namespace }} # namespace:cluster
spec:
{{ toYaml $objectstore.spec | indent 2 }}
---
Expand Down
1 change: 1 addition & 0 deletions deploy/charts/rook-ceph-cluster/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kind: ConfigMap
apiVersion: v1
metadata:
name: rook-config-override
namespace: {{ .Release.Namespace }} # namespace:cluster
data:
config: |
{{ .Values.configOverride | nindent 4 }}
Expand Down
1 change: 1 addition & 0 deletions deploy/charts/rook-ceph-cluster/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: rook-ceph-tools
namespace: {{ .Release.Namespace }} # namespace:cluster
labels:
app: rook-ceph-tools
spec:
Expand Down
1 change: 1 addition & 0 deletions deploy/charts/rook-ceph-cluster/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: {{ include "capabilities.ingress.apiVersion" . }}
kind: Ingress
metadata:
name: {{ template "clusterName" . }}-dashboard
namespace: {{ .Release.Namespace }} # namespace:cluster
{{- if .Values.ingress.dashboard.annotations }}
annotations: {{- toYaml .Values.ingress.dashboard.annotations | nindent 4 }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions deploy/charts/rook-ceph/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kind: ConfigMap
apiVersion: v1
metadata:
name: rook-ceph-operator-config
namespace: {{ .Release.Namespace }} # namespace:operator
data:
ROOK_LOG_LEVEL: {{ .Values.logLevel | quote }}
ROOK_CEPH_COMMANDS_TIMEOUT_SECONDS: {{ .Values.cephCommandsTimeoutSeconds | quote }}
Expand Down
1 change: 1 addition & 0 deletions deploy/charts/rook-ceph/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: rook-ceph-operator
namespace: {{ .Release.Namespace }} # namespace:operator
labels:
operator: rook
storage-backend: ceph
Expand Down

0 comments on commit 79018ae

Please sign in to comment.