https://pulumi.com logo
Title
b

bright-controller-92189

01/18/2023, 12:27 PM
Hello community , I am trying to test Pulumi in order to assess some functionality for IAS automation, I have the following simple use-case: Test pulumi-operator with Pulumi Service backend and try to deploy the pulumi-nginx example https://github.com/metral/pulumi-nginx , but I've got the following problem when applying the Stack , logs from the operator:
{
  "level": "error",
  "ts": "2023-01-18T11:54:20.674Z",
  "logger": "controller_stack",
  "msg": "Failed to update Stack",
  "Request.Namespace": "default",
  "Request.Name": "nginx-k8s-stack-1",
  "Stack.Name": "alinalex/nginx/dev",
  "error": "installing project dependencies: exit status 1",
  "stacktrace": "<http://github.com/pulumi/pulumi-kubernetes-operator/pkg/controller/stack.(*ReconcileStack).Reconcile\n\t/home/runner/work/pulumi-kubernetes-operator/pulumi-kubernetes-operator/pkg/controller/stack/stack_controller.go:459\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:214|github.com/pulumi/pulumi-kubernetes-operator/pkg/controller/stack.(*ReconcileStack).Reconcile\n\t/home/runner/work/pulumi-kubernetes-operator/pulumi-kubernetes-operator/pkg/controller/stack/stack_controller.go:459\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:214>"
}
Any clue about the error?
e

echoing-dinner-19531

01/18/2023, 12:59 PM
I haven't used the operator but I'd first check to see if that works just running the program locally, might be that example is broken.
b

bright-controller-92189

01/18/2023, 1:16 PM
I've just tried locally and node throws error on installation, so the example is broken, the problem is that is being referenced everywhere!
e

echoing-dinner-19531

01/18/2023, 2:44 PM
Yeh I'll ping this to our docs team, see if we can get those references fixed in our stuff at least
b

bright-controller-92189

01/18/2023, 3:07 PM
I've used kubernetes-ts-nginx/ from the -> https://github.com/pulumi/examples
Example with the Stack CR:
apiVersion: <http://pulumi.com/v1|pulumi.com/v1>
kind: Stack
metadata:
  name: nginx-k8s-stack-4
spec:
  envRefs:
    PULUMI_ACCESS_TOKEN:
      type: Secret
      secret:
        name: pulumi-api-secret
        key: accessToken
  stack: alinalex/k8s-nginx/dev
  projectRepo: <https://github.com/pulumi/examples>
  repoDir: kubernetes-ts-nginx/
  branch: "refs/heads/master"
  destroyOnFinalize: true