Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Small sync fixes Helm operator #2005

Merged
merged 2 commits into from
May 2, 2019
Merged

Small sync fixes Helm operator #2005

merged 2 commits into from
May 2, 2019

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented May 1, 2019

This PR does two things:

  • it fetches HelmReleases before applying status updates
  • it detects and ignores HelmRelease status updates while determining if it should proceed with the upgrade of a HelmRelease

@hiddeco hiddeco added the helm label May 1, 2019
Due to the status of the HelmRelease being updated in two different
processes, we sometimes got a "the object has been modified; please
apply your changes to the latest version and try again" message back
from the API.

Fetching a fresh copy of the resource and applying the updates on top
of that minimizes the chance this happens.
@hiddeco hiddeco force-pushed the helm/sync-fixes branch from 00e5a09 to d51b182 Compare May 1, 2019 16:15
As the update function receives any update, and we do not want to run
expensive dry-runs for status updates, but do want them for resyncs.

Theoretically this should not result in resyncs being skipped, as a
resync will redeliver a resource that was already known, which
should equal to oldFhr.Status == newFhr.Status.
@hiddeco hiddeco force-pushed the helm/sync-fixes branch from d51b182 to 6635ca8 Compare May 1, 2019 16:33
@hiddeco hiddeco merged commit 65ad076 into master May 2, 2019
@hiddeco hiddeco deleted the helm/sync-fixes branch May 2, 2019 08:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants