Skip to content

Commit

Permalink
feat(helm): support additional labels
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault committed Dec 12, 2024
1 parent 3ae39f9 commit 8c49925
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
18 changes: 5 additions & 13 deletions charts/keep/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# keep

![Version: 0.1.25](https://img.shields.io/badge/Version-0.1.25-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.27.0](https://img.shields.io/badge/AppVersion-0.27.0-informational?style=flat-square)
![Version: 0.1.47](https://img.shields.io/badge/Version-0.1.47-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.31.7](https://img.shields.io/badge/AppVersion-0.31.7-informational?style=flat-square)

Keep Helm Chart

Expand All @@ -21,6 +21,7 @@ Keep Helm Chart

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| additionalLabels | object | `{}` | |
| backend.affinity | object | `{}` | |
| backend.autoscaling.enabled | bool | `false` | |
| backend.autoscaling.maxReplicas | int | `3` | |
Expand Down Expand Up @@ -86,7 +87,7 @@ Keep Helm Chart
| database.autoscaling.enabled | bool | `false` | |
| database.enabled | bool | `true` | |
| database.env[0].name | string | `"MYSQL_ALLOW_EMPTY_PASSWORD"` | |
| database.env[0].value | string | `"yes"` | |
| database.env[0].value | bool | `true` | |
| database.env[1].name | string | `"MYSQL_DATABASE"` | |
| database.env[1].value | string | `"keep"` | |
| database.env[2].name | string | `"MYSQL_PASSWORD"` | |
Expand All @@ -109,6 +110,7 @@ Keep Helm Chart
| database.pv.size | string | `"5Gi"` | |
| database.pv.storageClass | string | `""` | |
| database.pvc.enabled | bool | `true` | |
| database.pvc.retain | bool | `false` | |
| database.pvc.size | string | `"5Gi"` | |
| database.pvc.storageClass | string | `""` | |
| database.replicaCount | int | `1` | |
Expand Down Expand Up @@ -172,22 +174,12 @@ Keep Helm Chart
| global.ingress.annotations | object | `{}` | |
| global.ingress.backendPrefix | string | `"/v2"` | |
| global.ingress.className | string | `"nginx"` | |
| global.ingress.classType | string | `""` | |
| global.ingress.enabled | bool | `true` | |
| global.ingress.frontendPrefix | string | `"/"` | |
| global.ingress.hosts | list | `[]` | |
| global.ingress.tls | list | `[]` | |
| global.ingress.websocketPrefix | string | `"/websocket"` | |
| ingress-nginx.controller.admissionWebhooks.certManager.enabled | bool | `false` | |
| ingress-nginx.controller.admissionWebhooks.failurePolicy | string | `"Ignore"` | |
| ingress-nginx.controller.admissionWebhooks.patch.enabled | bool | `true` | |
| ingress-nginx.controller.admissionWebhooks.patch.image.pullPolicy | string | `"IfNotPresent"` | |
| ingress-nginx.controller.allowSnippetAnnotations | bool | `true` | |
| ingress-nginx.controller.service.annotations | object | `{}` | |
| ingress-nginx.controller.service.enabled | bool | `true` | |
| ingress-nginx.controller.service.ports.http | int | `80` | |
| ingress-nginx.controller.service.ports.https | int | `443` | |
| ingress-nginx.controller.service.type | string | `"LoadBalancer"` | |
| ingress-nginx.enabled | bool | `true` | |
| isGKE | bool | `false` | |
| nameOverride | string | `""` | |
| namespace | string | `"keep"` | |
Expand Down
3 changes: 3 additions & 0 deletions charts/keep/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: keep
{{- if .Values.additionalLabels }}
{{ toYaml .Values.additionalLabels }}
{{- end }}
{{- end }}

{{/*
Expand Down
4 changes: 4 additions & 0 deletions charts/keep/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ global:
# - keep.example.com
# secretName: keep-tls

# Additional labels that should be applied to all resources
additionalLabels: {}
# app: keep

backend:
# if true, the backend will be enabled
enabled: true
Expand Down

0 comments on commit 8c49925

Please sign in to comment.