Skip to content

Commit

Permalink
feat: Update Helm chart to support TAINT_KEY feature
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarHal committed May 7, 2024
1 parent 25b5d58 commit bed6a46
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
rules:
- apiGroups: [ "" ]
resources: [ "nodes" ]
{{- if .Values.rbac.allowNodesPatchPermission }}
verbs: [ "get", "patch" ]
{{- else }}
verbs: [ "get" ]
{{- end }}
- apiGroups: [ "coordination.k8s.io" ]
resources: [ "leases" ]
verbs: [ "create", "delete", "get" ]
Expand Down
2 changes: 2 additions & 0 deletions chart/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ spec:
fieldPath: spec.nodeName
- name: FILTER
value: {{ .Values.daemonSet.env.FILTER | quote }}
- name: TAINT_KEY
value: {{ .Values.daemonSet.env.TAINT_KEY | quote }}
- name: LOG_LEVEL
value: {{ .Values.daemonSet.env.LOG_LEVEL | quote }}
- name: LOG_JSON
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ serviceAccount:
# Role-Based Access Control (RBAC) configuration.
rbac:
create: true
allowNodesPatchPermission: false

# DaemonSet configuration.
daemonSet:
Expand All @@ -35,6 +36,7 @@ daemonSet:
kubeip: use
env:
FILTER: labels.kubeip=reserved;labels.environment=demo
TAINT_KEY: ""
LOG_LEVEL: debug
LOG_JSON: true
resources:
Expand Down

0 comments on commit bed6a46

Please sign in to comment.