Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove post-install annotation for apprepositories #1754

Merged
merged 1 commit into from
Jun 3, 2020

Conversation

absoludity
Copy link
Contributor

We had added this to ensure that during installation of Kubeapps, the
creation of the app repository resources wouldn't trigger a sync job
to run before the upgrade job updates the schema. But one case we did
not anticipate is that if the installation is held up (network issues
or similar) and the helm install fails, the resources won't be present.

I think it's better to ensure they are always present so that the sync
job can eventually sync them (and update to safely migrate the schema
rather than recreating it - as per #1560).

Description of the change

As above

Benefits

If the helm install command fails because a post-install job cannot run (yet), all resources are still present on the cluster.

Possible drawbacks

AppRepository creation could trigger a sync job before the backend schema is recreated, which could mean another cycle until the repo is scanned (possibly).

Applicable issues

  • fixes #

Additional information

We had added this to ensure that during installation of Kubeapps, the
creation of the app repository resources wouldn't trigger a sync job
to run before the upgrade job updates the schema. But one case we did
not anticipate is that if the installation is held up (network issues
or similar) and the helm install fails, the resources won't be present.

I think it's better to ensure they are always present so that the sync
job can eventually sync them (and update to safely migrate the schema
rather than recreating it - as per vmware-tanzu#1560).
@absoludity absoludity requested a review from andresmgot May 27, 2020 00:00
Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

Also, another point to create these after the installation is to make sure that the CRD has been created. We found some race conditions about this with Helm 2 but probably it's not an issue with Helm 3.

@absoludity absoludity merged commit 60ec356 into vmware-tanzu:master Jun 3, 2020
@absoludity absoludity deleted the no-post-install branch June 3, 2020 01:26
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.

2 participants