Skip to content

Commit

Permalink
snapshot-controller: explicitly set resource namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wanzenböck <moritz.wanzenboeck@linbit.com>
  • Loading branch information
WanzenBug committed Jan 16, 2025
1 parent caf8780 commit 2e79317
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/snapshot-controller/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
type: application
name: snapshot-controller
version: 4.0.0
version: 4.0.1
appVersion: "v8.2.0"
kubeVersion: ">= 1.25.0-0"
icon: https://raw.githubusercontent.com/piraeusdatastore/piraeus/master/artwork/sandbox-artwork/icon/color.svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "snapshot-controller.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "snapshot-controller.labels" . | nindent 4 }}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "snapshot-controller.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "snapshot-controller.labels" . | nindent 4 }}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "snapshot-controller.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "snapshot-controller.labels" . | nindent 4 }}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "snapshot-controller.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "snapshot-controller.labels" . | nindent 4 }}
{{- end }}
Expand Down Expand Up @@ -76,6 +77,7 @@ kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "snapshot-controller.fullname" . }}
namespace: {{ .Release.Namespace }}
rules:
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
Expand All @@ -85,6 +87,7 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "snapshot-controller.fullname" . }}
namespace: {{ .Release.Namespace }}
subjects:
- kind: ServiceAccount
name: {{ include "snapshot-controller.serviceAccountName" . }}
Expand Down
1 change: 1 addition & 0 deletions charts/snapshot-controller/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "snapshot-controller.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "snapshot-controller.labels" . | nindent 4 }}
spec:
Expand Down

0 comments on commit 2e79317

Please sign in to comment.