Skip to content

Commit

Permalink
fix(semver) trim -redhat from KIC tags (#779)
Browse files Browse the repository at this point in the history
* fix(semver) trim -redhat from KIC tags

Strip -redhat suffix from KIC tags if present.

We use this to indicate Docker image variants. It is not actually a
semver pre-release, but the semver functions can't tell the difference.

* chore(release) add 2.17.1
  • Loading branch information
rainest authored Apr 6, 2023
1 parent 8b1e25f commit ff5d417
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions charts/kong/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 2.17.1

### Fixed

* The `-redhat` suffix on official KIC images is no longer considered part of
the semver string for version checks.
[#779](https://github.com/Kong/charts/pull/779)

## 2.17.0

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion charts/kong/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ maintainers:
name: kong
sources:
- https://github.com/Kong/charts/tree/main/charts/kong
version: 2.17.0
version: 2.17.1
appVersion: "3.2"
dependencies:
- name: postgresql
Expand Down
2 changes: 1 addition & 1 deletion charts/kong/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ The name of the service used for the ingress controller's validation webhook
{{- if .effectiveSemver -}}
{{- .effectiveSemver -}}
{{- else -}}
{{- .tag -}}
{{- (trimSuffix "-redhat" .tag) -}}
{{- end -}}
{{- end -}}

Expand Down

0 comments on commit ff5d417

Please sign in to comment.