From 57c08ee9ec58e9ef484c9d2fcd7205bc27bbd4a2 Mon Sep 17 00:00:00 2001
From: michalke-it <67504436+michalke-it@users.noreply.github.com>
Date: Mon, 2 Aug 2021 14:42:53 +0200
Subject: [PATCH] Added service type from values.yaml (#541)

* Added service type from values.yaml

Enables users to override the service type. So far, specifying the nodePort values did not suffice to expose the services through the host's port.

* Bumped version to 0.3.2

* Bumped version to 0.3.2

* Changed version to 0.3.2

* Fixed chart version

Co-authored-by: groundhog2k <10630407+groundhog2k@users.noreply.github.com>
---
 charts/rabbitmq/Chart.yaml             | 2 +-
 charts/rabbitmq/README.md              | 2 +-
 charts/rabbitmq/templates/service.yaml | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/charts/rabbitmq/Chart.yaml b/charts/rabbitmq/Chart.yaml
index cb1b8784..3bf6e9e9 100644
--- a/charts/rabbitmq/Chart.yaml
+++ b/charts/rabbitmq/Chart.yaml
@@ -7,6 +7,6 @@ type: application
 maintainers:
   - name: groundhog2k
 
-version: 0.3.1
+version: 0.3.2
 
 appVersion: "3.9.1"
diff --git a/charts/rabbitmq/README.md b/charts/rabbitmq/README.md
index ec5efab0..44201a0f 100644
--- a/charts/rabbitmq/README.md
+++ b/charts/rabbitmq/README.md
@@ -1,6 +1,6 @@
 # RabbitMQ
 
-![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.9.1](https://img.shields.io/badge/AppVersion-3.9.1-informational?style=flat-square)
+![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.9.1](https://img.shields.io/badge/AppVersion-3.9.1-informational?style=flat-square)
 
 A Helm chart for a RabbitMQ cluster on Kubernetes
 
diff --git a/charts/rabbitmq/templates/service.yaml b/charts/rabbitmq/templates/service.yaml
index 59a2dc07..c82da0a8 100644
--- a/charts/rabbitmq/templates/service.yaml
+++ b/charts/rabbitmq/templates/service.yaml
@@ -27,3 +27,4 @@ spec:
   {{- end }}
   selector:
     {{- include "rabbitmq.selectorLabels" . | nindent 4 }}
+  type: {{ .Values.service.type }}
-- 
GitLab