Commit 4e849d6
Support file-based health checks with Liberty (#788)
* Use enableFileBased flag for probes
* Update bundle manifests
* Check nil probes and set defaults
* Update openlibertyapplication_controller.go
* Add MP_HEALTH_FILE_UPDATE_INTERVAL env
* Update utils.go
* Update utils.go
* Fix health check script command
* Parametrize file based health check scripts
* Rely on PATH for Liberty helpers/runtime scripts
* Update utils.go
* Update utils.go
* Add .spec.probes.fileDirectory flag
* Set probe timeout and period defaults
* Fix ReadinessProbeFileBasedScriptName ref
* Prevent default probes being overridden and always update Exec field
* Remove probe handlers before configuring file-based probe
* Allow Exec override in file-based probes config
* Add probe return stmt
* Init probe Exec after period/timeout seconds
* Set ProbeHandler instead of Exec to nil
* Clear probe settings when file-based disabled
* Set instance probes directly
* Add probe nil check
* Use CustomizeProbeDefaults from RCO
* Use DeepCopy instance when setting probes
* Revert new instance change
* Set custom probe file location
* Update utils.go
* Add checkInterval and startupCheckInterval to probes config
* Add probe fields descriptions to CSV
* Debug message
* Parse unstructured obj for image metadata
* Update openlibertyapplication_controller.go
* Read raw extension bytes from DockerImageMetadata
* Add .spec.importPolicy field
* Add image fetcher
* Update go.mod to add openshift image libraries
* Add file-based health check with Liberty version guard
* Parse image ID and tag separately before fallback to latest tag
* Return manage error when version is guarded
* Pull image w/o openshift imagestream
* rm setting image.Namespace
* Set pullSecret to nil when unconfigured
* Add debug statements
* Track deprecated liberty version labels
* Reconcile serviceaccount before pulling images
* Check if SA pull secret exists before pulling image
* Reuse credentials context and add retry flag
* Include imageRef.ID as manifest digest
* Add config to skip liberty version checks
* Prevent liberty version checks on latest tag
* Upgrade liberty version packaged with operator
* Cache the latest image version to skip validation for up-to-date apps
* Remove unused operator configs
* Add caching to track Liberty versions and opt out of version guards when the latest image has drifted out-of-date
* Track latest image last pull
* Track latest liberty image in cache
* Track image ID or digest in cache
* Remove latest image optimization and refresh image 2x/day
* Nest image.go into a package
* Revert liberty version secutil update
* Revert secutil version update
* Add imageVersionChecksRefreshIntervalMinutes config
* Remove importPolicy.insecure flag
* Only use Liberty version checks when the required features are enabled
* Have .probes.checkInterval and .probes.startupCheckInterval take precedence over .spec.env
* Remove 25.0.0.6-beta refs
* Use Container image when referring to images
* Pull runtime-component-operator@fb-probes
* Modify the appContainer directly using CustomizePodSpecFileBasedProbes
* Pull runtime-component-operator@fb-probes
* Make ManageError and ManageSuccess use warnings
* Fix checkInterval typo
* Add com.ibm.websphere.liberty.version to supported Liberty version labels
* Filter to ignore SHA values only and occasionally update images that couldn't be pulled
* Track .status.pulledImageReference to re-pull any applicationImage that has changed
* Exit CustomizePodSpecFileBasedProbes early if instance isn't using it
---------
Co-authored-by: Leo Christy Jesuraj <[email protected]>1 parent a7b2d80 commit 4e849d6
File tree
15 files changed
+2572
-1269
lines changed- api
- v1beta2
- v1
- bundle/manifests
- config
- crd/bases
- manifests/bases
- internal
- controller
- deploy
- kubectl
- kustomize/daily/base
- utils
- image
15 files changed
+2572
-1269
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
207 | 227 | | |
208 | 228 | | |
209 | 229 | | |
| |||
478 | 498 | | |
479 | 499 | | |
480 | 500 | | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
486 | 507 | | |
487 | 508 | | |
488 | 509 | | |
| |||
964 | 985 | | |
965 | 986 | | |
966 | 987 | | |
967 | | - | |
| 988 | + | |
968 | 989 | | |
969 | 990 | | |
970 | 991 | | |
971 | 992 | | |
972 | | - | |
| 993 | + | |
973 | 994 | | |
974 | 995 | | |
975 | 996 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
| 705 | + | |
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
| 710 | + | |
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
| |||
0 commit comments