Skip to content

Commit

Permalink
Merge pull request #347 from mend/deployments-update
Browse files Browse the repository at this point in the history
chore(helm): update deployment.yaml
  • Loading branch information
PhilipAbed authored Oct 4, 2023
2 parents d9ffce1 + 5477ba7 commit 8f9f19e
Showing 1 changed file with 59 additions and 27 deletions.
86 changes: 59 additions & 27 deletions helm-charts/whitesource-renovate/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,47 +38,55 @@ spec:
{{- with .Values.renovate.extraEnvVars }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.renovate.acceptWhiteSourceTos }}
- name: ACCEPT_WHITESOURCE_TOS
value: {{ .Values.renovate.acceptWhiteSourceTos | quote }}
{{- if .Values.renovate.mendRnvAcceptTos }}
- name: MEND_RNV_ACCEPT_TOS
value: {{ .Values.renovate.mendRnvAcceptTos | quote }}
{{- end }}
{{- if or .Values.renovate.licenseKey .Values.renovate.existingSecret }}
- name: LICENSE_KEY
{{- if or .Values.renovate.mendRnvLicenseKey .Values.renovate.existingSecret }}
- name: MEND_RNV_LICENSE_KEY
valueFrom:
secretKeyRef:
name: {{ include "whitesource-renovate.secret-name" . }}
key: licenseKey
key: mendRnvLicenseKey
{{- end }}
{{- if .Values.renovate.renovatePlatform }}
- name: RENOVATE_PLATFORM
value: {{ .Values.renovate.renovatePlatform | quote }}
{{- if .Values.renovate.mendRnvPlatform }}
- name: MEND_RNV_PLATFORM
value: {{ .Values.renovate.mendRnvPlatform | quote }}
{{- end }}
{{- if .Values.renovate.renovateEndpoint }}
- name: RENOVATE_ENDPOINT
value: {{ .Values.renovate.renovateEndpoint | quote }}
{{- if .Values.renovate.mendRnvEndpoint }}
- name: MEND_RNV_ENDPOINT
value: {{ .Values.renovate.mendRnvEndpoint | quote }}
{{- end }}
{{- if or .Values.renovate.renovateToken .Values.renovate.existingSecret }}
- name: RENOVATE_TOKEN
{{- if or .Values.renovate.mendRnvGitlabPat .Values.renovate.existingSecret }}
- name: MEND_RNV_GITLAB_PAT
valueFrom:
secretKeyRef:
name: {{ include "whitesource-renovate.secret-name" . }}
key: renovateToken
key: mendRnvGitlabPat
optional: true
{{- end }}
{{- if or .Values.renovate.githubAppId .Values.renovate.existingSecret }}
- name: GITHUB_APP_ID
{{- if or .Values.renovate.mendRnvGithubAppId .Values.renovate.existingSecret }}
- name: MEND_RNV_GITHUB_APP_ID
valueFrom:
secretKeyRef:
name: {{ include "whitesource-renovate.secret-name" . }}
key: githubAppId
key: mendRnvGithubAppId
optional: true
{{- end }}
{{- if or .Values.renovate.githubAppKey .Values.renovate.existingSecret }}
- name: GITHUB_APP_KEY
{{- if or .Values.renovate.mendRnvGithubAppKey .Values.renovate.existingSecret }}
- name: MEND_RNV_GITHUB_APP_KEY
valueFrom:
secretKeyRef:
name: {{ include "whitesource-renovate.secret-name" . }}
key: githubAppKey
key: mendRnvGithubAppKey
optional: true
{{- end }}
{{- if or .Values.renovate.mendRnvSqliteFilePath .Values.renovate.existingSecret }}
- name: MEND_RNV_SQLITE_FILE_PATH
valueFrom:
secretKeyRef:
name: {{ include "whitesource-renovate.secret-name" . }}
key: mendRnvSqliteFilePath
optional: true
{{- end }}
{{- if or .Values.renovate.githubComToken .Values.renovate.existingSecret }}
Expand All @@ -89,17 +97,21 @@ spec:
key: githubComToken
optional: true
{{- end }}
{{- if or .Values.renovate.webhookSecret .Values.renovate.existingSecret }}
- name: WEBHOOK_SECRET
{{- if or .Values.renovate.mendRnvWebhookSecret .Values.renovate.existingSecret }}
- name: MEND_RNV_WEBHOOK_SECRET
valueFrom:
secretKeyRef:
name: {{ include "whitesource-renovate.secret-name" . }}
key: webhookSecret
key: mendRnvWebhookSecret
optional: true
{{- end }}
{{- if .Values.renovate.schedulerCron }}
- name: SCHEDULER_CRON
value: {{ .Values.renovate.schedulerCron | quote }}
{{- if .Values.renovate.mendRnvCronJobScheduler }}
- name: MEND_RNV_CRON_JOB_SCHEDULER
value: {{ .Values.renovate.mendRnvCronJobScheduler | quote }}
{{- end }}
{{- if .Values.renovate.mendRnvCronAppSync }}
- name: MEND_RNV_CRON_APP_SYNC
value: {{ .Values.renovate.mendRnvCronAppSync | quote }}
{{- end }}
{{- if or .Values.renovate.pipIndexUrl .Values.renovate.existingSecret }}
- name: PIP_INDEX_URL
Expand All @@ -121,10 +133,30 @@ spec:
- name: RENOVATE_USER_AGENT
value: {{ .Values.renovate.renovateUserAgent | quote }}
{{- end }}
{{- if .Values.renovate.mendRnvUserAgent }}
- name: MEND_RNV_USER_AGENT
value: {{ .Values.renovate.mendRnvUserAgent | quote }}
{{- end }}
{{- if .Values.renovate.logLevel }}
- name: LOG_LEVEL
value: {{ .Values.renovate.logLevel | quote }}
{{- end }}
{{- if or .Values.renovate.mendRnvAdminApiEnabled .Values.renovate.existingSecret }}
- name: MEND_RNV_ADMIN_API_ENABLED
valueFrom:
secretKeyRef:
name: {{ include "whitesource-renovate.secret-name" . }}
key: mendRnvAdminApiEnabled
optional: true
{{- end }}
{{- if or .Values.renovate.mendRnvServerApiSecret .Values.renovate.existingSecret }}
- name: MEND_RNV_SERVER_API_SECRET
valueFrom:
secretKeyRef:
name: {{ include "whitesource-renovate.secret-name" . }}
key: mendRnvServerApiSecret
optional: true
{{- end }}
ports:
- name: http
containerPort: 8080
Expand Down

0 comments on commit 8f9f19e

Please sign in to comment.