From 0fdb19ea3cddf68b47495276578b60f0cdfaaf80 Mon Sep 17 00:00:00 2001 From: Filipe Mota Date: Mon, 27 Jan 2025 18:34:01 +0100 Subject: [PATCH] feat: add service type Signed-off-by: Filipe Mota --- stable/microservice/CHANGELOG.md | 4 ++++ stable/microservice/Chart.yaml | 2 +- stable/microservice/templates/service.yaml | 3 +++ stable/microservice/values.yaml | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/stable/microservice/CHANGELOG.md b/stable/microservice/CHANGELOG.md index 557fae0..2f6f68a 100644 --- a/stable/microservice/CHANGELOG.md +++ b/stable/microservice/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.13.0] - 2025-01-27 +### Changed +- Add service type + ## [1.12.0] - 2024-12-18 ### Changed - Use last horizontal pod autoscaler api diff --git a/stable/microservice/Chart.yaml b/stable/microservice/Chart.yaml index 0c85794..19dd919 100644 --- a/stable/microservice/Chart.yaml +++ b/stable/microservice/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: microservice description: Generic helm chart for all kind of services -version: 1.12.0 +version: 1.13.0 keywords: - node - java diff --git a/stable/microservice/templates/service.yaml b/stable/microservice/templates/service.yaml index ec31699..f468a1b 100644 --- a/stable/microservice/templates/service.yaml +++ b/stable/microservice/templates/service.yaml @@ -16,6 +16,9 @@ metadata: {{ toYaml .Values.service.annotations | indent 4 }} {{- end }} spec: +{{- if .Values.service.type }} + type: {{ .Values.service.type }} +{{- end }} selector: {{ include "application.labels.selector" . | indent 4 }} {{- if .Values.deployment.podLabels }} diff --git a/stable/microservice/values.yaml b/stable/microservice/values.yaml index db7f40d..a58c3ec 100644 --- a/stable/microservice/values.yaml +++ b/stable/microservice/values.yaml @@ -223,6 +223,8 @@ persistentVolumeClaims: service: enabled: true + type: + additionalLabels: # expose: "true"