Skip to content

Commit

Permalink
Merge pull request #1840 from karloramone/operator-deployment-chart
Browse files Browse the repository at this point in the history
Possibility to add strategy and topologySpreadConstraints to the operator
  • Loading branch information
csatib02 authored Nov 5, 2024
2 parents 69bebf5 + 633276f commit 1f0a20f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ If you encounter problems while using the Logging operator the documentation doe
If you find this project useful, help us:

- Support the development of this project and star this repo! :star:
- 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>
- 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>
- Help new users with issues they may encounter :muscle:
- Send a pull request with your new features and bug fixes :rocket:

Expand Down
2 changes: 2 additions & 0 deletions charts/logging-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Use `createCustomResource=false` with Helm v3 to avoid trying to create CRDs fro
| nodeSelector | object | `{}` | |
| tolerations | list | `[]` | Node Tolerations |
| affinity | object | `{}` | Node Affinity |
| topologySpreadConstraints | list | `[]` | Pod Topology Spread Constraints |
| strategy | object | `{}` | Deployment Strategy |
| podLabels | object | `{}` | Define which Nodes the Pods are scheduled on. |
| logging.enabled | bool | `false` | Logging resources are disabled by default |
| logging.loggingRef | string | `""` | Reference to the logging system. Each of the loggingRefs can manage a fluentbit daemonset and a fluentd statefulset. |
Expand Down
8 changes: 8 additions & 0 deletions charts/logging-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ include "logging-operator.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.strategy }}
strategy:
{{- toYaml .Values.strategy | nindent 4 }}
{{- end }}
template:
metadata:
labels:
Expand Down Expand Up @@ -77,3 +81,7 @@ spec:
{{- else if .Values.rbac.enabled }}
serviceAccountName: {{ include "logging-operator.fullname" . }}
{{- end }}
{{- if .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/logging-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ tolerations: []
# -- Node Affinity
affinity: {}

# -- Pod Topology Spread Constraints
topologySpreadConstraints: []

# -- Deployment Strategy
strategy: {}

# -- Define which Nodes the Pods are scheduled on.
podLabels: {}

Expand Down

0 comments on commit 1f0a20f

Please sign in to comment.