Repository navigation
[Helm] Start the server with the observability port and probe /readyz #2063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
ed09cf5
[Docs] Add a Helm deployment guide and the chart release steps
shba24 4711033
[Docs] Check the UI image at release and keep resource names on upgrade
shba24 123fb59
[Docs] Run the release check logged out, use X.Y.Z, and note policy r…
shba24 68b723b
[Docs] Say policy refresh applies to PostgreSQL, and state the push rule
shba24 c6d6c76
[Docs] Drop the UI-off notes now that the chart keeps the UI on
shba24 2088e2f
[Docs] Use the kept resource names and add a step to bump the pinned …
shba24 7f20aa3
[Docs] Update the pinned helper images to latest stable each release
shba24 358ad22
[Docs] Address review: reorder the release steps, name the image requ…
shba24 f619b57
[Docs] Run the release check fully logged out and tidy the helm guide…
shba24 9e9ab2d
[Docs] Scope the release image check to default values and trim repeats
shba24 44f3f9c
[Docs] Point to the Docker Hub organization's owners for the release …
shba24 1e16afe
[Docs] Name only the Docker Hub organization's owners as the release …
shba24 bc28200
[Docs] Link the release managers to the Docker Hub organization's Own…
shba24 c4ca1cd
[Docs] Point to the /helm/ owners in CODEOWNERS for the release managers
shba24 847c39b
[Docs] Address review: log out only for the chart fetch, and clarify …
shba24 572e0c2
[Helm] Add lifecycle and terminationGracePeriodSeconds for the server…
shba24 2b2a2af
[Helm] Keep an explicit terminationGracePeriodSeconds of 0
shba24 0725318
[Docs] Clarify the shutdown timeout and when a preStop sleep avoids d…
shba24 34160b1
[Docs] Leave headroom in the grace period beyond the sleep and shutdo…
shba24 5497d87
[Helm] Start the server with the observability port and probe /readyz
shba24 b76224e
[Helm] Default the observability port for upgrades that reuse values
shba24 2e56134
[Helm] Note the server image needed for a source-checkout install
shba24 d3e5e16
[Helm] Make the observability port optional and check rendering in CI
shba24 1af6e87
[Helm] Make the chart render checks robust
shba24 3a98147
[Helm] Keep the readiness probe off by default
shba24 e4efa5c
[Helm] Reject an observability port equal to the API port, and docume…
shba24 0fdde72
[Docs] Say that passing any values drops the earlier install's values…
shba24 0727b85
Merge stack/ep3-helm-docs (#2021): helm upgrade wording into stack/ep…
shba24 03b1351
Merge stack/ep3-helm-graceful-shutdown (#2060): helm upgrade wording …
shba24 b202f65
Merge main into stack/ep3-helm-graceful-shutdown
shba24 b35dce9
[Helm] Render the graceful shutdown values in chart lint and point th…
shba24 fcbf6f5
Merge stack/ep3-helm-graceful-shutdown (#2060): main and review fixes…
shba24 28ff8b0
[Helm] Keep the default-values chart lint next to the graceful shutdo…
shba24 6a05d37
Merge stack/ep3-helm-graceful-shutdown (#2060): default-values chart …
shba24 154cce7
Merge main into stack/ep3-helm-graceful-shutdown
shba24 07fd016
Merge stack/ep3-helm-graceful-shutdown (#2060) into stack/ep14-helm-r…
shba24 a6b77ec
[Helm] Pass --port with --obs-port and test every custom probe
shba24 7b92ac3
[Helm] Always start the server on server.deployment.port
shba24 14f1a8d
[Helm] Document the fixed server command and check the guard's message
shba24 51541c9
[Helm] Call the server through its Service port in the create-users job
shba24 b83603c
[Helm] Let users override the server container command
shba24 830bdb3
[Helm] Default the server command when the value is missing
shba24 32ad3c4
Merge branch 'main' into stack/ep14-helm-readyz
shba24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -51,6 +51,63 @@ jobs: | |
| - name: Lint the chart | ||
| run: ct lint --charts helm --validate-maintainers=false --check-version-increment=false | ||
|
|
||
| - name: Check how non-default values render | ||
| run: | | ||
| set -euo pipefail | ||
| # Without obsPort the server gets --port but no --obs-port, and the probes check the API port. | ||
| out="$(helm template uc helm --set server.deployment.port=9000 \ | ||
| --set server.deployment.enableReadinessProbe=true)" | ||
| grep -A1 -- '- --port' <<<"$out" | grep -qF -- '- "9000"' | ||
| ! grep -qF -- '--obs-port' <<<"$out" || exit 1 | ||
| grep -A1 'readinessProbe:' <<<"$out" | grep -qF 'tcpSocket:' | ||
| grep -A1 'command:' <<<"$out" | grep -qF -- '- ./bin/start-uc-server' | ||
| # A custom command replaces the default one. | ||
| out="$(helm template uc helm --set 'server.deployment.command={/entrypoint.sh,./bin/start-uc-server}')" | ||
| grep -A2 'command:' <<<"$out" | grep -qF -- '- /entrypoint.sh' | ||
| ! grep -A1 'command:' <<<"$out" | grep -qF -- '- ./bin/start-uc-server' || exit 1 | ||
| # An upgrade with --reuse-values from an older release has no command value; keep the default. | ||
| out="$(helm template uc helm --set server.deployment.command=null)" | ||
| grep -A1 'command:' <<<"$out" | grep -qF -- '- ./bin/start-uc-server' | ||
| # The create-users job calls the server through its Service, so it uses the Service port. | ||
| out="$(helm template uc helm --set server.deployment.port=9000 --set server.service.port=8181 \ | ||
| --set auth.enabled=true --set 'auth.users[0].name=admin' --set 'auth.users[0][email protected]')" | ||
| grep -qF 'uc-unitycatalog-server:8181/api/' <<<"$out" | ||
| ! grep -qF 'uc-unitycatalog-server:9000' <<<"$out" || exit 1 | ||
| # With obsPort, the flag, the container port and the probes all use it. | ||
| out="$(helm template uc helm --set server.deployment.obsPort=9099 \ | ||
| --set server.deployment.enableReadinessProbe=true \ | ||
| --set server.deployment.enableLivenessProbe=true)" | ||
| grep -A1 -- '- --obs-port' <<<"$out" | grep -qF -- '- "9099"' | ||
| grep -qF 'containerPort: 9099' <<<"$out" | ||
| ready="$(grep -A3 'readinessProbe:' <<<"$out")" | ||
| grep -qF 'path: /readyz' <<<"$ready" | ||
| grep -qF 'port: obs' <<<"$ready" | ||
| live="$(grep -A3 'livenessProbe:' <<<"$out")" | ||
| grep -qF 'path: /livez' <<<"$live" | ||
| grep -qF 'port: obs' <<<"$live" | ||
| # obsPort must differ from port. | ||
| if err="$(helm template uc helm --set server.deployment.obsPort=8080 2>&1)"; then exit 1; fi | ||
| grep -qF 'obsPort must differ' <<<"$err" | ||
| # Custom probes render as given, not as the whole chart context. | ||
| args=(--set ui.enabled=true) | ||
| for c in server ui; do | ||
| for probe in readiness liveness startup; do | ||
| args+=(--set "$c.deployment.enable${probe^}Probe=true" | ||
| --set "$c.deployment.${probe}Probe.httpGet.path=/custom-$c-$probe" | ||
| --set "$c.deployment.${probe}Probe.httpGet.port=8080") | ||
| done | ||
| done | ||
| out="$(helm template uc helm "${args[@]}")" | ||
| for c in server ui; do | ||
| for probe in readiness liveness startup; do | ||
| grep -qF "path: /custom-$c-$probe" <<<"$out" | ||
| done | ||
| done | ||
| ! grep -qE '^ +(Capabilities|Release|Values):' <<<"$out" || exit 1 | ||
| # An explicit grace period of 0 is kept. | ||
| out="$(helm template uc helm --set server.deployment.terminationGracePeriodSeconds=0)" | ||
| grep -qE '^ +terminationGracePeriodSeconds: 0$' <<<"$out" | ||
|
|
||
| - name: Build the server and UI images | ||
| run: | | ||
| docker build -t unitycatalog:ci . | ||
|
|
@@ -82,6 +139,8 @@ jobs: | |
| helm install uc "$RUNNER_TEMP/unitycatalog-chart-0.0.0-ci.tgz" --namespace uc --create-namespace --wait --timeout 600s \ | ||
| --set server.deployment.image.repository=unitycatalog \ | ||
| --set server.deployment.image.pullPolicy=Never \ | ||
| --set server.deployment.obsPort=8090 \ | ||
| --set server.deployment.enableReadinessProbe=true \ | ||
| --set ui.deployment.image.repository=unitycatalog-ui \ | ||
| --set ui.deployment.image.pullPolicy=Never | ||
| helm test uc --namespace uc --logs | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.