Skip to content

Commit cb0a633

Browse files
authored
fix: update API usage ingress condition (#171)
1 parent 8bf1295 commit cb0a633

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

charts/api7/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.17.10
18+
version: 0.17.11
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/api7/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# api7ee3
22

3-
![Version: 0.17.10](https://img.shields.io/badge/Version-0.17.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.7.2.0](https://img.shields.io/badge/AppVersion-3.7.2-informational?style=flat-square)
3+
![Version: 0.17.11](https://img.shields.io/badge/Version-0.17.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.7.2.0](https://img.shields.io/badge/AppVersion-3.7.2-informational?style=flat-square)
44

55
A Helm chart for Kubernetes
66

charts/api7/templates/api-usage-ingress.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{{- if ((.Values.api_usage.service | default dict).ingress | default dict).enabled }}
1+
{{- if and (.Values.api_usage | default dict).enable .Values.api_usage.service }}
2+
{{- if ((.Values.api_usage.service.ingress | default dict).enabled | default false) }}
23
{{- $fullName := printf "%s-api-usage" (include "api7ee3.fullname" .) -}}
34
{{- $svcPort := .Values.api_usage.service.port -}}
45
{{- if and .Values.api_usage.service.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
@@ -66,3 +67,4 @@ spec:
6667
{{- end }}
6768
{{- end }}
6869
{{- end }}
70+
{{- end }}

0 commit comments

Comments
 (0)