carvel-dev / carvel-dev/kapp-controller

Right method to know the version of a package install

Open
#749 3 comments 1 reaction 0 assignees View on GitHub
awaiting-input discussion priority/awaiting-more-evidence
Dominant language
Go
Stars
323
Forks
127
Avg merge
2d 16h
Merged PRs (30d)
4

Description

Say there are 2 different versions (`v1`, `v2`) of a specific package. I've installed version `v2` version of the package.
Say I try to downgrade for some reason to `v1`. And the package install reconciliation fails. In this case, the `v2` of the app is still running.

A package Install's Status has both `version` and `lastAttemptedVersion`
- `version` seems to be the currently resolved version, which is `v1`
- `lastAttemptedVersion` seems to be the attempted version, successful or unsuccessful
- There is a possibility that this can denote a failed reconciliation as well.

In this case what is the best way to know which version is currently running in the cluster from the status field?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.