Open JHousmanEdi opened 2 years ago
Thanks Can you please provide the helm client version?
I was not able to reproduce this issue at my end.
DEBU[0002] Executing template &{envTemplate 0xc0008a78c0 0xc000ebd950 } with environment map[DISPLAY:/private/tmp/com.apple.launchd.19J3YX6Acm/org.xquartz:0 HOME:/Users/tejaldesai LANG:en_US.UTF-8 LESS:-R LOGNAME:tejaldesai LSCOLORS:Gxfxcxdxbxegedabagacad LaunchInstanceID:14573808-0166-48B3-B0ED-BF16912FA3B1 OLDPWD:/Users/tejaldesai/workspace/skaffold/examples/microservices PAGER:less PATH:/Users/tejaldesai/workspace/google-cloud-sdk/bin:/usr/local/opt/python@3.8/bin:/Users/tejaldesai/mdproxy/bin:/Users/tejaldesai/workspace/google-cloud-sdk/bin:/usr/local/opt/python@3.8/bin:/Users/tejaldesai/mdproxy/bin:/usr/local/git/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/go/bin:/opt/X11/bin:/Library/Apple/usr/bin PWD:/Users/tejaldesai/workspace/skaffold/examples/microservices SECURITYSESSIONID:186a4 SHELL:/bin/zsh SHLVL:1 SK_SIGNING_PLUGIN:gnubbyagent SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.xwEdUEgHmg/Listeners TERM:xterm-256color TERM_PROGRAM:Apple_Terminal TERM_PROGRAM_VERSION:444 TERM_SESSION_ID:733A87A5-14E8-467D-ACE4-38E678228652 TMPDIR:/var/folders/gk/s778hvkj0lb0zl95ywvw0snr00cfc0/T/ USER:tejaldesai XPC_FLAGS:0x0 XPC_SERVICE_NAME:0 ZSH:/Users/tejaldesai/.oh-my-zsh ZSH_DISABLE_COMPFIX:true _:/usr/local/bin/skaffold __CFBundleIdentifier:com.apple.Terminal] subtask=-1 task=DevLoop
....
Helm release openfaas not installed. Installing...
DEBU[0002] EnvVarMap: map[] subtask=-1 task=DevLoop
DEBU[0002] Running command: [helm --kube-context gke_**** install openfaas openfaas
--namespace openfaas --repo https://openfaas.github.io/faas-netes/
--set functionNamespace=openfaas-fn --set generateBasicAuth=true] subtask=0 task=Deploy
NAME: openfaas
LAST DEPLOYED: Tue Mar 29 08:50:28 2022
NAMESPACE: openfaas
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
To verify that openfaas has started, run:
kubectl -n openfaas get deployments -l "release=openfaas, app=openfaas"
To retrieve the admin password, run:
echo $(kubectl -n openfaas get secret basic-auth -o jsonpath="{.data.basic-auth-password}" | base64 --decode)
DEBU[0013] Running command: [helm --kube-context gke_***** get all --namespace openfaas openfaas --template {{.Release.Manifest}}] subtask=0 task=Deploy
DEBU[0014] ---
I am on
➜ microservices git:(main) ✗ helm version
version.BuildInfo{Version:"v3.5.4", GitCommit:"1b5edb69df3d3a08df77c9902dc17af864ff05d1", GitTreeState:"dirty", GoVersion:"go1.16.3"}
Hello @tejal29
I am on:
version.BuildInfo{Version:"v3.8.1", GitCommit:"5cb9af4b1b271d11d7a97a71df3ac337dd94ad37", GitTreeState:"clean", GoVersion:"go1.17.5"}
Just some other things to note:
I tried to test this on a different environment, and while I was able to run the above command to install openfaas through the command line without any trouble my colleague was unable too and would receive the same error as when installing through skaffold.
Thanks @JHousmanEdi I will try the steps again and report back
Not sure if this is the same underlying issue but we also get
Error: INSTALLATION FAILED: Chart.yaml file is missing
when a local directory has the same name as the chart since helm ignores the --repo
flag if the chart can be interpreted as a path on the local filesystem: https://github.com/helm/helm/issues/9731
Add the --debug
flag to helm and it'll tell you where it's trying to read the chart from.
Hit this issue, confirm it was caused by existing local folder with same name as release name in skaffold.yaml In my case i was trying to deploy tigera-operator
❯❯❯ helm --kube-context kubernetes-admin@lab02 install tigera-operator --version v3.25.0 tigera-operator --namespace tigera-operator --repo https://nexus.nrtn.dev/repository/helm-projectcalico --create-namespace -f tigera-operator/values.yml --wait --debug
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /Users/oleksii/.kube/config-lab02
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /Users/oleksii/.kube/config-lab02
install.go:194: [debug] Original chart version: "v3.25.0"
install.go:211: [debug] CHART PATH: /Users/oleksii/noroutine/infra/infra-cluster-lab02/cluster/lab02/tigera-operator
Error: INSTALLATION FAILED: Chart.yaml file is missing
as you see it finds local directory and tries to load chart from there rather than from remote repo
HTH
Not sure if this is the same underlying issue but we also get
Error: INSTALLATION FAILED: Chart.yaml file is missing
when a local directory has the same name as the chart since helm ignores the
--repo
flag if the chart can be interpreted as a path on the local filesystem: helm/helm#9731Add the
--debug
flag to helm and it'll tell you where it's trying to read the chart from.
This helped me out, thank you so much for finding this @hall!
Basically, I stored my k8s
manifests in a folder named keycloak
, which skaffold
(which used helm
internally) failed to interpret properly. After renaming the keycloak
folder to something else, skaffold
would properly install the app.
Expected behavior
Expecting the OpenFaas pods to start through helm deloyment
Actual behavior
As far as I can tell, when running with -v debug I can see:
Running command: [helm --kube-context docker-desktop install openfaas openfaas --namespace openfaas --repo https://openfaas.github.io/faas-netes/ --set functionNamespace=openfaas-fn --set generateBasicAuth=true] subtask=0 task=Deploy
When I run the command in the brackets in my command line, everything works fine. However, Skaffold returns the error:
Error: INSTALLATION FAILED: Chart.yaml file is missing
Information
Steps to reproduce the behavior
I follow the steps in the openfaas repository.
Due to some issues with ordering of dependencies, I have actually commented out the kubectl component for now.
kubectl apply -f https://raw.githubusercontent.com/openfaas/faas-netes/master/namespaces.yml