Getdeck / getdeck

A CLI that creates reproducible Kubernetes environments for development and testing
https://getdeck.dev
Apache License 2.0
90 stars 2 forks source link

Several coinsiding errors when I try to use loki installation as instructed (deprecated and other) #129

Open andreygalizin opened 1 year ago

andreygalizin commented 1 year ago

What happened?

deck get https://raw.githubusercontent.com/Getdeck/wharf/main/loki/deck.yaml [INFO] Reading Deckfile: https://raw.githubusercontent.com/Getdeck/wharf/main/loki/deck.yaml [WARNING] 'type: file' is deprecated for inline sources, use 'type: inline' instead [INFO] Fetching HelmSource: https://grafana.github.io/helm-charts [INFO] Fetching HelmSource: https://grafana.github.io/helm-charts [INFO] Fetching HelmSource: https://grafana.github.io/helm-charts [INFO] Fetching InlineSource: no ref [INFO] Creating a k3d cluster with name loki [INFO] Processing 4 source(s) [INFO] Processing source HelmSource: https://grafana.github.io/helm-charts [INFO] Reading Deckfile: https://raw.githubusercontent.com/Getdeck/wharf/main/loki/deck.yaml [WARNING] 'type: file' is deprecated for inline sources, use 'type: inline' instead [INFO] Deleting the k3d cluster with name loki [CRITICAL] There was an error running deck: Command 'bash -c "helm repo add this https://grafana.github.io/helm-charts && helm template loki this/loki --include-crds --namespace loki --set rbac.pspEnabled=false --set rbac.pspUseAppArmor=false --output-dir /output --kube-version 1.22 --api-versions 1.22"' in image 'deck-tooler:0.11.1' returned non-zero exit status 1: b'Error: stat /output/loki/charts/grafana-agent-operator/crds: permission denied\n\nUse --debug flag to render out invalid YAML\n'

What did you expect to happen?

I expected successful installation of the loki

How can we reproduce it (as minimally and precisely as possible)?

Use the same command sudo deck get https://raw.githubusercontent.com/Getdeck/wharf/main/loki/deck.yaml or deck get https://raw.githubusercontent.com/Getdeck/wharf/main/loki/deck.yaml the result is the same

What is the content of the Deckfile you are using?

It is your file without any changes

OS version

```console # On Linux: $ cat /etc/os-release # paste output here PRETTY_NAME="Ubuntu 22.04.1 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.1 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy $ uname -a # paste output here Linux agxeon 5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Anything else we need to know?

No response

Schille commented 1 year ago

Thank you @andreygalizin for reporting this issue. I will have a look at what's going on here. We're periodically checking these Deckfiles and no error has been reported lately.