Skip to content

Commit

Permalink
helm option for additional pod labels (#254)
Browse files Browse the repository at this point in the history
* helm option for additional pod labels

* readme update

* generate helm docs
  • Loading branch information
m-terra authored Nov 22, 2022
1 parent 316d48c commit cb3865d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helm/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# k8s-event-logger-operator

![Version: 1.10.2](https://img.shields.io/badge/Version-1.10.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.10.2](https://img.shields.io/badge/AppVersion-v1.10.2-informational?style=flat-square)

![Version: 1.10.2](https://img.shields.io/badge/Version-1.10.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.10.2](https://img.shields.io/badge/AppVersion-v1.10.2-informational?style=flat-square)

This operator creates a logging pod that logs corev1.Event information as structured json log. The crd allows to configure the events to be logged.

Expand All @@ -19,6 +20,7 @@ helm install k8s-event-logger-operator bakito/k8s-event-logger-operator
| eventLogger.leaderElection | bool | `true` | Enable leader election for the controller |
| eventLogger.leaderElectionResourceLock | string | `nil` | Leader election lock type |
| eventLogger.resources | object | `{"limits":{"cpu":"200m","memory":"256Mi"},"requests":{"cpu":"100m","memory":"64Mi"}}` | Resource limits and requests for the operator pods. |
| extraPodLabels | object | `{}` | Add additional pod [labels] |
| fullnameOverride | string | `""` | String to fully override "argo-rollouts.fullname" template |
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| image.repository | string | `"ghcr.io/bakito/k8s-event-logger"` | Repository to use |
Expand Down
3 changes: 3 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
metadata:
labels:
{{- include "k8s-event-logger-operator.selectorLabels" . | nindent 8 }}
{{- with .Values.extraPodLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ include "k8s-event-logger-operator.serviceAccountName" . }}
containers:
Expand Down
3 changes: 3 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@ tolerations: [ ]

# -- Assign custom [affinity] rules to the deployment
affinity: { }

# -- Add additional pod [labels]
extraPodLabels: { }

0 comments on commit cb3865d

Please sign in to comment.