Skip to content

Commit fbea279

Browse files
author
k.s.petrov
committed
Add support for passing extra command-line args to the operator via Helm values
This change introduces the ability to specify additional command-line arguments for the Postgres Operator via the "extraArgs" field in values.yaml. Documentation has been updated with details on new arguments "-kubeqps" and "-kubeburst" added before: zalando#2667. The chart version is bumped to 1.14.1 to reflect these changes.
1 parent 68c4b49 commit fbea279

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

charts/postgres-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: postgres-operator
3-
version: 1.14.0
3+
version: 1.14.1
44
appVersion: 1.14.0
55
home: https://github.com/zalando/postgres-operator
66
description: Postgres Operator creates and manages PostgreSQL clusters running in Kubernetes

charts/postgres-operator/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ spec:
3737
- name: {{ .Chart.Name }}
3838
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
3939
imagePullPolicy: {{ .Values.image.pullPolicy }}
40+
{{- if .Values.extraArgs }}
41+
args:
42+
{{ toYaml .Values.extraArgs | indent 8 }}
43+
{{- end }}
4044
env:
4145
{{- if .Values.enableJsonLogging }}
4246
- name: ENABLE_JSON_LOGGING

charts/postgres-operator/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ configTarget: "OperatorConfigurationCRD"
1818
# JSON logging format
1919
enableJsonLogging: false
2020

21+
# Command-line options for the operator
22+
extraArgs: []
23+
2124
# general configuration parameters
2225
configGeneral:
2326
# the deployment should create/update the CRDs

docs/reference/command_line_and_environment.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ The following command-line options are supported for the operator:
2323
off can can be overridden by the aforementioned operator configuration
2424
option.
2525

26+
* **-kubeqps**
27+
set the maximum number of Kubernetes API requests per second. Default is 10.
28+
29+
* **-kubeburst**
30+
set the burst limit for Kubernetes API requests, allowing temporary spikes beyond the configured QPS. Default is 20.
31+
2632
In addition to that, standard [glog
2733
flags](https://godoc.org/github.com/golang/glog) are also supported. For
2834
instance, one may want to add `-alsologtostderr` and `-v=8` to debug the

0 commit comments

Comments
 (0)