diff --git a/build/templates/values.yaml b/build/templates/values.yaml index 46f3190c..9a1878d2 100644 --- a/build/templates/values.yaml +++ b/build/templates/values.yaml @@ -554,6 +554,17 @@ tls: # username: john_doe # password: changeme + # Uncomment the following resources definitions or pass them from + # command line to control the CPU and memory resources allocated + # by Pods of this StatefulSet. + resources: {} + # limits: + # cpu: 100m + # memory: 512Mi + # requests: + # cpu: 100m + # memory: 512Mi + networkPolicy: enabled: false diff --git a/cockroachdb/Chart.yaml b/cockroachdb/Chart.yaml index 69ec139e..d2f64c38 100644 --- a/cockroachdb/Chart.yaml +++ b/cockroachdb/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 name: cockroachdb home: https://www.cockroachlabs.com -version: 12.0.4 +version: 12.0.5 appVersion: 23.2.4 description: CockroachDB is a scalable, survivable, strongly-consistent SQL database. icon: https://raw.githubusercontent.com/cockroachdb/cockroach/master/docs/media/cockroach_db.png diff --git a/cockroachdb/templates/cronjob-ca-certSelfSigner.yaml b/cockroachdb/templates/cronjob-ca-certSelfSigner.yaml index 903c42f7..ad8409a0 100644 --- a/cockroachdb/templates/cronjob-ca-certSelfSigner.yaml +++ b/cockroachdb/templates/cronjob-ca-certSelfSigner.yaml @@ -42,5 +42,9 @@ spec: - name: CLUSTER_DOMAIN value: {{ .Values.clusterDomain}} serviceAccountName: {{ template "rotatecerts.fullname" . }} + {{- with .Values.tls.selfSigner.resources }} + resources: {{- toYaml . | nindent 12 }} + {{- end }} + {{- end }} {{- end }} diff --git a/cockroachdb/templates/cronjob-client-node-certSelfSigner.yaml b/cockroachdb/templates/cronjob-client-node-certSelfSigner.yaml index 5c9f6d99..9b5ab52e 100644 --- a/cockroachdb/templates/cronjob-client-node-certSelfSigner.yaml +++ b/cockroachdb/templates/cronjob-client-node-certSelfSigner.yaml @@ -49,5 +49,8 @@ spec: value: {{ .Release.Namespace }} - name: CLUSTER_DOMAIN value: {{ .Values.clusterDomain}} + {{- with .Values.tls.selfSigner.resources }} + resources: {{- toYaml . | nindent 14 }} + {{- end }} serviceAccountName: {{ template "rotatecerts.fullname" . }} {{- end}} diff --git a/cockroachdb/templates/job-certSelfSigner.yaml b/cockroachdb/templates/job-certSelfSigner.yaml index 7242a68b..a38f560a 100644 --- a/cockroachdb/templates/job-certSelfSigner.yaml +++ b/cockroachdb/templates/job-certSelfSigner.yaml @@ -73,6 +73,9 @@ spec: value: {{ .Release.Namespace | quote }} - name: CLUSTER_DOMAIN value: {{ .Values.clusterDomain}} + {{- with .Values.tls.selfSigner.resources }} + resources: {{- toYaml . | nindent 12 }} + {{- end }} {{- if and .Values.tls.certs.selfSigner.securityContext.enabled }} securityContext: allowPrivilegeEscalation: false diff --git a/cockroachdb/templates/job-cleaner.yaml b/cockroachdb/templates/job-cleaner.yaml index 5b6dc52f..b26583b0 100644 --- a/cockroachdb/templates/job-cleaner.yaml +++ b/cockroachdb/templates/job-cleaner.yaml @@ -45,6 +45,9 @@ spec: env: - name: STATEFULSET_NAME value: {{ template "cockroachdb.fullname" . }} + {{- with .Values.tls.selfSigner.resources }} + resources: {{- toYaml . | nindent 14 }} + {{- end }} {{- if and .Values.tls.certs.selfSigner.securityContext.enabled }} securityContext: allowPrivilegeEscalation: false diff --git a/cockroachdb/values.yaml b/cockroachdb/values.yaml index 5d007624..3e33b470 100644 --- a/cockroachdb/values.yaml +++ b/cockroachdb/values.yaml @@ -555,6 +555,17 @@ tls: # username: john_doe # password: changeme + # Uncomment the following resources definitions or pass them from + # command line to control the CPU and memory resources allocated + # by Pods of this StatefulSet. + resources: {} + # limits: + # cpu: 100m + # memory: 512Mi + # requests: + # cpu: 100m + # memory: 512Mi + networkPolicy: enabled: false