Skip to content

Commit

Permalink
Merge pull request #35 from highmobility/shorten-hm-worker-resource-n…
Browse files Browse the repository at this point in the history
…ames

Shorten name of hm-worker resources
  • Loading branch information
slashmili committed Dec 11, 2023
2 parents 1bf92ce + bbfc43e commit 465fee3
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
Binary file added hm-worker-1.4.0.tgz
Binary file not shown.
7 changes: 7 additions & 0 deletions hm-worker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog


## [1.4.0] - 2023-12-08
### Changed

* Shorten the name of resouces by removing `hm-worker` at the end of each resource
* only headless service name is left unchanged due to backward compatibility


## [1.3.1] - 2023-08-08
### Changed

Expand Down
2 changes: 1 addition & 1 deletion hm-worker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.3.1
version: 1.4.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 6 additions & 2 deletions hm-worker/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ If release name contains chart name it will be used as a full name.
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- printf "%s" .Release.Name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
Expand Down Expand Up @@ -70,6 +70,10 @@ Create the name of the service account to use
{{- printf "%s-%s" (include "hm-worker.fullname" .) "secret" -}}
{{- end -}}

{{/*
Keep hm-worker for backward compatibility reason
to be removed in the next major release
*/}}
{{- define "hm-worker.headlessServiceName" -}}
{{- printf "%s-%s" (include "hm-worker.fullname" .) "nodes" -}}
{{- printf "%s-hm-worker-%s" (include "hm-worker.fullname" .) "nodes" -}}
{{- end -}}
12 changes: 11 additions & 1 deletion index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,16 @@ entries:
- https://highmobility.github.io/helm-charts/hm-basic-webapp-0.1.0.tgz
version: 0.1.0
hm-worker:
- apiVersion: v2
appVersion: 1.16.0
created: "2023-12-11T10:34:09.0412+01:00"
description: A Helm chart for running worker jobs without any HTTP service
digest: e40c68c6f06ea636504cf324ea25f7eb1b41725e1be18bfdf8d5528fcb8b3ee6
name: hm-worker
type: application
urls:
- https://highmobility.github.io/helm-charts/hm-worker-1.4.0.tgz
version: 1.4.0
- apiVersion: v2
appVersion: 1.16.0
created: "2023-08-08T15:16:14.547527+02:00"
Expand Down Expand Up @@ -262,4 +272,4 @@ entries:
urls:
- https://highmobility.github.io/helm-charts/hm-worker-0.1.0.tgz
version: 0.1.0
generated: "2023-12-08T23:36:57.798126+01:00"
generated: "2023-12-11T10:34:09.040144+01:00"

0 comments on commit 465fee3

Please sign in to comment.