I’m running into some issues when attempting to ru...
# typescript
p
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
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
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.