From 6b95ee7fd170a7eefcfeb5e822f7d7e5623c5f6c Mon Sep 17 00:00:00 2001 From: Mickael Date: Sat, 10 Jun 2023 23:41:19 +0200 Subject: [PATCH] feat(coredns): add svc annotations --- charts/coredns/Chart.yaml | 2 +- charts/coredns/README.md | 3 ++- charts/coredns/templates/service.yaml | 4 ++++ charts/coredns/values.yaml | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/charts/coredns/Chart.yaml b/charts/coredns/Chart.yaml index 277890c..efc724f 100644 --- a/charts/coredns/Chart.yaml +++ b/charts/coredns/Chart.yaml @@ -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: diff --git a/charts/coredns/README.md b/charts/coredns/README.md index 32f6713..3f1e6f4 100644 --- a/charts/coredns/README.md +++ b/charts/coredns/README.md @@ -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 @@ -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 | `[]` | | diff --git a/charts/coredns/templates/service.yaml b/charts/coredns/templates/service.yaml index f80ca9a..aef295a 100644 --- a/charts/coredns/templates/service.yaml +++ b/charts/coredns/templates/service.yaml @@ -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 }} diff --git a/charts/coredns/values.yaml b/charts/coredns/values.yaml index afa956f..b3a62d1 100644 --- a/charts/coredns/values.yaml +++ b/charts/coredns/values.yaml @@ -32,6 +32,8 @@ podAnnotations: {} service: type: ClusterIP + # -- Service annotations + annotations: {} # -- Set a fixed ClusterIP clusterIP: ""