carvel-dev / carvel-dev/kapp-controller
Right method to know the version of a package install
- 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
Assessment
This issue has not been assessed yet.