Skip to content

Commit

Permalink
feat(coredns): add svc annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
MickaelCa committed Jun 10, 2023
1 parent 2c5f4a0 commit 6b95ee7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/coredns/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: coredns
description: A Helm chart for Kubernetes
type: application
version: 0.1.1
version: 0.2.0
appVersion: "1.10.1"
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png
maintainers:
Expand Down
3 changes: 2 additions & 1 deletion charts/coredns/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coredns

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.10.1](https://img.shields.io/badge/AppVersion-1.10.1-informational?style=flat-square)
![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.10.1](https://img.shields.io/badge/AppVersion-1.10.1-informational?style=flat-square)

A Helm chart for Kubernetes

Expand All @@ -26,6 +26,7 @@ A Helm chart for Kubernetes
| podAnnotations | object | `{}` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| service.annotations | object | `{}` | Service annotations |
| service.clusterIP | string | `""` | Set a fixed ClusterIP |
| service.type | string | `"ClusterIP"` | |
| tolerations | list | `[]` | |
Expand Down
4 changes: 4 additions & 0 deletions charts/coredns/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: {{ include "coredns.fullname" . }}
labels:
{{- include "coredns.labels" . | nindent 4 }}
annotations:
{{- with .Values.service.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.clusterIP }}
Expand Down
2 changes: 2 additions & 0 deletions charts/coredns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ podAnnotations: {}

service:
type: ClusterIP
# -- Service annotations
annotations: {}
# -- Set a fixed ClusterIP
clusterIP: ""

Expand Down

0 comments on commit 6b95ee7

Please sign in to comment.