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 import for Provider using server-side diff #1872

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

lblackstone
Copy link
Member

@lblackstone lblackstone commented Jan 18, 2022

Proposed changes

Related issues (optional)

Fix #1849

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@@ -2552,6 +2552,9 @@ func (k *kubeProvider) tryServerSidePatch(oldInputs, newInputs *unstructured.Uns
return nil, nil, false
}
}
if err != nil {
return nil, nil, false
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add an integration test?

Copy link
Member Author

@lblackstone lblackstone Jan 18, 2022

Choose a reason for hiding this comment

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

I worked on this for awhile today, but can't figure out a reasonable way to test with our existing framework since the bug is specific to using the CLI import command. Since the fix is just handling an unhandled error case, I'm going to defer automated testing for now. I verified the fix manually.

@lblackstone lblackstone merged commit f806614 into master Jan 18, 2022
@pulumi-bot pulumi-bot deleted the lblackstone/ss-import-fix branch January 18, 2022 22:11
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 import resources to a provider which enables sever-side-apply
2 participants