update helpers (#11594)

Signed-off-by: Naseem Ullah <naseemkullah@gmail.com>
This commit is contained in:
Naseem
2019-03-04 09:40:57 -08:00
committed by Kubernetes Prow Robot
parent 7b1a5f281c
commit 999fda290c
4 changed files with 27 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: fluent-bit
version: 1.7.0
version: 1.8.0
appVersion: 1.0.4
description: Fast and Lightweight Log/Data Forwarder for Linux, BSD and OSX
keywords:
+7 -1
View File
@@ -99,6 +99,8 @@ The following table lists the configurable parameters of the Fluent-Bit chart an
| `image.fluent_bit.repository` | Image | `fluent/fluent-bit` |
| `image.fluent_bit.tag` | Image tag | `1.0.4` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `nameOverride` | Override name of app | `nil` |
| `fullnameOverride` | Override full name of app | `nil` |
| `image.pullSecrets` | Specify image pull secrets | `nil` |
| `input.tail.memBufLimit` | Specify Mem_Buf_Limit in tail input | `5MB` |
| `input.tail.parser` | Specify Parser in tail input. | `docker` |
@@ -138,8 +140,12 @@ $ helm install --name my-release -f values.yaml stable/fluent-bit
## Upgrading
### From < 1.0.0 To 1.0.0
### From < 1.0.0 To >= 1.0.0
Values `extraInputs`, `extraFilters` and `extraOutputs` have been removed in version `1.0.0` of the fluent-bit chart.
To add additional entries to the existing sections, please use the `extraEntries.input`, `extraEntries.filter` and `extraEntries.output` values.
For entire sections, please use the `rawConfig` value, inserting blocks of text as desired.
### From < 1.8.0 to >= 1.8.0
Version `1.8.0` introduces the use of release name as full name if it contains the chart name(fluent-bit in this case). E.g. with a release name of `fluent-bit`, this renames the DaemonSet from `fluent-bit-fluent-bit` to `fluent-bit`. The suggested approach is to delete the release and reinstall it.
+16
View File
@@ -9,11 +9,27 @@ Expand the name of the chart.
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "fluent-bit.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "fluent-bit.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Return the appropriate apiVersion for RBAC APIs.
+3
View File
@@ -8,6 +8,9 @@ image:
tag: 1.0.4
pullPolicy: IfNotPresent
nameOverride: ""
fullnameOverride: ""
# When enabled, exposes json and prometheus metrics on {{ .Release.Name }}-metrics service
metrics:
enabled: false