Skip to content

Commit

Permalink
Merge pull request #52 from ndustrialio/fix-anno-2
Browse files Browse the repository at this point in the history
fix annotation render issue
  • Loading branch information
kalinon authored Aug 22, 2022
2 parents 7aa1a08 + 2dfa4b9 commit d636f56
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
5 changes: 3 additions & 2 deletions ndustrial/deployment/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: A Helm chart for deploying k8s deployment
type: application
dependencies:
- name: common
# repository: file://../common
repository: https://ndustrialio.github.io/charts
version: ~0.2.15
tags:
Expand All @@ -12,5 +13,5 @@ maintainers:
- email: devops@ndustrial.io
name: DevOps
# Please make sure that version and appVersion are always the same.
version: 0.1.33
appVersion: 0.1.33
version: 0.1.34
appVersion: 0.1.34
6 changes: 4 additions & 2 deletions ndustrial/deployment/templates/svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ metadata:
{{- end }}
{{- if or .Values.annotations .Values.service.annotations }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- if .Values.annotations }}
{{- include "nio-common.tplvalues.render" ( dict "value" .Values.annotations "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.service.annotations }}
{{- include "nio-common.tplvalues.render" ( dict "value" .Values.service.annotations "context" $ ) | nindent 4 }}
{{- end }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and .Values.service.clusterIP (eq .Values.service.type "ClusterIP") }}
Expand Down
4 changes: 2 additions & 2 deletions ndustrial/statefulset/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ maintainers:
- email: devops@ndustrial.io
name: DevOps
# Please make sure that version and appVersion are always the same.
version: 0.1.30
appVersion: 0.1.30
version: 0.1.31
appVersion: 0.1.31
6 changes: 4 additions & 2 deletions ndustrial/statefulset/templates/svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ metadata:
{{- end }}
{{- if or .Values.annotations .Values.service.annotations }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- if .Values.annotations }}
{{- include "nio-common.tplvalues.render" ( dict "value" .Values.annotations "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.service.annotations }}
{{- include "nio-common.tplvalues.render" ( dict "value" .Values.service.annotations "context" $ ) | nindent 4 }}
{{- end }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and .Values.service.clusterIP (eq .Values.service.type "ClusterIP") }}
Expand Down

0 comments on commit d636f56

Please sign in to comment.