Skip to content

Commit

Permalink
fix: wrong deployments (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Mar 19, 2024
1 parent fff4912 commit f0a7490
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 12 deletions.
2 changes: 1 addition & 1 deletion helm-charts/mend-renovate-ce/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: mend-renovate-ce
version: 6.11.0
version: 6.11.1
appVersion: 6.11.0
description: Mend Renovate Community Edition
home: https://github.com/mend/renovate-ce-ee
Expand Down
12 changes: 6 additions & 6 deletions helm-charts/mend-renovate-ce/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ spec:
- name: MEND_RNV_BITBUCKET_PAT
valueFrom:
secretKeyRef:
name: {{ include "mend-renovate.server-secret-name" . }}
name: {{ include "mend-renovate.secret-name" . }}
key: mendRnvBitbucketPat
optional: true
{{- end }}
Expand All @@ -122,7 +122,7 @@ spec:
- name: PGPASSWORD
valueFrom:
secretKeyRef:
name: {{ include "mend-renovate.server-secret-name" . }}
name: {{ include "mend-renovate.secret-name" . }}
key: pgPassword
optional: true
{{- end }}
Expand All @@ -131,7 +131,7 @@ spec:
- name: MEND_RNV_ADMIN_TOKEN
valueFrom:
secretKeyRef:
name: {{ include "mend-renovate.server-secret-name" . }}
name: {{ include "mend-renovate.secret-name" . }}
key: mendRnvAdminToken
optional: true
{{- end }}
Expand Down Expand Up @@ -262,10 +262,10 @@ spec:
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- if $.Values.imagePullSecrets }}
imagePullSecrets:
- name: {{ $.Values.imagePullSecrets }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
- name: {{ .Values.imagePullSecrets }}
{{- end }}
volumes:
- name: {{ .Release.Name }}-config-js-volume
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/mend-renovate-ee/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: mend-renovate-enterprise-edition
version: 0.6.0
version: 0.7.0
appVersion: 6.11.0
description: Mend Renovate Enterprise Edition
home: https://github.com/mend/renovate-ce-ee
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/mend-renovate-ee/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
- name: {{ .Chart.Name }}-server
image: "{{ .Values.renovateServer.image.repository }}:{{ .Values.renovateServer.image.tag }}"
imagePullPolicy: {{ .Values.renovateServer.image.pullPolicy }}
{{- with .Values.containerSecurityContext }}
{{- with .Values.renovateServer.containerSecurityContext }}
securityContext: {{- toYaml . | nindent 12 }}
{{- end }}
env:
Expand Down Expand Up @@ -224,11 +224,11 @@ spec:
{{- with .Values.renovateServer.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.renovateServer.imagePullSecrets }}
imagePullSecrets:
- name: .Values.renovateServer.imagePullSecrets
{{- end }}
{{- end }}
volumes:
- name: {{ .Release.Name }}-database-volume
{{- if .Values.dataPersistence.enabled }}
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/mend-renovate-ee/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
- name: {{ .Chart.Name }}-worker
image: "{{ .Values.renovateWorker.image.repository }}:{{ .Values.renovateWorker.image.tag }}"
imagePullPolicy: {{ .Values.renovateWorker.image.pullPolicy }}
{{- with .Values.containerSecurityContext }}
{{- with .Values.renovateServer.containerSecurityContext }}
securityContext: {{- toYaml . | nindent 12 }}
{{- end }}
env:
Expand Down Expand Up @@ -124,11 +124,11 @@ spec:
{{- with .Values.renovateWorker.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.renovateWorker.imagePullSecrets }}
imagePullSecrets:
- name: .Values.renovateWorker.imagePullSecrets
{{- end }}
{{- end }}
volumes:
- name: {{ .Release.Name }}-config-js-volume
configMap:
Expand Down
13 changes: 13 additions & 0 deletions helm-charts/mend-renovate-ee/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,19 @@ renovateWorker:

affinity: {}


podSecurityContext: {}
# runAsNonRoot: true
# seccompProfile:
# type: RuntimeDefault

containerSecurityContext: {}
# allowPrivilegeEscalation: false
# readOnlyRootFilesystem: true
# capabilities:
# drop:
# - ALL

# name of the image pull secret
imagePullSecrets: ""

Expand Down

0 comments on commit f0a7490

Please sign in to comment.