-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix swapped liveness/readiness http paths. (#4541)
* created changelog fragment * fixed scaffold template for the manager resource (ansible/helm) * fixed testdata (ansible/helm) Signed-off-by: Florin Hillebrand <flozzone@gmail.com>
- Loading branch information
Showing
7 changed files
with
41 additions
and
12 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
changelog/fragments/swap-readiness-liveness-paths-4541.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 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: > | ||
If the project structure has been scaffolded with operator-sdk >= v1.4.0, then the | ||
HTTP paths for the `readinessProbe` and `livenessProbe` in the manager resource are wrong. | ||
To fix this, swap both HTTP paths `config/manager/manager.yaml`. At the end you should have the | ||
following probes in the deployment resource for the manager: | ||
``` | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 6789 | ||
initialDelaySeconds: 15 | ||
periodSeconds: 20 | ||
readinessProbe: | ||
httpGet: | ||
path: /readyz | ||
port: 6789 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 10 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters