Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): Add secret annotations #2378

Merged
merged 2 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/renovate/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: '39.173.1'
description: Universal dependency update tool that fits into your workflows.
name: renovate
version: '39.173.1'
version: '39.173.2'
icon: https://docs.renovatebot.com/assets/images/logo.png
home: https://github.com/renovatebot/renovate
keywords:
Expand Down
3 changes: 2 additions & 1 deletion charts/renovate/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# renovate

![Version: 39.173.1](https://img.shields.io/badge/Version-39.173.1-informational?style=flat-square) ![AppVersion: 39.173.1](https://img.shields.io/badge/AppVersion-39.173.1-informational?style=flat-square)
![Version: 39.173.2](https://img.shields.io/badge/Version-39.173.2-informational?style=flat-square) ![AppVersion: 39.173.1](https://img.shields.io/badge/AppVersion-39.173.1-informational?style=flat-square)

Universal dependency update tool that fits into your workflows.

Expand Down Expand Up @@ -104,6 +104,7 @@ The following table lists the configurable parameters of the chart and the defau
| renovate.persistence.cache.volumeName | string | `""` | Existing volume, enables binding the pvc to an existing volume |
| renovate.securityContext | object | `{}` | Renovate Container-level security-context |
| resources | object | `{}` | Specify resource limits and requests for the renovate container |
| secretAnnotations | object | `{}` | Annotations to add to secret |
| secrets | object | `{}` | Environment variables that should be referenced from a k8s secret, cannot be used when existingSecret is set |
| securityContext | object | `{}` | Pod-level security-context |
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
Expand Down
6 changes: 6 additions & 0 deletions charts/renovate/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ metadata:
name: {{ template "renovate.fullname" . }}-config
labels:
{{- include "renovate.labels" . | nindent 4 }}
{{- if .Values.renovate.configIsSecret }}
{{- with .Values.secretAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- if .Values.renovate.configIsSecret }}
stringData:
{{- else }}
Expand Down
4 changes: 4 additions & 0 deletions charts/renovate/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
name: {{ template "renovate.fullname" . }}-secret
labels:
{{- include "renovate.labels" . | nindent 4 }}
{{- with .Values.secretAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
type: Opaque
data:
{{- range $k, $v := index .Values.secrets }}
Expand Down
4 changes: 4 additions & 0 deletions charts/renovate/templates/ssh-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
name: {{ template "renovate.sshSecretName" . }}
labels:
{{- include "renovate.labels" . | nindent 4 }}
{{- with .Values.secretAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
type: Opaque
data:
{{- if .Values.ssh_config.config }}
Expand Down
2 changes: 2 additions & 0 deletions charts/renovate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ global:
nameOverride: ''
# -- Override the fully qualified app name
fullnameOverride: ''
# -- Annotations to add to secret
secretAnnotations: {}

cronjob:
# -- Schedules the job to run using cron notation
Expand Down