prehistoric-account-60014
10/23/2020, 3:45 PM@pulumi/kubernetes
to the latest version (v2.6) but the state was using v2.2. In CI only the new one is installed (v2.6) and Pulumi fails because it attempts to load v2.2:
error: could not load plugin for kubernetes provider 'urn:pulumi:<snip>::pulumi:providers:kubernetes::default_2_2_2': failed to load plugin /<snip>/.pulumi/plugins/resource-kubernetes-v2.2.2/pulumi-resource-kubernetes: plugin not found
Is there a way to refresh the state so that it expects the latest version of the plugin instead of the older one?billowy-army-68599
prehistoric-account-60014
10/23/2020, 3:55 PMnpm install
) so that during that transition period one can manually install the old version?install_pulumi # installs Pulumi and configures PULUMI_HOME and credentials
yarn install
pulumi plugin install kubernetes@old
pulumi up # will move state from old to new
And then the line that installs the old plugin can be removed?billowy-army-68599
pulumi plugin install resource kubernetes v2.2.0
prehistoric-account-60014
10/23/2020, 4:07 PMpulumi plugin install
documentation specifies that if no kind/name/version is provided it will make a conservative guess as to what the project needs but running it locally, even with verbose logging results in no output (and no plugins installed)
Also, do you know why the Kubernetes plugin isnt automatically installed, but others like GCP are?billowy-army-68599
white-balloon-205
prehistoric-account-60014
10/23/2020, 4:10 PMpackage.json
it won’t automatically install it (i.e., if yarn install
is not run)pulumi plugin install
seems to be doing nothing. So I would have to hardcode pulumi plugin install resource kubernetes v2.2.2
white-balloon-205
prehistoric-account-60014
10/23/2020, 4:14 PMbillowy-army-68599
prehistoric-account-60014
10/23/2020, 8:19 PM$ pulumi plugin ls
NAME KIND VERSION SIZE INSTALLED LAST USED
gcp resource 3.25.0 101 MB n/a 40 seconds ago
kubernetes resource 2.6.3 78 MB n/a 40 seconds ago
kubernetes resource 2.2.2 53 MB n/a 1 second ago
$ pulumi up
Previewing update (makeswift/staging)
View Live: <https://app.pulumi.com/makeswift/table-webhooks/staging/previews/771837e2-7f1c-4e9d-a1eb-deaa51780236>
error: could not load plugin for kubernetes provider 'urn:pulumi:staging::table-webhooks::pulumi:providers:kubernetes::default_2_2_2': failed to load plugin /builds/makeswift/cosmos/.pulumi/plugins/resource-kubernetes-v2.2.2/pulumi-resource-kubernetes: plugin not found
INSTALLED
shows n/a
instead of the install time?pulumi plugin install resource kubernetes 2.2.2
or pulumi install resource kubernetes 2.2.2 --exact
or yarn add @pulumi/kubernetes@2.2.2
working so I had to manually update the state by exporting it, tweaking the provider versions and then importing the modified state.