Skip to content

Commit 1f0a20f

Browse files
authored
Merge pull request #1840 from karloramone/operator-deployment-chart
Possibility to add strategy and topologySpreadConstraints to the operator
2 parents 69bebf5 + 633276f commit 1f0a20f

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ If you encounter problems while using the Logging operator the documentation doe
9898
If you find this project useful, help us:
9999

100100
- Support the development of this project and star this repo! :star:
101-
- If you use the Logging operator in a production environment, add yourself to the list of production [adopters](https://github.com/kube-logging/logging-operator/blob/master/ADOPTERS.md).:metal: <br>
101+
- If you use the Logging operator in a production environment, add yourself to the list of production [adopters](https://github.com/kube-logging/logging-operator/blob/master/ADOPTERS.md). :metal: <br>
102102
- Help new users with issues they may encounter :muscle:
103103
- Send a pull request with your new features and bug fixes :rocket:
104104

charts/logging-operator/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ Use `createCustomResource=false` with Helm v3 to avoid trying to create CRDs fro
6565
| nodeSelector | object | `{}` | |
6666
| tolerations | list | `[]` | Node Tolerations |
6767
| affinity | object | `{}` | Node Affinity |
68+
| topologySpreadConstraints | list | `[]` | Pod Topology Spread Constraints |
69+
| strategy | object | `{}` | Deployment Strategy |
6870
| podLabels | object | `{}` | Define which Nodes the Pods are scheduled on. |
6971
| logging.enabled | bool | `false` | Logging resources are disabled by default |
7072
| logging.loggingRef | string | `""` | Reference to the logging system. Each of the loggingRefs can manage a fluentbit daemonset and a fluentd statefulset. |

charts/logging-operator/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ spec:
1111
matchLabels:
1212
app.kubernetes.io/name: {{ include "logging-operator.name" . }}
1313
app.kubernetes.io/instance: {{ .Release.Name }}
14+
{{- if .Values.strategy }}
15+
strategy:
16+
{{- toYaml .Values.strategy | nindent 4 }}
17+
{{- end }}
1418
template:
1519
metadata:
1620
labels:
@@ -77,3 +81,7 @@ spec:
7781
{{- else if .Values.rbac.enabled }}
7882
serviceAccountName: {{ include "logging-operator.fullname" . }}
7983
{{- end }}
84+
{{- if .Values.topologySpreadConstraints }}
85+
topologySpreadConstraints:
86+
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
87+
{{- end }}

charts/logging-operator/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ tolerations: []
117117
# -- Node Affinity
118118
affinity: {}
119119

120+
# -- Pod Topology Spread Constraints
121+
topologySpreadConstraints: []
122+
123+
# -- Deployment Strategy
124+
strategy: {}
125+
120126
# -- Define which Nodes the Pods are scheduled on.
121127
podLabels: {}
122128

0 commit comments

Comments
 (0)