Skip to content

Commit e30c91c

Browse files
committed
Added liveness and readiness probes to helm chart. Removed resource limits from olm template.
1 parent fa89178 commit e30c91c

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ Deploy chart...
263263

264264
```shell
265265
make helmchart IMG=${imageRepository} VERSION=${imageTag}
266-
helm upgrade -i namespace-configuration-operator-helmchart-test charts/namespace-configuration-operator -n namespace-configuration-operator-local --create-namespace
266+
helm upgrade -i namespace-configuration-operator-local charts/namespace-configuration-operator -n namespace-configuration-operator-local --create-namespace
267267
```
268268

269269
Delete...
270270

271271
```shell
272-
helm delete namespace-configuration-operator-helmchart-test -n namespace-configuration-operator-local
272+
helm delete namespace-configuration-operator-local -n namespace-configuration-operator-local
273273
kubectl delete -f charts/namespace-configuration-operator/crds/crds.yaml
274274
```
275275

config/helmchart/templates/_helpers.tpl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,3 @@ Selector labels
5050
app.kubernetes.io/name: {{ include "namespace-configuration-operator.name" . }}
5151
app.kubernetes.io/instance: {{ .Release.Name }}
5252
{{- end }}
53-
54-
{{/*
55-
Create the name of the service account to use
56-
*/}}
57-
{{- define "namespace-configuration-operator.serviceAccountName" -}}
58-
{{- if .Values.serviceAccount.create }}
59-
{{- default (include "namespace-configuration-operator.fullname" .) .Values.serviceAccount.name }}
60-
{{- else }}
61-
{{- default "default" .Values.serviceAccount.name }}
62-
{{- end }}
63-
{{- end }}

config/helmchart/templates/manager.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ spec:
3232
name: {{ .Chart.Name }}
3333
resources:
3434
{{- toYaml .Values.resources | nindent 12 }}
35+
livenessProbe:
36+
httpGet:
37+
path: /healthz
38+
port: 8081
39+
initialDelaySeconds: 15
40+
periodSeconds: 20
41+
readinessProbe:
42+
httpGet:
43+
path: /readyz
44+
port: 8081
45+
initialDelaySeconds: 5
46+
periodSeconds: 10
3547
{{- with .Values.nodeSelector }}
3648
nodeSelector:
3749
{{- toYaml . | nindent 8 }}

config/manager/manager.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ spec:
4444
initialDelaySeconds: 5
4545
periodSeconds: 10
4646
resources:
47-
limits:
48-
cpu: 100m
49-
memory: 30Mi
5047
requests:
5148
cpu: 100m
5249
memory: 20Mi

0 commit comments

Comments
 (0)