Skip to content

Commit

Permalink
[release-0.2 ] drop DaemonSet unsupported OnFailure restartPolicy
Browse files Browse the repository at this point in the history
The DaemonSet controller currently only supports the 'Always' restart
policy, which is set by default. This commit addresses the issue of
incorrectly set 'OnFailure' restart policy in DaemonSet objects of
plugins, ensuring that only the 'Always' restart policy is used as
intended.

Signed-off-by: Feruzjon Muyassarov <[email protected]>
  • Loading branch information
fmuyassarov authored and klihub committed Oct 17, 2023
1 parent 0288494 commit ff43d1f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion deployment/helm/balloons/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ spec:
labels:
{{- include "balloons-plugin.labels" . | nindent 8 }}
spec:
restartPolicy: OnFailure
serviceAccount: nri-resource-policy-balloons
nodeSelector:
kubernetes.io/os: "linux"
Expand Down
1 change: 0 additions & 1 deletion deployment/helm/memory-qos/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ spec:
labels:
{{- include "memory-qos.labels" . | nindent 8 }}
spec:
restartPolicy: OnFailure
nodeSelector:
kubernetes.io/os: "linux"
{{- if .Values.nri.patchRuntimeConfig }}
Expand Down
1 change: 0 additions & 1 deletion deployment/helm/memtierd/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ spec:
labels:
{{- include "memtierd.labels" . | nindent 8 }}
spec:
restartPolicy: OnFailure
nodeSelector:
kubernetes.io/os: "linux"
hostPID: true
Expand Down
1 change: 0 additions & 1 deletion deployment/helm/topology-aware/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ spec:
labels:
{{- include "topology-aware-plugin.labels" . | nindent 8 }}
spec:
restartPolicy: OnFailure
serviceAccount: nri-resource-policy-topology-aware
nodeSelector:
kubernetes.io/os: "linux"
Expand Down

0 comments on commit ff43d1f

Please sign in to comment.