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

Fix snapshot rollback without credentials or storage flows #2122

Merged
merged 5 commits into from
May 10, 2023

Conversation

Pezmc
Copy link
Contributor

@Pezmc Pezmc commented May 10, 2023

Description

Before this PR, if importing a snapshot with credentials or with storage flows into a project that doesn't have existing objects in the database, the import would fail.

This PR extracts the existing createOrUpdate logic into controllers for StorageFlows and StorageCredentials, and uses that logic for snapshot imports as well as project imports.

Related Issue(s)

Fixes #2108

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on flowforge/helm to update ConfigMap Template
    • Issue/PR raised on flowforge/CloudProject to update values for Staging/Production

Labels

  • Backport needed? -> add the backport label
  • Includes a DB migration? -> add the area:migration label

@Pezmc Pezmc requested review from knolleary and Steve-Mcl May 10, 2023 13:15
@knolleary knolleary merged commit 253d575 into main May 10, 2023
@knolleary knolleary deleted the fix-2108-storage-credentials branch May 10, 2023 13:20
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.

Cannot rollback to a snapshot that contains credentials if instance doesn't already have credentials
2 participants