Skip to content

Commit

Permalink
add support for namespaces changing across all resources
Browse files Browse the repository at this point in the history
  • Loading branch information
tekno45 committed Jan 5, 2024
1 parent efd1cb1 commit 78fe301
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/urunner/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: cm-urunner
labels:
{{- include "urunner.labels" . | nindent 4 }}
namespace: {{ .Release.Namespace | quote }}
data:
URUNNER_CONF_DOCKER_API_VERIFY: {{ .Values.config.URUNNER_CONF_DOCKER_API_VERIFY | quote }}
URUNNER_CONF_LOG_LEVEL: {{ .Values.config.URUNNER_CONF_LOG_LEVEL }}
Expand Down
1 change: 1 addition & 0 deletions helm/urunner/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: {{ include "urunner.fullname" . }}
labels:
{{- include "urunner.labels" . | nindent 4 }}
namespace: {{ .Release.Namespace | quote }}
spec:
selector:
matchLabels:
Expand Down
1 change: 1 addition & 0 deletions helm/urunner/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: secret-urunner
namespace: {{ .Release.Namespace | quote }}
type: Opaque
stringData:
{{- if .Values.secret.harbor.username }}
Expand Down
3 changes: 3 additions & 0 deletions helm/urunner/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "urunner.serviceAccountName" . }}
namespace: {{ .Release.Namespace | quote }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "urunner.serviceAccountName" . }}
namespace: {{ .Release.Namespace | quote }}
labels:
{{- include "urunner.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
Expand All @@ -28,6 +30,7 @@ kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "urunner.clusterRoleName" . }}
namespace: {{ .Release.Namespace | quote }}
rules:
- apiGroups: ["*"]
resources: ["*"]
Expand Down

0 comments on commit 78fe301

Please sign in to comment.