Skip to content

Commit

Permalink
feat: Add mendRnvGithubBotUserId configuration option (#549)
Browse files Browse the repository at this point in the history
* feat: Add `mendRnvGithubBotUserId` configuration option

The code changes add the `mendRnvGithubBotUserId` configuration option to the `values.yaml` file. This option allows specifying the GitHub bot user ID for the Mend Renovate app. It can be found by calling `https://api.github.com/users/{appName}[bot]` under the `id` key (replace the `{appName}` with the actual app name).

Co-authored-by: Philip <[email protected]>

* add to EE chart + remove secret

---------

Co-authored-by: Philip <[email protected]>
Co-authored-by: nabeelsaabna <[email protected]>
  • Loading branch information
3 people authored Aug 2, 2024
1 parent 9dd1eec commit a20d666
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm-charts/mend-renovate-ce/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ spec:
key: mendRnvGithubAppId
optional: true
{{- end }}
{{- if or .Values.renovate.mendRnvGithubBotUserId .Values.renovate.existingSecret }}
- name: MEND_RNV_GITHUB_BOT_USER_ID
value: {{ .Values.renovate.mendRnvGithubBotUserId | quote }}
{{- end }}
{{- if or .Values.renovate.mendRnvGithubAppKey .Values.renovate.existingSecret }}
- name: MEND_RNV_GITHUB_APP_KEY
valueFrom:
Expand Down
4 changes: 4 additions & 0 deletions helm-charts/mend-renovate-ce/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ renovate:
# The GitHub App ID provided when you provisioned the Mend Renovate app. Force string format by quoting value.
mendRnvGithubAppId:

# Optional: The GitHub bot user ID that can be found by calling `https://api.github.com/users/{appName}[bot]` under the `id` key.
# Force string format by quoting value.
mendRnvGithubBotUserId:

# A string representation of the private key provided by GitHub Enterprise when you provisioned Mend Renovate
mendRnvGithubAppKey:

Expand Down
4 changes: 4 additions & 0 deletions helm-charts/mend-renovate-ee/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ spec:
key: mendRnvGithubAppId
optional: true
{{- end }}
{{- if or .Values.renovateServer.mendRnvGithubBotUserId }}
- name: MEND_RNV_GITHUB_BOT_USER_ID
value: {{ .Values.renovateServer.mendRnvGithubBotUserId | quote }}
{{- end }}
{{- if or .Values.renovateServer.mendRnvGithubAppKey .Values.renovateServer.existingSecret }}
- name: MEND_RNV_GITHUB_APP_KEY
valueFrom:
Expand Down
4 changes: 4 additions & 0 deletions helm-charts/mend-renovate-ee/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ renovateServer:
# The GitHub App ID provided when you provisioned the Mend Renovate app. Force string format by quoting value.
mendRnvGithubAppId:

# Optional: The GitHub bot user ID that can be found by calling `https://api.github.com/users/{appName}[bot]` under the `id` key.
# Force string format by quoting value.
mendRnvGithubBotUserId:

# A string representation of the private key provided by GitHub Enterprise when you provisioned Mend Renovate
mendRnvGithubAppKey:

Expand Down

0 comments on commit a20d666

Please sign in to comment.