The values are available in a segregated fashion for the Post-Hook interface, which makes it difficult to keep track of updates to the CR.
The values are available at:
release.Config: Only updated if the helm release is affected
release.Chart.Values: Only contains the values of the helm-chart at the time of change in helm-release.
obj *unstructured.Unstructured: This map contains a key "spec", with updated values, including some 'operator-only' that do not affect the release.
The process of using updated values is much simpler for Pre-Hooks, they are provided with a map of all three values, and Override values coalesced into a single place.
The values are available in a segregated fashion for the Post-Hook interface, which makes it difficult to keep track of updates to the CR.
The values are available at:
release.Config: Only updated if the helm release is affectedrelease.Chart.Values: Only contains the values of the helm-chart at the time of change in helm-release.obj *unstructured.Unstructured: This map contains a key "spec", with updated values, including some 'operator-only' that do not affect the release.The process of using updated values is much simpler for Pre-Hooks, they are provided with a map of all three values, and Override values coalesced into a single place.