Skip to content

Commit

Permalink
V7 charts update (#483)
Browse files Browse the repository at this point in the history
* Add v7 configuration options

* Add v7 configuration options to CE

* add MEND_RNV_WORKER_CLEANUP_DIRS

* fix docs

---------

Co-authored-by: nabeelsaabna <[email protected]>
  • Loading branch information
nabeelsaabna and nabeelsaabna authored Apr 3, 2024
1 parent a68cbbb commit ca050e7
Show file tree
Hide file tree
Showing 9 changed files with 119 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/configuration-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Values:
- (cron schedule) - all other values will be treated as a cron time. If it is invalid, the service will shut down. Otherwise, a cron scheduler will run at the specified intervals.<br>
e.g. `MEND_RNV_WORKER_CLEANUP="0 0 * * *"` will perform cleanup daily at midnight.

**`MEND_RNV_WORKER_CLEANUP_DIRS`**: [Enterprise Only. From v7.0.0] Optional. Comma separated list of directories to clean during Worker cleanup (see `MEND_RNV_WORKER_CLEANUP`)
**`MEND_RNV_WORKER_CLEANUP_DIRS`**: [From v7.0.0] Optional. Comma separated list of directories to clean during Worker cleanup (see `MEND_RNV_WORKER_CLEANUP`)

By default, all files within these folders that were created _after_ the worker/CE booted will be removed.
```
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/mend-renovate-ce/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: mend-renovate-ce
version: 6.11.1
appVersion: 6.11.0
version: 7.0.0
appVersion: 7.0.0
description: Mend Renovate Community Edition
home: https://github.com/mend/renovate-ce-ee
sources:
Expand Down
28 changes: 28 additions & 0 deletions helm-charts/mend-renovate-ce/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,22 @@ spec:
- name: MEND_RNV_CRON_APP_SYNC
value: {{ .Values.renovate.mendRnvCronAppSync | quote }}
{{- end }}
{{- if .Values.renovate.mendRnvSyncOnStartup }}
- name: MEND_RNV_SYNC_ON_STARTUP
value: {{ .Values.renovate.mendRnvSyncOnStartup | quote }}
{{- end }}
{{- if .Values.renovate.mendRnvSyncMode }}
- name: MEND_RNV_SYNC_MODE
value: {{ .Values.renovate.mendRnvSyncMode | quote }}
{{- end }}
{{- if .Values.renovate.mendRnvReportingEnabled }}
- name: MEND_RNV_REPORTING_ENABLED
value: {{ .Values.renovate.mendRnvReportingEnabled | quote }}
{{- end }}
{{- if .Values.renovate.mendRnvLogHistoryS3 }}
- name: MEND_RNV_LOG_HISTORY_S3
value: {{ .Values.renovate.mendRnvLogHistoryS3 | quote }}
{{- end }}
{{- if .Values.renovate.mendRnvAutoDiscoverFilter }}
- name: MEND_RNV_AUTODISCOVER_FILTER
value: {{ .Values.renovate.mendRnvAutoDiscoverFilter | quote }}
Expand Down Expand Up @@ -231,6 +247,18 @@ spec:
- name: MEND_RNV_WORKER_EXECUTION_TIMEOUT
value: {{ .Values.renovate.mendRnvWorkerExecutionTimeout | quote }}
{{- end }}
{{- if .Values.renovate.mendRnvWorkerCleanup }}
- name: MEND_RNV_WORKER_CLEANUP
value: {{ .Values.renovate.mendRnvWorkerCleanup | quote }}
{{- end }}
{{- if .Values.renovate.mendRnvWorkerCleanupDirs }}
- name: MEND_RNV_WORKER_CLEANUP_DIRS
value: {{ .Values.renovate.mendRnvWorkerCleanupDirs | quote }}
{{- end }}
{{- if .Values.renovate.mendRnvWorkerNodeArgs }}
- name: RENOVATE_NODE_ARGS
value: {{ .Values.renovate.mendRnvWorkerNodeArgs | quote }}
{{- end }}
ports:
- name: http
containerPort: 8080
Expand Down
25 changes: 24 additions & 1 deletion helm-charts/mend-renovate-ce/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
image:
repository: ghcr.io/mend/renovate-ce
tag: 6.11.0-full
tag: 7.0.0-full
pullPolicy: IfNotPresent

nameOverride: ""
Expand Down Expand Up @@ -89,6 +89,19 @@ renovate:
# Optional, defaults to '0 0,4,8,12,16,20 * * *' (every 4 hours)
mendRnvCronAppSync:

# defaults to 'true'
mendRnvSyncOnStartup:

# defaults to 'bulk'
# GitHub users only: can be set to 'batch'
mendRnvSyncMode:

# Optional: Set to 'true' to enable Reporting APIs. Defaults to 'false'.
mendRnvReportingEnabled:

# Optional. Format: s3://bucket/dir1/dir2. Defines S3 storage location for saving job logs
mendRnvLogHistoryS3:

# 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'.
Expand All @@ -112,6 +125,16 @@ renovate:
# Optional: Sets the maximum execution duration of a Renovate CLI scan in minutes. Defaults to 60.
mendRnvWorkerExecutionTimeout:

# optional: valid values are 'off', 'always', a cron (example: '0 0 * * *' daily at midnight)
mendRnvWorkerCleanup: off

# defaults to: '/opt/containerbase, /tmp/renovate/cache, /tmp/renovate/repos, /home/ubuntu'
# Note: setting this value will override the default value
mendRnvWorkerCleanupDirs:

# optional: mainly added to allow support for the '--security-revert=CVE-2023-46809' value
mendRnvWorkerNodeArgs:

# Self-hosted renovate configuration file, will be mounted as a config map
config: |
module.exports = {
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/mend-renovate-ee/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: mend-renovate-enterprise-edition
version: 0.7.0
appVersion: 6.11.0
version: 1.0.0
appVersion: 7.0.0
description: Mend Renovate Enterprise Edition
home: https://github.com/mend/renovate-ce-ee
sources:
Expand Down
Empty file.
22 changes: 21 additions & 1 deletion helm-charts/mend-renovate-ee/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ spec:
- name: PGHOST
value: {{ .Values.postgresql.host | quote }}
{{- end }}
{{- if or .Values.postgresql.enabled .Values.renovate.existingSecret }}
{{- if or .Values.postgresql.enabled .Values.renovateServer.existingSecret }}
- name: PGPASSWORD
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -158,6 +158,26 @@ spec:
- name: MEND_RNV_CRON_APP_SYNC
value: {{ .Values.renovateServer.mendRnvCronAppSync | quote }}
{{- end }}
{{- if .Values.renovateServer.mendRnvSyncOnStartup }}
- name: MEND_RNV_SYNC_ON_STARTUP
value: {{ .Values.renovateServer.mendRnvSyncOnStartup | quote }}
{{- end }}
{{- if .Values.renovateServer.mendRnvSyncMode }}
- name: MEND_RNV_SYNC_MODE
value: {{ .Values.renovateServer.mendRnvSyncMode | quote }}
{{- end }}
{{- if .Values.renovateServer.mendRnvMergeConfidenceToken }}
- name: MEND_RNV_MC_TOKEN
value: {{ .Values.renovateServer.mendRnvMergeConfidenceToken | quote }}
{{- end }}
{{- if .Values.renovateServer.mendRnvReportingEnabled }}
- name: MEND_RNV_REPORTING_ENABLED
value: {{ .Values.renovateServer.mendRnvReportingEnabled | quote }}
{{- end }}
{{- if .Values.renovateServer.mendRnvLogHistoryS3 }}
- name: MEND_RNV_LOG_HISTORY_S3
value: {{ .Values.renovateServer.mendRnvLogHistoryS3 | quote }}
{{- end }}
{{- if .Values.renovateServer.mendRnvAutoDiscoverFilter }}
- name: MEND_RNV_AUTODISCOVER_FILTER
value: {{ .Values.renovateServer.mendRnvAutoDiscoverFilter | quote }}
Expand Down
13 changes: 13 additions & 0 deletions helm-charts/mend-renovate-ee/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,19 @@ spec:
name: {{ include "mend-renovate.license-secret-name" . }}
key: mendRnvLicenseKey
{{- end }}
{{- if .Values.renovateWorker.mendRnvWorkerCleanup }}
- name: MEND_RNV_WORKER_CLEANUP
value: {{ .Values.renovateWorker.mendRnvWorkerCleanup | quote }}
{{- end }}
{{- if .Values.renovateWorker.mendRnvWorkerCleanupDirs }}
- name: MEND_RNV_WORKER_CLEANUP_DIRS
value: {{ .Values.renovateWorker.mendRnvWorkerCleanupDirs | quote }}
{{- end }}
{{- if .Values.renovateWorker.mendRnvWorkerNodeArgs }}
- name: RENOVATE_NODE_ARGS
value: {{ .Values.renovateWorker.mendRnvWorkerNodeArgs | quote }}
{{- end }}

{{- if or .Values.renovateWorker.githubComToken .Values.renovateWorker.existingSecret }}
- name: GITHUB_COM_TOKEN
valueFrom:
Expand Down
30 changes: 28 additions & 2 deletions helm-charts/mend-renovate-ee/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ postgresql:
renovateServer:
image:
repository: ghcr.io/mend/renovate-ee-server
tag: 6.11.0
tag: 7.0.0
pullPolicy: IfNotPresent

# Number of renovate-ee-server (for SQLite only 1 replica is allowed)
Expand Down Expand Up @@ -98,6 +98,22 @@ renovateServer:
# Optional, defaults to '0 0,4,8,12,16,20 * * *' (every 4 hours)
mendRnvCronAppSync:

# defaults to 'true'
mendRnvSyncOnStartup:

# defaults to 'bulk'
# GitHub users only: can be set to 'batch'
mendRnvSyncMode:

# Optional: Set to 'auto' to enable automatic token generation. Defaults to off
mendRnvMergeConfidenceToken:

# Optional: Set to 'true' to enable Reporting APIs. Defaults to 'false'.
mendRnvReportingEnabled:

# Optional. Format: s3://bucket/dir1/dir2. Defines S3 storage location for saving job logs
mendRnvLogHistoryS3:

# Optional
mendRnvAutoDiscoverFilter:

Expand Down Expand Up @@ -190,12 +206,22 @@ renovateServer:
renovateWorker:
image:
repository: ghcr.io/mend/renovate-ee-worker
tag: 6.11.0-full
tag: 7.0.0-full
pullPolicy: IfNotPresent

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

# optional: valid values are 'off', 'always', a cron (example: '0 0 * * *' daily at midnight)
mendRnvWorkerCleanup: off

# defaults to: '/opt/containerbase, /tmp/renovate/cache, /tmp/renovate/repos, /home/ubuntu'
# Note: setting this value will override the default value
mendRnvWorkerCleanupDirs:

# optional: mainly added to allow support for the '--security-revert=CVE-2023-46809' value
mendRnvWorkerNodeArgs:

# Additional worker env vars
extraEnvVars: []

Expand Down

0 comments on commit ca050e7

Please sign in to comment.