mirror of
https://github.com/bitnami/charts.git
synced 2026-02-28 15:37:42 +08:00
[bitnami/elasticsearch] Add support for cronjob apiVersion batch/v1 for Kube v1.21+ (#8075)
* Add custom labels option to the service in Kibana chart * Generate README through readme-generator-for-helm * Migrate to batch/v1 api version for curator time based jobs * Update chart's minor version * Add support for batch/v2alpha1 on kube < v1.8 Co-authored-by: Abdullah Tariq <abdullah.tariq@flixbus.com>
This commit is contained in:
@@ -25,4 +25,4 @@ name: elasticsearch
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-elasticsearch
|
||||
- https://www.elastic.co/products/elasticsearch
|
||||
version: 17.2.0
|
||||
version: 17.3.0
|
||||
|
||||
@@ -227,8 +227,10 @@ Return the appropriate apiVersion for cronjob APIs.
|
||||
{{- define "cronjob.apiVersion" -}}
|
||||
{{- if semverCompare "< 1.8-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
{{- print "batch/v2alpha1" }}
|
||||
{{- else if semverCompare ">=1.8-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
{{- else if and (semverCompare ">=1.8-0" .Capabilities.KubeVersion.GitVersion) (semverCompare "< 1.21-0" .Capabilities.KubeVersion.GitVersion) -}}
|
||||
{{- print "batch/v1beta1" }}
|
||||
{{- else if semverCompare ">=1.21-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
{{- print "batch/v1" }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user