Skip to content

Commit

Permalink
Add headless type of Service (#145)
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Pieta <michal.pieta@tietoevry.com>
  • Loading branch information
mipieta and mipieta committed Sep 28, 2023
1 parent 6a96e25 commit cf66ec6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dotnet/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: .NET Core Helm Chart
name: dotnet
version: 12.0.0
version: 12.1.0
dependencies:
- name: libchart
version: 3.0.0
version: 3.1.0
repository: file://../libchart
4 changes: 2 additions & 2 deletions golang/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: golan Helm Chart
name: golang
version: 16.0.0
version: 16.1.0
dependencies:
- name: libchart
version: 3.0.0
version: 3.1.0
repository: file://../libchart
4 changes: 2 additions & 2 deletions java/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: Java Helm Chart
name: java
version: 9.0.0
version: 9.1.0
dependencies:
- name: libchart
version: 3.0.0
version: 3.1.0
repository: file://../libchart
2 changes: 1 addition & 1 deletion libchart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: library
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.0.0
version: 3.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 3 additions & 0 deletions libchart/templates/_service.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.headless }}
clusterIP: None
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort | default "http" }}
Expand Down
1 change: 1 addition & 0 deletions libchart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ readiness:
# Service
service:
type: ClusterIP
headless: false
port: 80
targetPort: 8080
name: http
Expand Down
4 changes: 2 additions & 2 deletions nodejs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: Node.js Helm Chart
name: nodejs
version: 16.0.0
version: 16.1.0
dependencies:
- name: libchart
version: 3.0.0
version: 3.1.0
repository: file://../libchart
4 changes: 2 additions & 2 deletions web/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
appVersion: "1.0"
description: Helm chart for deployment of web servers
name: web
version: 13.0.0
version: 13.1.0
dependencies:
- name: libchart
version: 3.0.0
version: 3.1.0
repository: file://../libchart

0 comments on commit cf66ec6

Please sign in to comment.