Skip to content

Commit adfd1d5

Browse files
feat(helm): add api v1 flags to ce chart
1 parent b3c3978 commit adfd1d5

File tree

4 files changed

+57
-17
lines changed

4 files changed

+57
-17
lines changed

helm-charts/mend-renovate-ce/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: mend-renovate-ce
3-
version: 10.5.0
4-
appVersion: 10.5.0
3+
version: 10.6.0
4+
appVersion: 10.6.0
55
description: Mend Renovate Community Edition
66
home: https://github.com/mend/renovate-ce-ee
77
sources:

helm-charts/mend-renovate-ce/templates/deployment.yaml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ spec:
175175
key: mendRnvWebhookSecret
176176
optional: true
177177
{{- end }}
178+
{{- if .Values.renovate.mendRnvWebhookSkipDisabledRepoJobs }}
179+
- name: MEND_RNV_WEBHOOK_DISABLED_REPOS_HANDLING
180+
value: {{ .Values.renovate.mendRnvWebhookSkipDisabledRepoJobs | quote }}
181+
{{- end }}
178182
{{- if .Values.renovate.mendRnvCronJobSchedulerAll }}
179183
- name: MEND_RNV_CRON_JOB_SCHEDULER_ALL
180184
value: {{ .Values.renovate.mendRnvCronJobSchedulerAll | quote }}
@@ -239,9 +243,9 @@ spec:
239243
- name: LOG_FORMAT
240244
value: {{ .Values.renovate.logFormat | quote }}
241245
{{- end }}
242-
{{- if .Values.renovate.mendRnvAdminApiEnabled }}
243-
- name: MEND_RNV_ADMIN_API_ENABLED
244-
value: {{ .Values.renovate.mendRnvAdminApiEnabled | quote }}
246+
{{- if .Values.renovate.mendRnvPrometheusMetricsEnabled }}
247+
- name: MEND_RNV_PROMETHEUS_METRICS_ENABLED
248+
value: {{ .Values.renovate.mendRnvPrometheusMetricsEnabled | quote }}
245249
{{- end }}
246250
{{- if or .Values.renovate.mendRnvServerApiSecret .Values.renovate.existingSecret }}
247251
- name: MEND_RNV_SERVER_API_SECRET
@@ -251,6 +255,22 @@ spec:
251255
key: mendRnvServerApiSecret
252256
optional: true
253257
{{- end }}
258+
{{- if or .Values.renovate.mendRnvApiEnabled .Values.renovate.mendRnvAdminApiEnabled }}
259+
- name: MEND_RNV_API_ENABLED
260+
value: {{ (coalesce .Values.renovate.mendRnvApiEnabled .Values.renovate.mendRnvAdminApiEnabled) | quote }}
261+
{{- end }}
262+
{{- if or .Values.renovate.mendRnvReportingApiEnabled .Values.renovate.mendRnvReportingEnabled }}
263+
- name: MEND_RNV_API_ENABLE_REPORTING
264+
value: {{ (coalesce .Values.renovate.mendRnvReportingApiEnabled .Values.renovate.mendRnvReportingEnabled) | quote }}
265+
{{- end }}
266+
{{- if .Values.renovate.mendRnvSystemApiEnabled }}
267+
- name: MEND_RNV_API_ENABLE_SYSTEM
268+
value: {{ .Values.renovate.mendRnvSystemApiEnabled | quote }}
269+
{{- end }}
270+
{{- if .Values.renovate.mendRnvJobsApiEnabled }}
271+
- name: MEND_RNV_API_ENABLE_JOBS
272+
value: {{ .Values.renovate.mendRnvJobsApiEnabled | quote }}
273+
{{- end }}
254274
{{- if .Values.renovate.mendRnvLogHistoryDir }}
255275
- name: MEND_RNV_LOG_HISTORY_DIR
256276
value: {{ .Values.renovate.mendRnvLogHistoryDir }}
@@ -291,10 +311,6 @@ spec:
291311
- name: RENOVATE_NODE_ARGS
292312
value: {{ .Values.renovate.mendRnvWorkerNodeArgs | quote }}
293313
{{- end }}
294-
{{- if .Values.renovate.mendRnvPrometheusMetricsEnabled }}
295-
- name: MEND_RNV_PROMETHEUS_METRICS_ENABLED
296-
value: {{ .Values.renovate.mendRnvPrometheusMetricsEnabled | quote }}
297-
{{- end }}
298314
{{- if .Values.renovate.mendRnvDisableGlobalAgent }}
299315
- name: MEND_RNV_DISABLE_GLOBAL_AGENT
300316
value: {{ .Values.renovate.mendRnvDisableGlobalAgent | quote }}

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

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,42 @@ renovate:
6262
# Optional: Set User Agent Mend Renovate-ce will use to query the registries, Defaults to 'mend-renovate'
6363
mendRnvUserAgent:
6464

65+
# Required if Admin APIs are enabled.
66+
mendRnvServerApiSecret:
67+
6568
# Optional: Set to 'true' to enable Admin APIs. Defaults to 'false'.
69+
#
70+
# deprecated: use mendRnvApiEnabled instead.
6671
mendRnvAdminApiEnabled:
6772

68-
# Required if Admin APIs are enabled.
69-
mendRnvServerApiSecret:
73+
# Optional: Set to 'true' to enable APIs. Defaults to 'false'.
74+
mendRnvApiEnabled:
75+
76+
# Optional: Set to 'true' to enable system APIs. Defaults to 'false'.
77+
mendRnvSystemApiEnabled:
78+
79+
# Optional: Set to 'true' to enable jobs APIs. Defaults to 'false'.
80+
mendRnvJobsApiEnabled:
81+
82+
# Optional: Set to 'true' to enable Reporting APIs. Defaults to 'false'.
83+
#
84+
# deprecated: use mendRnvReportingApiEnabled instead.
85+
mendRnvReportingEnabled:
86+
87+
# Optional: Set to 'true' to enable Reporting APIs. Defaults to 'false'.
88+
mendRnvReportingApiEnabled:
7089

7190
# Optional, defaults to 'renovate'
7291
mendRnvWebhookSecret:
7392

93+
# Optional: Controls whether to enqueue webhook based jobs for disabled repositories.
94+
# Accepted values:
95+
# "full": Always enqueue jobs.
96+
# "minimal": Don’t enqueue jobs for disabled repositories. Default.
97+
#
98+
# Note: Scheduled and API based jobs will still be triggered for these repositories.
99+
mendRnvWebhookSkipDisabledRepoJobs:
100+
74101
# Personal Access Token for github.com (used for retrieving changelogs)
75102
githubComToken:
76103

@@ -101,9 +128,6 @@ renovate:
101128
# GitHub users only: can be set to 'batch'
102129
mendRnvSyncMode:
103130

104-
# Optional: Set to 'true' to enable Reporting APIs. Defaults to 'false'.
105-
mendRnvReportingEnabled:
106-
107131
# Optional. Format: s3://bucket/dir1/dir2. Defines S3 storage location for saving job logs
108132
mendRnvLogHistoryS3:
109133

helm-charts/mend-renovate-ee/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@ renovateWorker:
404404
405405
disableCacheVolume: false
406406

407-
# # Npmrc file. Will be mounted as a secret
408-
# npmrc: |
409-
# //registry.npmjs.org/:_authToken=xxxxxx
407+
# # Npmrc file. Will be mounted as a secret
408+
# npmrc: |
409+
# //registry.npmjs.org/:_authToken=xxxxxx
410410

411411
# Existing secret with npmrc configuration with key:
412412
# .npmrc:

0 commit comments

Comments
 (0)