From 6777ebe4dd405afd87304fc38410ee914a72732a Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Wed, 8 Nov 2023 17:09:56 +0300 Subject: [PATCH] Add user-defined labels option to ingress (#498) Signed-off-by: Oleg Pykhalov --- charts/opensearch/CHANGELOG.md | 9 +++++++++ charts/opensearch/Chart.yaml | 2 +- charts/opensearch/templates/ingress.yaml | 3 +++ charts/opensearch/values.yaml | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/charts/opensearch/CHANGELOG.md b/charts/opensearch/CHANGELOG.md index 7ef1dac9..d42ce0ad 100644 --- a/charts/opensearch/CHANGELOG.md +++ b/charts/opensearch/CHANGELOG.md @@ -13,6 +13,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed ### Security --- +## [2.16.2] +### Added +### Changed +- Allow user-defined labels on ingress resource +### Deprecated +### Removed +### Fixed +### Security +--- ## [2.16.1] ### Added ### Changed diff --git a/charts/opensearch/Chart.yaml b/charts/opensearch/Chart.yaml index 28dadfe7..12f7cda5 100644 --- a/charts/opensearch/Chart.yaml +++ b/charts/opensearch/Chart.yaml @@ -15,7 +15,7 @@ type: application # 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: 2.16.1 +version: 2.16.2 # 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 diff --git a/charts/opensearch/templates/ingress.yaml b/charts/opensearch/templates/ingress.yaml index 7a4d0da8..a63d6c89 100644 --- a/charts/opensearch/templates/ingress.yaml +++ b/charts/opensearch/templates/ingress.yaml @@ -16,6 +16,9 @@ metadata: name: {{ $fullName }} labels: {{- include "opensearch.labels" . | nindent 4 }} + {{- with .Values.ingress.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} {{- with .Values.ingress.annotations }} annotations: {{ toYaml . | indent 4 }} diff --git a/charts/opensearch/values.yaml b/charts/opensearch/values.yaml index 090cb0c8..8c8152ed 100644 --- a/charts/opensearch/values.yaml +++ b/charts/opensearch/values.yaml @@ -392,6 +392,7 @@ ingress: annotations: {} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" + labels: {} path: / hosts: - chart-example.local