• c

    calm-agent-50232

    8 months ago
    how do you get a Stack to use a non-main branch? i get this error using any non-main branch name or ref path
    error":"failed to create local workspace: failed to create workspace, unable to enlist in git repo: unable to checkout branch: reference not found"
    here’s the config:
    spec:
      projectRepo: <https://gitlab.com/mycompany/sre/pko-poc.git>
      stack: mycompany/infra-apps/poc
      branch: "refs/heads/main"  #this works for some reason but /refs/heads/poc results in reference not found
      #branch: "poc"             #this also results in reference not found
      repoDir: infra-apps
        envRefs:
        PULUMI_ACCESS_TOKEN:
          type: Secret
          secret:
            name: pulumi-api-secret
            key: accessToken
      gitAuth:
        accessToken:
          type: Secret
          secret:
            name: git-secret
            key: privateToken
    this is a private gitlab repo but i have confirmed auth is successful and if i point it at
    /refs/heads/main
    then it does update the pulumi project thanks
    c
    s
    10 replies
    Copy to Clipboard
  • b

    brainy-window-77332

    8 months ago
    Does the operator support drift detection?
    b
    s
    +2
    11 replies
    Copy to Clipboard
  • s

    stocky-motorcycle-65008

    7 months ago
    Hello there, can I use the the Stack CRD without PULUMI_ACCESS_TOKEN ?
    s
    q
    5 replies
    Copy to Clipboard
  • s

    stocky-motorcycle-65008

    7 months ago
    Ok, I'm hooked! |'ve tested it with a simple guestbook app on a local kind cluster. https://github.com/tcrst/pulumi-k8s-operator-stacks very powerful Thinking on a solution to automate the images inside my k8s stack, any idea? :-?
    s
    q
    7 replies
    Copy to Clipboard
  • e

    early-notebook-60164

    5 months ago
    I’m experimenting with the operator for a project at work. I can see that there is a way to set stack secrets via Kubernetes Secret. Is there a way to set stack config via ConfigMaps? From the docs, it looks like this can only be provided inline.
    e
    1 replies
    Copy to Clipboard
  • b

    bored-processor-13571

    5 months ago
    Hi everyone, i am trying to get the operator to work with a private git host using private key auth. There seems to be issues with knownhosts:
    failed to create local workspace: failed to create workspace, unable to enlist in git repo: unable to clone repo: ssh: handshake failed: knownhosts: key is unknown"
    I've even went into the operator container and tried
    ssh-keyscan -p 4567 -H <http://git.host.com|git.host.com> >> ~/.ssh/known_hosts
    but it doesn't do anything has anybody experienced something similar?
    b
    2 replies
    Copy to Clipboard