Hi all, I am trying to use the Pulumi Kubernetes ...
# kubernetes
b
Hi all, I am trying to use the Pulumi Kubernetes Operator in Flux to configure Harbor. For this I want to use a local state as a backend, as this is just for a test setup. I have tried this:
Copy code
apiVersion: <http://pulumi.com/v1|pulumi.com/v1>
kind: Program
metadata:
  name: harbor-pulumi-program
  namespace: pulumi-operator
program:
  resources:
    project:
      type: pulumiverse:harbor:Project
      properties:
        providerName: docker-hub
        endpointUrl: <https://hub.docker.com>
        name: pulumi-harbor
---
apiVersion: <http://pulumi.com/v1|pulumi.com/v1>
kind: Stack
metadata:
  name: harbor-pulumi-stack
  namespace: pulumi-operator
spec:
  stack: harbor-pulumi-stack
  backend: file://./state-file # This does not work. The operator throws an error, that the file does not exist.
  programRef:
    name: harbor-pulumi-program
  destroyOnFinalize: true
  config:
    harbor:url: <https://harbor.harbor>
    harbor:username: admin
    harbor:password: Harbor12345
I expected the local backend config to create a state if it does not exist, and as I could not find any documentation on how to work with the local backend when using the Pulumi Kubernetes Operator, I am left quite confused figuring out what is required to make this setup work. Is there anyone here that can help me?