Skip to content

Commit

Permalink
Support annotatiosn for services (#130)
Browse files Browse the repository at this point in the history
* Support annotatiosn for services

* Fix comment

Co-authored-by: Hans Kristian Flaatten <hans.flaatten@tietoevry.com>

* Update libchart/templates/_service.tpl

Co-authored-by: Hans Kristian Flaatten <hans.flaatten@tietoevry.com>

Co-authored-by: Hans Kristian Flaatten <hans.flaatten@tietoevry.com>
  • Loading branch information
ekarlso and Hans Kristian Flaatten authored Jan 19, 2022
1 parent 287c6f1 commit f653908
Show file tree
Hide file tree
Showing 13 changed files with 21 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: 9.0.0
version: 9.1.0
dependencies:
- name: libchart
version: 0.1.0
version: 0.2.0
repository: file://../libchart
1 change: 1 addition & 0 deletions dotnet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ service:
targetPort: 8080
name: http
extraPorts: []
annotations: {}

# Ingress
ingress:
Expand Down
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: 13.0.0
version: 13.1.0
dependencies:
- name: libchart
version: 0.1.0
version: 0.2.0
repository: file://../libchart
1 change: 1 addition & 0 deletions golang/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ service:
targetPort: 8080
name: http
extraPorts: []
annotations: {}

# Ingress
ingress:
Expand Down
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: 6.0.0
version: 6.1.0
dependencies:
- name: libchart
version: 0.1.0
version: 0.2.0
repository: file://../libchart
1 change: 1 addition & 0 deletions java/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ service:
targetPort: 8080
name: http
extraPorts: []
annotations: {}

# Ingress
ingress:
Expand Down
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: 0.1.0
version: 0.2.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
4 changes: 4 additions & 0 deletions libchart/templates/_service.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
name: {{ template "libchart.name" . }}
labels:
{{- include "libchart.labels" . | nindent 4 }}
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
1 change: 1 addition & 0 deletions libchart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ service:
targetPort: 8080
name: http
extraPorts: []
annotations: {}

# Ingress
ingress:
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: 13.0.0
version: 13.1.0
dependencies:
- name: libchart
version: 0.1.0
version: 0.2.0
repository: file://../libchart
1 change: 1 addition & 0 deletions nodejs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ service:
targetPort: 8080
name: http
extraPorts: []
annotations: {}

# Ingress
ingress:
Expand Down
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: 10.0.0
version: 10.1.0
dependencies:
- name: libchart
version: 0.1.0
version: 0.2.0
repository: file://../libchart
1 change: 1 addition & 0 deletions web/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ service:
targetPort: 8080
name: http
extraPorts: []
annotations: {}

# Ingress
ingress:
Expand Down

0 comments on commit f653908

Please sign in to comment.