Skip to content

Read version after init#207

Merged
marcopiraccini merged 4 commits into
mainfrom
read-version-after-init
Jul 8, 2026
Merged

Read version after init#207
marcopiraccini merged 4 commits into
mainfrom
read-version-after-init

Conversation

@marcopiraccini

@marcopiraccini marcopiraccini commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

On registration, watt-extra sets PLT_DEPLOYMENT_VERSION from the version ICC returns (deploymentVersion in the /pods/:id/instance response), before the runtime spawns, so the app (e.g. Platformatic World) reads it from the environment without touching the Kubernetes API.

If ICC was unreachable at boot and becomes reachable later, the runtime has already spawned with a frozen env, so the version is delivered to the running worker through the shared context (updateSharedContext) instead, with no restart.

Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
@marcopiraccini marcopiraccini marked this pull request as ready for review July 8, 2026 13:34

@leorossi leorossi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ivan-tymoshenko ivan-tymoshenko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@marcopiraccini marcopiraccini merged commit 70d815a into main Jul 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants