Skip to content

Commit

Permalink
Merge pull request #59 from regulaforensics/labels
Browse files Browse the repository at this point in the history
Add common labels to all resources
  • Loading branch information
sdauhuchytsrf authored Jan 20, 2025
2 parents e6d2b1f + 2fe0c93 commit 7419202
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/docreader/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: v2
name: docreader
home: https://api.regulaforensics.com/
version: 2.0.0
version: 2.0.1
appVersion: nightly
description: Fast and accurate data extraction from identity documents. On-premise and cloud integration
icon: https://secure.gravatar.com/avatar/71a5efd69d82e444129ad18f51224bbb.jpg
Expand Down
1 change: 1 addition & 0 deletions charts/docreader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ A major chart version change (like v0.1.2 -> v1.0.0) indicates that there is an
| `imagePullSecrets` | Image pull secrets | `[]` |
| `nameOverride` | String to partially override common.names.fullname template (will maintain the release name) | `""` |
| `fullnameOverride` | String to fully override common.names.fullname template | `""` |
| `commonLabels` | Extra labels to apply to all resources | `{}` |
| `resources` | CPU/Memory resource requests/limits | `{}` |
| `securityContext` | Enable security context | `{}` |
| `podSecurityContext` | Enable pod security context | `{}` |
Expand Down
3 changes: 3 additions & 0 deletions charts/docreader/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ helm.sh/chart: {{ include "docreader.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.commonLabels }}
{{ toYaml .Values.commonLabels }}
{{- end }}
{{- end }}

{{/* Selector labels */}}
Expand Down
3 changes: 3 additions & 0 deletions charts/docreader/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

## Labels to apply to all resources
commonLabels: {}

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down
2 changes: 1 addition & 1 deletion charts/faceapi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: v2
name: faceapi
home: https://faceapi.regulaforensics.com/
version: 1.5.7
version: 1.5.8
appVersion: nightly
description: Face Recognition Service. On-premise and cloud integration
icon: https://secure.gravatar.com/avatar/71a5efd69d82e444129ad18f51224bbb.jpg
Expand Down
1 change: 1 addition & 0 deletions charts/faceapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ The command removes all the Kubernetes components associated with the chart and
| `imagePullSecrets` | Image pull secrets | `[]` |
| `nameOverride` | String to partially override common.names.fullname template (will maintain the release name) | `""` |
| `fullnameOverride` | String to fully override common.names.fullname template | `""` |
| `commonLabels` | Extra labels to apply to all resources | `{}` |
| `resources` | CPU/Memory resource requests/limits | `{}` |
| `securityContext` | Enable security context | `{}` |
| `podSecurityContext` | Enable pod security context | `{}` |
Expand Down
3 changes: 3 additions & 0 deletions charts/faceapi/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ helm.sh/chart: {{ include "faceapi.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.commonLabels }}
{{ toYaml .Values.commonLabels }}
{{- end }}
{{- end }}

{{/* Selector labels */}}
Expand Down
3 changes: 3 additions & 0 deletions charts/faceapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

## Labels to apply to all resources
commonLabels: {}

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down

0 comments on commit 7419202

Please sign in to comment.