feat: allow setting podAnnotations (#54)

This commit is contained in:
Alex Eftimie 2023-01-27 12:38:50 +01:00 committed by GitHub
parent 52a9c3ae77
commit 75f152057b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 2 deletions

View File

@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.14.0
version: 0.15.0
dependencies:
- name: common

View File

@ -1,7 +1,7 @@
# Backstage Helm Chart
![Version: 0.14.0](https://img.shields.io/badge/Version-0.14.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.15.0](https://img.shields.io/badge/Version-0.15.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
A Helm chart for deploying a Backstage application
@ -104,6 +104,7 @@ The command removes all the Kubernetes components associated with the chart and
| backstage.image.repository | Backstage image repository | string | `"backstage/backstage"` |
| backstage.image.tag | Backstage image tag (immutable tags are recommended) | string | `"latest"` |
| backstage.initContainers | Backstage container init containers | list | `[]` |
| backstage.podAnnotations | Annotations to add to the backend deployment pods | object | `{}` |
| backstage.podSecurityContext | Security settings for a Pod. The security settings that you specify for a Pod apply to all Containers in the Pod. <br /> Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod | object | `{}` |
| backstage.resources | Resource requests/limits <br /> Ref: https://kubernetes.io/docs/user-guide/compute-resources/ <!-- E.g. resources: limits: memory: 1Gi cpu: 1000m requests: memory: 250Mi cpu: 100m --> | object | `{}` |
| backstage.tolerations | Node tolerations for server scheduling to nodes with taints <br /> Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | list | `[]` |

View File

@ -26,6 +26,9 @@ spec:
app.kubernetes.io/component: backstage
annotations:
checksum/app-config: {{ include "common.tplvalues.render" ( dict "value" .Values.backstage.appConfig "context" $) | sha256sum }}
{{- if .Values.backstage.podAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.podAnnotations "context" $ ) | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ include "backstage.serviceAccountName" . }}
{{- if .Values.backstage.podSecurityContext }}

View File

@ -174,6 +174,9 @@ backstage:
# value: "value"
# effect: "NoSchedule|PreferNoSchedule|NoExecute"
# -- Annotations to add to the backend deployment pods
podAnnotations: {}
## @section Traffic Exposure parameters
## Service parameters