Skip to content

Commit

Permalink
feat: add service type
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Mota <[email protected]>
  • Loading branch information
fdmota committed Jan 27, 2025
1 parent 0bbda72 commit 0fdb19e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions stable/microservice/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion stable/microservice/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions stable/microservice/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions stable/microservice/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ persistentVolumeClaims:
service:
enabled: true

type:

additionalLabels:
# expose: "true"

Expand Down

0 comments on commit 0fdb19e

Please sign in to comment.