Skip to content

Commit

Permalink
fix swapped liveness/readiness http paths. (operator-framework#4541) (o…
Browse files Browse the repository at this point in the history
…perator-framework#4546)

* fixed scaffold template for the manager resource (ansible/helm)

Signed-off-by: Florin Hillebrand <flozzone@gmail.com>
  • Loading branch information
flozzone authored and reinvantveer committed Feb 20, 2021
1 parent b174477 commit 7db2ba0
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 12 deletions.
26 changes: 26 additions & 0 deletions changelog/fragments/swap-readiness-liveness-paths-4541.yaml
@@ -0,0 +1,26 @@
# issue #4541
entries:
- description: >
For Ansible/Helm-based operators, fix swapped readinessProbe/livenessProbe in manager
kind: "bugfix"
breaking: false
migration:
header: For Ansible/Helm-based operators, swap the paths of the probes in config/manager/manager.yaml.
body: >
The liveness and readiness probe endpoints were incorrectly named, although this mismatch will not affect their behavior.
To fix, swap the `readinessProbe` and `livenessProbe` HTTP paths in `config/manager/manager.yaml`:
```
livenessProbe:
httpGet:
path: /healthz
port: 6789
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /readyz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
```
Expand Up @@ -80,13 +80,13 @@ spec:
image: {{ .Image }}
livenessProbe:
httpGet:
path: /readyz
path: /healthz
port: 6789
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /healthz
path: /readyz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
Expand Down
Expand Up @@ -77,13 +77,13 @@ spec:
name: manager
livenessProbe:
httpGet:
path: /readyz
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /healthz
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
Expand Down
Expand Up @@ -126,14 +126,14 @@ spec:
image: quay.io/example/memcached-operator:v0.0.1
livenessProbe:
httpGet:
path: /readyz
path: /healthz
port: 6789
initialDelaySeconds: 15
periodSeconds: 20
name: manager
readinessProbe:
httpGet:
path: /healthz
path: /readyz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
Expand Down
Expand Up @@ -33,13 +33,13 @@ spec:
image: controller:latest
livenessProbe:
httpGet:
path: /readyz
path: /healthz
port: 6789
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /healthz
path: /readyz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
Expand Down
Expand Up @@ -211,14 +211,14 @@ spec:
image: quay.io/example/memcached-operator:v0.0.1
livenessProbe:
httpGet:
path: /readyz
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
name: manager
readinessProbe:
httpGet:
path: /healthz
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
Expand Down
4 changes: 2 additions & 2 deletions testdata/helm/memcached-operator/config/manager/manager.yaml
Expand Up @@ -30,13 +30,13 @@ spec:
name: manager
livenessProbe:
httpGet:
path: /readyz
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /healthz
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
Expand Down

0 comments on commit 7db2ba0

Please sign in to comment.