Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Helm Release fails with "the server could not find the requested…
… resource" (#2677) <!--Thanks for your contribution. See [CONTRIBUTING](CONTRIBUTING.md) for Pulumi's contribution guidelines. Help us merge your changes more quickly by adding more details such as labels, milestones, and reviewers.--> ### Proposed changes <!--Give us a brief description of what you've done and what it solves. --> This PR fixes an intermittent problem that resembles: ``` kubernetes:helm.sh/v3:Release (mongodb): error: 1 error occurred: * Helm release "mongodb/mongodb-456643ba" failed to initialize completely. Use Helm CLI to investigate.: failed to become available within allocated timeout. Error: Helm Release mongodb/mongodb-456643ba: release mongodb-456643ba failed, and has been rolled back due to atomic being set: failed to create resource: the server could not find the requested resource ``` The problem was that a Go struct (containing a client-go rest config) was being shared and mutated by numerous independent routines. The solution was to copy the struct. ### Related issues (optional) <!--Refer to related PRs or issues: #1234, or 'Fixes #1234' or 'Closes #1234'. Or link to full URLs to issues or pull requests in other GitHub repositories. --> Closes #2481
- Loading branch information