Skip to content

Commit

Permalink
fix: Update Chart.yaml version and fix some values
Browse files Browse the repository at this point in the history
  • Loading branch information
blopezpi committed Mar 11, 2022
1 parent a77cc6b commit afc9216
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion chart/mairror/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A helm chart to deploy mairror application

type: application

version: 0.0.1
version: 0.0.2

maintainers:
- name: Alejandro Aceituna
Expand Down
2 changes: 1 addition & 1 deletion chart/mairror/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A helm chart to deploy mairror application

![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0.0](https://img.shields.io/badge/AppVersion-v1.0.0-informational?style=flat-square)
![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0.0](https://img.shields.io/badge/AppVersion-v1.0.0-informational?style=flat-square)

## Additional Information

Expand Down
10 changes: 5 additions & 5 deletions chart/mairror/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ If release name contains chart name it will be used as a full name.
{{- if .Values.mairror_api.fullnameOverride }}
{{- .Values.mairror_api.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default "mairror-api" .Values.mairror_api.nameOverride }}
{{- $name := default "api" .Values.mairror_api.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand All @@ -43,7 +43,7 @@ If release name contains chart name it will be used as a full name.
{{- if .Values.mairror_predictor.fullnameOverride }}
{{- .Values.mairror_predictor.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default "mairror-predictor" .Values.mairror_predictor.nameOverride }}
{{- $name := default "predictor" .Values.mairror_predictor.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand All @@ -56,7 +56,7 @@ If release name contains chart name it will be used as a full name.
{{- if .Values.mairror_bot.fullnameOverride }}
{{- .Values.mairror_bot.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default "mairror-bot" .Values.mairror_bot.nameOverride }}
{{- $name := default "bot" .Values.mairror_bot.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand All @@ -69,7 +69,7 @@ If release name contains chart name it will be used as a full name.
{{- if .Values.mairror_front.fullnameOverride }}
{{- .Values.mairror_front.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default "mairror-front" .Values.mairror_front.nameOverride }}
{{- $name := default "front" .Values.mairror_front.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand All @@ -82,7 +82,7 @@ If release name contains chart name it will be used as a full name.
{{- if .Values.mairror_processor.fullnameOverride }}
{{- .Values.mairror_processor.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default "mairror-processor" .Values.mairror_processor.nameOverride }}
{{- $name := default "processor" .Values.mairror_processor.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand Down
2 changes: 1 addition & 1 deletion chart/mairror/templates/ingress_api.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.mairror_api.ingress.enabled -}}
{{- $fullName := include "mairror_api.fullname" . -}}
{{- $svcPort := .Values.mairror_api.service.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if and .Values.mairror_api.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion chart/mairror/templates/ingress_front.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.mairror_front.ingress.enabled -}}
{{- $fullName := include "mairror_front.fullname" . -}}
{{- $svcPort := .Values.mairror_front.service.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if and .Values.mairror_front.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
{{- end }}
Expand Down

0 comments on commit afc9216

Please sign in to comment.