Skip to content

Commit

Permalink
[stack-auth] add support for deployment annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jshimko committed Sep 24, 2024
1 parent eb4ab2a commit a5a9afc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/stack-auth/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: stack-auth
description: A Helm chart to deploy the Stack Auth platform. https://stack-auth.com
type: application
version: 0.3.0
version: 0.3.1

dependencies:
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql/Chart.yaml
Expand Down
2 changes: 2 additions & 0 deletions charts/stack-auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ helm delete stack --namespace stack
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| backend.affinity | object | `{}` | |
| backend.annotations | object | `{}` | Deployment annotations |
| backend.autoscaling.enabled | bool | `false` | |
| backend.autoscaling.maxReplicas | int | `10` | |
| backend.autoscaling.minReplicas | int | `1` | |
Expand Down Expand Up @@ -81,6 +82,7 @@ helm delete stack --namespace stack
| backend.volumeMounts | list | `[]` | Additional volumeMounts on the output Deployment definition. |
| backend.volumes | list | `[]` | Additional volumes on the output Deployment definition. |
| dashboard.affinity | object | `{}` | |
| dashboard.annotations | object | `{}` | Deployment annotations |
| dashboard.autoscaling.enabled | bool | `false` | |
| dashboard.autoscaling.maxReplicas | int | `10` | |
| dashboard.autoscaling.minReplicas | int | `1` | |
Expand Down
4 changes: 4 additions & 0 deletions charts/stack-auth/templates/backend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: "stack-backend"
labels:
{{- include "stack-auth.backend.labels" . | nindent 4 }}
{{- with .Values.backend.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.backend.autoscaling.enabled }}
replicas: {{ .Values.backend.replicaCount }}
Expand Down
4 changes: 4 additions & 0 deletions charts/stack-auth/templates/dashboard/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: "stack-dashboard"
labels:
{{- include "stack-auth.dashboard.labels" . | nindent 4 }}
{{- with .Values.dashboard.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.dashboard.autoscaling.enabled }}
replicas: {{ .Values.dashboard.replicaCount }}
Expand Down
6 changes: 6 additions & 0 deletions charts/stack-auth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ dashboard:
# If not set and create is true, a name is stack-dashboard
name: ""

# -- Deployment annotations
annotations: {}

podAnnotations: {}
podLabels: {}

Expand Down Expand Up @@ -170,6 +173,9 @@ backend:
# If not set and create is true, name is stack-backend
name: ""

# -- Deployment annotations
annotations: {}

podAnnotations: {}
podLabels: {}

Expand Down

0 comments on commit a5a9afc

Please sign in to comment.