Skip to content

Commit

Permalink
chore(helm): update charts (#399)
Browse files Browse the repository at this point in the history
* update values.yaml

* Update helm-charts/mend-renovate-ce/values.yaml

Co-authored-by: Nabeel Saabna <[email protected]>

---------

Co-authored-by: Nabeel Saabna <[email protected]>
  • Loading branch information
Gabriel-Ladzaretti and nabeelsaabna authored Nov 27, 2023
1 parent 6e78339 commit acccbae
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 5 deletions.
18 changes: 17 additions & 1 deletion helm-charts/mend-renovate-ce/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,22 @@ spec:
key: mendRnvServerApiSecret
optional: true
{{- end }}
{{- if .Values.renovate.mendRnvLogHistoryDir }}
- name: MEND_RNV_LOG_HISTORY_DIR
value: {{ .Values.renovate.mendRnvLogHistoryDir }}
{{- end }}
{{- if .Values.renovate.mendRnvLogHistoryTTLDays }}
- name: MEND_RNV_LOG_HISTORY_TTL_DAYS
value: {{ .Values.renovate.mendRnvLogHistoryTTLDays | quote }}
{{- end }}
{{- if .Values.renovate.mendRnvLogHistoryCleanupCron }}
- name: MEND_RNV_LOG_HISTORY_CLEANUP_CRON
value: {{ .Values.renovate.mendRnvLogHistoryCleanupCron }}
{{- end }}
{{- if .Values.renovate.mendRnvWorkerExecutionTimeout }}
- name: MEND_RNV_WORKER_EXECUTION_TIMEOUT
value: {{ .Values.renovate.mendRnvWorkerExecutionTimeout | quote }}
{{- end }}
ports:
- name: http
containerPort: 8080
Expand Down Expand Up @@ -206,7 +222,7 @@ spec:
persistentVolumeClaim:
claimName: {{ .Values.cachePersistence.existingClaim | default (printf "%s-cache" (include "mend-renovate.fullname" .)) }}
{{- else }}
emptyDir: {}
emptyDir: { }
{{- end }}
{{- if ne (len .Values.extraVolumes) 0 }}
{{ toYaml .Values.extraVolumes | nindent 8 | trim }}
Expand Down
23 changes: 20 additions & 3 deletions helm-charts/mend-renovate-ce/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,30 @@ renovate:
# Optional, defaults to '0 0,4,8,12,16,20 * * *' (every 4 hours)
mendRnvCronAppSync:

# Optional
# Optional, a string of a comma separated values. (e.g. `org1/*, org2/test*, org2/test*`). Same behavior as Renovate cli 'autodiscoverFilter' feature
# Warning: The Renovate CLI 'autodiscover' configuration option is disabled.
# Repository filtering should solely rely on server-side filtering using 'mendRnvAutoDiscoverFilter'.
mendRnvAutoDiscoverFilter:

# Optional, defaults to 'discovered'
# Optional. Accepted values: 'enabled', 'discovered', and 'disabled'. Defaults to 'discovered'.
mendRnvEnqueueJobsOnStartup:

# Self hosted renovate configuration file, will be mounted as a config map
# Optional. Specify a directory path to save Renovate job log files.
# It is recommended to use an external volume to preserve history.
mendRnvLogHistoryDir:

# Optional: The number of days to save log files. Defaults to 30.
mendRnvLogHistoryTTLDays:

# Optional: Specifies a 5-part cron schedule. Defaults to `0 0 * * *` (every midnight).
# This cron job cleans up log history in the directory defined by `mendRnvLogHistoryDir`.
# It deletes any log file that exceeds the `mendRnvLogHistoryTTLDays` value.
mendRnvLogHistoryCleanupCron:

# Optional: Sets the maximum execution duration of a Renovate CLI scan in minutes. Defaults to 60.
mendRnvWorkerExecutionTimeout:

# Self-hosted renovate configuration file, will be mounted as a config map
config: |
module.exports = {
// Enter self-hosted configuration options here.
Expand Down
18 changes: 17 additions & 1 deletion helm-charts/mend-renovate-ee/templates/deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
{{- with .Values.renovateWorker.extraEnvVars }}
{{- toYaml . | nindent 12 }}
{{- end }}
- name: MEND_RNV_SERVER_HOSTNAME
- name: MEND_RNV_SERVER_HOSTNAME
value: "http://{{ include "mend-renovate.fullname" . }}"
{{- if or .Values.renovateServer.mendRnvServerApiSecret .Values.renovateServer.existingSecret }}
- name: MEND_RNV_SERVER_API_SECRET
Expand Down Expand Up @@ -78,6 +78,22 @@ spec:
key: pipIndexUrl
optional: true
{{- end }}
{{- if .Values.renovateWorker.mendRnvLogHistoryDir }}
- name: MEND_RNV_LOG_HISTORY_DIR
value: {{ .Values.renovateWorker.mendRnvLogHistoryDir }}
{{- end }}
{{- if .Values.renovateWorker.mendRnvLogHistoryTTLDays }}
- name: MEND_RNV_LOG_HISTORY_TTL_DAYS
value: {{ .Values.renovateWorker.mendRnvLogHistoryTTLDays | quote }}
{{- end }}
{{- if .Values.renovateWorker.mendRnvLogHistoryCleanupCron }}
- name: MEND_RNV_LOG_HISTORY_CLEANUP_CRON
value: {{ .Values.renovateWorker.mendRnvLogHistoryCleanupCron }}
{{- end }}
{{- if .Values.renovateWorker.mendRnvWorkerExecutionTimeout }}
- name: MEND_RNV_WORKER_EXECUTION_TIMEOUT
value: {{ .Values.renovateWorker.mendRnvWorkerExecutionTimeout | quote }}
{{- end }}
{{- if .Values.renovateWorker.noNodeTlsVerify }}
- name: NODE_TLS_REJECT_UNAUTHORIZED
value: '0'
Expand Down
15 changes: 15 additions & 0 deletions helm-charts/mend-renovate-ee/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,21 @@ renovateWorker:
tag: 6.7.0-full
pullPolicy: IfNotPresent

# Optional. Specify a directory path to save Renovate job log files.
# It is recommended to use an external volume to preserve history.
mendRnvLogHistoryDir:

# Optional: The number of days to save log files. Defaults to 30.
mendRnvLogHistoryTTLDays:

# Optional: Specifies a 5-part cron schedule. Defaults to `0 0 * * *` (every midnight).
# This cron job cleans up log history in the directory defined by `mendRnvLogHistoryDir`.
# It deletes any log file that exceeds the `mendRnvLogHistoryTTLDays` value.
mendRnvLogHistoryCleanupCron:

# Optional: Sets the maximum execution duration of a Renovate CLI scan in minutes. Defaults to 60.
mendRnvWorkerExecutionTimeout:

# Additional worker env vars
extraEnvVars: []

Expand Down

0 comments on commit acccbae

Please sign in to comment.