Skip to content

Commit

Permalink
feat(vector): Add parameter to include additional labels on all resou…
Browse files Browse the repository at this point in the history
…rces (#73)

Signed-off-by: Spencer Gilbert <[email protected]>
  • Loading branch information
spencergilbert authored Oct 1, 2021
1 parent 17c94b8 commit 6d1426b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/vector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ helm install --name <RELEASE_NAME> \
| autoscaling.targetCPUUtilizationPercentage | int | `80` | Target CPU utilization for Vector's HPA |
| autoscaling.targetMemoryUtilizationPercentage | int | `nil` | Target memory utilization for Vector's HPA |
| command | list | `[]` | Override Vector's default command |
| commonLabels | object | `{}` | Add additional labels to all created resources |
| containerPorts | list | `[]` | Manually define Vector's Container ports, overrides automated generation of Container ports |
| customConfig | object | `{}` | Override Vector's default configs, if used **all** options need to be specified |
| dataDir | string | `""` | Specify the path for Vector's data, only used when existingConfigMaps are used |
Expand Down
3 changes: 3 additions & 0 deletions charts/vector/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ helm.sh/chart: {{ include "vector.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{ with .Values.commonLabels }}
{{- toYaml . }}
{{- end }}
{{- end }}

{{/*
Expand Down
3 changes: 3 additions & 0 deletions charts/vector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ role: "Aggregator"
# rollWorkload -- Add a checksum of the generated ConfigMap to workload annotations
rollWorkload: true

# commonLabels -- Add additional labels to all created resources
commonLabels: {}

## Define the Vector image to use
image:
# image.repository -- Override default registry + name for Vector
Expand Down

0 comments on commit 6d1426b

Please sign in to comment.