Hello everyone, I am currently setting up a Pulum...
# general
i
Hello everyone, I am currently setting up a Pulumi Kubernetes operator. For this I have created a stack object, which loads a Pulumi program from a private repository. This works quite well so far. The Polumi program uses a Terraform Provider (any Teraform Provider) to create a resource on the STACKIT Cloud. I was able to test the Pulumi program (ts) locally and it works perfectly with the provider. If the program now wants to execute a stack resouce on the Pulumi Kubernetes operator, an error is thrown: The Pulumi CLI does not support parameterization. Please update the Pulumi CLI
Copy code
udating (new-boo-stack):"
updating...."
updating......."
  pulumi:pulumi:Stack infrastructure-new-boo-stack running "
updating......."
  pulumi:pulumi:Stack infrastructure-new-boo-stack running error: Running program '/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/index.ts' failed with an unhandled exception:"
  pulumi:pulumi:Stack infrastructure-new-boo-stack running error: Running program '/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/index.ts' failed with an unhandled exception:"
  pulumi:pulumi:Stack infrastructure-new-boo-stack **failed** 2 errors"
agnostics:"
pulumi:pulumi:Stack (infrastructure-new-boo-stack):"
  error: Running program '/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/index.ts' failed with an unhandled exception:"
  Error: The Pulumi CLI does not support parameterization. Please update the Pulumi CLI"
      at Object.<anonymous> \u001b[90m(/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39msdks/stackit/utilities.ts:104:10\u001b[90m)\u001b[39m"
      at Generator.next (<anonymous>)"}
      at \u001b[90m/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39msdks/stackit/bin/utilities.js:10:71"
      at new Promise (<anonymous>)"}
      at __awaiter \u001b[90m(/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39msdks/stackit/bin/utilities.js:6:12\u001b[90m)\u001b[39m"
      at Object.getPackage \u001b[90m(/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39msdks/stackit/bin/utilities.js:106:12\u001b[90m)\u001b[39m"
      at new SkeCluster \u001b[90m(/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39msdks/stackit/skeCluster.ts:154:100\u001b[90m)\u001b[39m"
      at Object.<anonymous> \u001b[90m(/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39mindex.ts:70:17\u001b[90m)\u001b[39m"
  \u001b[90m    at Module._compile (node:internal/modules/cjs/loader:1364:14)\u001b[39m"
      at Module.m._compile \u001b[90m(/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39mnode_modules/\u001b[4m@pulumi\u001b[24m/pulumi/vendor/ts-node@7.0.1/index.js:3009:23\u001b[90m)\u001b[39m"
  error: Running program '/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/index.ts' failed with an unhandled exception:"
  \u001b[36m<ref *1>\u001b[39m Error: The Pulumi CLI does not support parameterization. Please update the Pulumi CLI"
      at Object.<anonymous> \u001b[90m(/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39msdks/stackit/utilities.ts:104:10\u001b[90m)\u001b[39m"
      at Generator.next (<anonymous>)"
      at \u001b[90m/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39msdks/stackit/bin/utilities.js:10:71"
      at new Promise (<anonymous>)"
      at __awaiter \u001b[90m(/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39msdks/stackit/bin/utilities.js:6:12\u001b[90m)\u001b[39m"
      at Object.getPackage \u001b[90m(/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39msdks/stackit/bin/utilities.js:106:12\u001b[90m)\u001b[39m"
      at new Provider \u001b[90m(/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39msdks/stackit/provider.ts:195:98\u001b[90m)\u001b[39m"
      at Object.<anonymous> \u001b[90m(/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39mindex.ts:6:25\u001b[90m)\u001b[39m"
  \u001b[90m    at Module._compile (node:internal/modules/cjs/loader:1364:14)\u001b[39m"
      at Module.m._compile \u001b[90m(/tmp/pulumi-working/pulumi-operator/boo-boo-boo/workspace/infrastructure/cluster/\u001b[39mnode_modules/\u001b[4m@pulumi\u001b[24m/pulumi/vendor/ts-node@7.0.1/index.js:3009:23\u001b[90m)\u001b[39m {"}
    promise: Promise { \u001b[36m<rejected>\u001b[39m \u001b[36m[Circular *1]\u001b[39m }"

sources:"
  1 unchanged"

ration: 9s"
I am using Operator version 1.16.0 with CLI version 1.30.3. Does anyone have an idea what the error could be?
f
are you able to update the
pulumi
CLI? Sounds like you're using something > 3.133.0 but not one that supports parameterization
i
Hello Robert, I have updated the CLI in the running pod once to v3.137.0. But without any difference. With the same stack as described I get the same error. Since 3.137.0 is the latest version, I think this could be a bug.
Wait, I had forgotten to change the binary. Now the operator accesses the correct version and everything works. 😀 The only remaining problem is that with the latest stable release of the Pulumi Operator Helm Chart a non-compatible CLI version is rolled out. Since we automate the deployment with Argo, I can't avoid an unpleasant workaround.
f
Nice! (to the first part) And... hm. Is that a particular github issue you're referring to?
i
No. I install the operator via Helm Chart from the oci registry. Here is the latest chart version 0.8.1. The appVersion included is 1.16.0. Chart.yaml -> https://github.com/pulumi/pulumi-kubernetes-operator/blob/pulumi-kubernetes-operator-0.8.1/deploy/helm/pulumi-operator/Chart.yaml Dockerfile -> https://github.com/pulumi/pulumi-kubernetes-operator/blob/pulumi-kubernetes-operator-0.8.1/Dockerfile If I correctly interpret Pulumi's changelog, I need at least version 3.133.0 for the parameterization of providers. CHANGELOG.md https://github.com/pulumi/pulumi/blob/master/CHANGELOG.md#31330-2024-09-16 This also fits with my experience that the problem occurs with 1.130.0 and no longer with 1.137.0. Now I am only faced with the problem that I am using an insufficiently up-to-date Pulumi version with the latest (stable) version. https://artifacthub.io/packages/helm/pulumi-kubernetes-operator/pulumi-kubernetes-operator If no updated version of a stable version is released here in the foreseeable future, I will have to build a workaround if I want to avoid using a beta version on my prod envs.
h
@icy-restaurant-5016 join us in #C01F5GS6G3X you might be interested in the latest v2 release https://www.pulumi.com/blog/pulumi-kubernetes-operator-2-0/