https://pulumi.com logo
#typescript
Title
# typescript
p

prehistoric-account-60014

05/12/2020, 6:04 PM
I’m running into some issues when attempting to run
pulumi up
in CI.
Copy code
error: no resource plugin 'kubernetes' found in the workspace or on your $PATH
I looked into existing GitHub issues but none of the solutions posted there seems to be working out.
More specifically, the command being run is this:
Copy code
pulumi -C "$target" up -s "$PULUMI_STACK" -c imageTag="$CI_COMMIT_SHA" -c environmentSlug="$CI_ENVIRONMENT_SLUG" --yes
w

white-balloon-205

05/13/2020, 4:38 AM
What does
pulumi plugin ls
tell you in this environment? Do you have a
pulumi-resource-kubernetes
plugin installed? Normally you would acquire it by running
npm install
or similar.
p

prehistoric-account-60014

05/13/2020, 12:02 PM
It was returning nothing. I realized the issue was CI caching. When running
yarn install
with a warm cache, install scripts don’t run and that’s how
@pulumi/kubernetes
sets up the plugin. Setting
PULUMI_HOME
and caching that directory together with
node_modules
fixed it for me.