GoogleContainerTools / skaffold

Easy and Repeatable Kubernetes Development
https://skaffold.dev/
Apache License 2.0
15.02k stars 1.62k forks source link

Skaffold Helm Deploy Unable to Pull down OpenFaas Helm Chart from Repo #7232

Open JHousmanEdi opened 2 years ago

JHousmanEdi commented 2 years ago

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

apiVersion: skaffold/v2beta28
kind: Config
metadata:
  name: openfaas
build:
  local:
    concurrency: 0
deploy:
  kubectl:
    manifests:
      - "./k8s/*.yml"
  helm:
    releases:
      - name: openfaas
        repo: https://openfaas.github.io/faas-netes/
        remoteChart: openfaas
        namespace: openfaas
        setValues:
          generateBasicAuth: true
          functionNamespace: openfaas-fn

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.

  1. In the Docker Desktop KubeContext
  2. kubectl apply -f https://raw.githubusercontent.com/openfaas/faas-netes/master/namespaces.yml
  3. skaffold dev --port-forward -v debug
> ~/Documents/repo❯ skaffold dev -v debug                                                                                                                                                    12:03:48 PM
> DEBU[0000] skaffold API not starting as it's not requested  subtask=-1 task=DevLoop
> INFO[0000] Skaffold &{Version:v1.37.0 ConfigVersion:skaffold/v2beta28 GitVersion: GitCommit:db0414e6646f54ce7d22a7eba65182c12284f162 BuildDate:2022-03-17T03:07:48Z GoVersion:go1.17.8 Compiler:gc Platform:darwin/amd64 User:}  subtask=-1 task=DevLoop
> INFO[0000] Loaded Skaffold defaults from "/Users/jason.housman/.skaffold/config"  subtask=-1 task=DevLoop
> DEBU[0000] parsed 1 configs from configuration file /Users/jason.housman/Documents/audit/skaffold.yaml  subtask=-1 task=DevLoop
> DEBU[0000] parsed 1 configs from configuration file /Users/jason.housman/Documents/audit/openfaas/skaffold.yaml  subtask=-1 task=DevLoop
> INFO[0000] Using kubectl context: docker-desktop         subtask=-1 task=DevLoop
> DEBU[0000] getting client config for kubeContext: `docker-desktop`  subtask=-1 task=DevLoop
> DEBU[0000] Running command: [minikube version --output=json]  subtask=-1 task=DevLoop
> DEBU[0000] setting Docker user agent to skaffold-v1.37.0  subtask=-1 task=DevLoop
> DEBU[0000] Running command: [helm version --client]      subtask=-1 task=DevLoop
> DEBU[0000] Command output: [version.BuildInfo{Version:"v3.8.1", GitCommit:"5cb9af4b1b271d11d7a97a71df3ac337dd94ad37", GitTreeState:"clean", GoVersion:"go1.17.8"}
> ]  subtask=-1 task=DevLoop
> DEBU[0000] Executing template &{envTemplate 0xc000e2d0e0 0xc000e548c0  } with environment map[COLORTERM:truecolor COMMAND_MODE:unix2003 CONDA_EXE:/Users/jason.housman/opt/anaconda3/bin/conda CONDA_PYTHON_EXE:/Users/jason.housman/opt/anaconda3/bin/python CONDA_SHLVL:0 GIT_ASKPASS:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh HOME:/Users/jason.housman LANG:en_US.UTF-8 LESS:-R LOGNAME:jason.housman LSCOLORS:Gxfxcxdxbxegedabagacad NVM_BIN:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin NVM_CD_FLAGS:-q NVM_DIR:/Users/jason.housman/.nvm NVM_INC:/Users/jason.housman/.nvm/versions/node/v14.18.1/include/node OLDPWD:/Users/jason.housman/Documents/audit OPENFAAS_URL:http://127.0.0.1:8080 ORIGINAL_XDG_CURRENT_DESKTOP:undefined P9K_SSH:0 P9K_TTY:old PAGER:less PATH:/Users/jason.housman/.poetry/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/jason.housman/opt/anaconda3/bin/dmypy PWD:/Users/jason.housman/Documents/audit SHELL:/bin/zsh SHLVL:1 SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.PFn6yFuF2v/Listeners TERM:xterm-256color TERM_PROGRAM:vscode TERM_PROGRAM_VERSION:1.65.2 TMPDIR:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/ USER:jason.housman VSCODE_GIT_ASKPASS_EXTRA_ARGS:--ms-enable-electron-run-as-node VSCODE_GIT_ASKPASS_MAIN:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js VSCODE_GIT_ASKPASS_NODE:/Applications/Visual Studio Code.app/Contents/MacOS/Electron VSCODE_GIT_IPC_HANDLE:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/vscode-git-9d5d659cb7.sock XPC_FLAGS:0x0 XPC_SERVICE_NAME:0 ZSH:/Users/jason.housman/.oh-my-zsh _:/usr/local/bin/skaffold _CE_CONDA: _CE_M: _P9K_TTY:/dev/ttys004 __CFBundleIdentifier:com.microsoft.VSCode __CF_USER_TEXT_ENCODING:0x1F7:0x0:0x0]  subtask=-1 task=DevLoop
> DEBU[0000] Executing template &{envTemplate 0xc000e2de60 0xc000e549b0  } with environment map[COLORTERM:truecolor COMMAND_MODE:unix2003 CONDA_EXE:/Users/jason.housman/opt/anaconda3/bin/conda CONDA_PYTHON_EXE:/Users/jason.housman/opt/anaconda3/bin/python CONDA_SHLVL:0 GIT_ASKPASS:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh HOME:/Users/jason.housman LANG:en_US.UTF-8 LESS:-R LOGNAME:jason.housman LSCOLORS:Gxfxcxdxbxegedabagacad NVM_BIN:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin NVM_CD_FLAGS:-q NVM_DIR:/Users/jason.housman/.nvm NVM_INC:/Users/jason.housman/.nvm/versions/node/v14.18.1/include/node OLDPWD:/Users/jason.housman/Documents/audit OPENFAAS_URL:http://127.0.0.1:8080 ORIGINAL_XDG_CURRENT_DESKTOP:undefined P9K_SSH:0 P9K_TTY:old PAGER:less PATH:/Users/jason.housman/.poetry/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/jason.housman/opt/anaconda3/bin/dmypy PWD:/Users/jason.housman/Documents/audit SHELL:/bin/zsh SHLVL:1 SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.PFn6yFuF2v/Listeners TERM:xterm-256color TERM_PROGRAM:vscode TERM_PROGRAM_VERSION:1.65.2 TMPDIR:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/ USER:jason.housman VSCODE_GIT_ASKPASS_EXTRA_ARGS:--ms-enable-electron-run-as-node VSCODE_GIT_ASKPASS_MAIN:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js VSCODE_GIT_ASKPASS_NODE:/Applications/Visual Studio Code.app/Contents/MacOS/Electron VSCODE_GIT_IPC_HANDLE:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/vscode-git-9d5d659cb7.sock XPC_FLAGS:0x0 XPC_SERVICE_NAME:0 ZSH:/Users/jason.housman/.oh-my-zsh _:/usr/local/bin/skaffold _CE_CONDA: _CE_M: _P9K_TTY:/dev/ttys004 __CFBundleIdentifier:com.microsoft.VSCode __CF_USER_TEXT_ENCODING:0x1F7:0x0:0x0]  subtask=-1 task=DevLoop
> DEBU[0000] CLI platforms provided: ""                    subtask=-1 task=DevLoop
> DEBU[0000] getting client config for kubeContext: `docker-desktop`  subtask=-1 task=DevLoop
> DEBU[0000] platforms detected from active kubernetes cluster nodes: "linux/amd64"  subtask=-1 task=DevLoop
> DEBU[0000] Using builder: local                          subtask=-1 task=DevLoop
> DEBU[0000] push value not present in NewBuilder, defaulting to false because cluster.PushImages is false  subtask=-1 task=DevLoop
> DEBU[0000] Using builder: local                          subtask=-1 task=DevLoop
> DEBU[0000] push value not present in NewBuilder, defaulting to false because cluster.PushImages is false  subtask=-1 task=DevLoop
> INFO[0000] build concurrency first set to 0 parsed from *local.Builder[0]  subtask=-1 task=DevLoop
> INFO[0000] build concurrency value 0 parsed from *local.Builder[1] is ignored since it's not less than previously set value 0  subtask=-1 task=DevLoop
> INFO[0000] final build concurrency value is 0            subtask=-1 task=DevLoop
> Listing files to watch...
> INFO[0000] List generated in 312.182µs                   subtask=-1 task=DevLoop
> Generating tags...
> INFO[0000] Tags generated in 13.214µs                    subtask=-1 task=Build
> Checking cache...
> INFO[0000] Cache check completed in 40.485µs             subtask=-1 task=Build
> Tags used in deployment:
> Starting deploy...
> DEBU[0000] getting client config for kubeContext: `docker-desktop`  subtask=-1 task=DevLoop
> INFO[0000] Deploying with helm v3.8.1 ...                subtask=0 task=Deploy
> DEBU[0000] Executing template &{envTemplate 0xc0005fea20 0xc0000ce320  } with environment map[COLORTERM:truecolor COMMAND_MODE:unix2003 CONDA_EXE:/Users/jason.housman/opt/anaconda3/bin/conda CONDA_PYTHON_EXE:/Users/jason.housman/opt/anaconda3/bin/python CONDA_SHLVL:0 GIT_ASKPASS:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh HOME:/Users/jason.housman LANG:en_US.UTF-8 LESS:-R LOGNAME:jason.housman LSCOLORS:Gxfxcxdxbxegedabagacad NVM_BIN:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin NVM_CD_FLAGS:-q NVM_DIR:/Users/jason.housman/.nvm NVM_INC:/Users/jason.housman/.nvm/versions/node/v14.18.1/include/node OLDPWD:/Users/jason.housman/Documents/audit OPENFAAS_URL:http://127.0.0.1:8080 ORIGINAL_XDG_CURRENT_DESKTOP:undefined P9K_SSH:0 P9K_TTY:old PAGER:less PATH:/Users/jason.housman/.poetry/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/jason.housman/opt/anaconda3/bin/dmypy PWD:/Users/jason.housman/Documents/audit SHELL:/bin/zsh SHLVL:1 SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.PFn6yFuF2v/Listeners TERM:xterm-256color TERM_PROGRAM:vscode TERM_PROGRAM_VERSION:1.65.2 TMPDIR:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/ USER:jason.housman VSCODE_GIT_ASKPASS_EXTRA_ARGS:--ms-enable-electron-run-as-node VSCODE_GIT_ASKPASS_MAIN:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js VSCODE_GIT_ASKPASS_NODE:/Applications/Visual Studio Code.app/Contents/MacOS/Electron VSCODE_GIT_IPC_HANDLE:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/vscode-git-9d5d659cb7.sock XPC_FLAGS:0x0 XPC_SERVICE_NAME:0 ZSH:/Users/jason.housman/.oh-my-zsh _:/usr/local/bin/skaffold _CE_CONDA: _CE_M: _P9K_TTY:/dev/ttys004 __CFBundleIdentifier:com.microsoft.VSCode __CF_USER_TEXT_ENCODING:0x1F7:0x0:0x0]  subtask=-1 task=DevLoop
> DEBU[0000] Executing template &{envTemplate 0xc0005ff440 0xc0000ce370  } with environment map[COLORTERM:truecolor COMMAND_MODE:unix2003 CONDA_EXE:/Users/jason.housman/opt/anaconda3/bin/conda CONDA_PYTHON_EXE:/Users/jason.housman/opt/anaconda3/bin/python CONDA_SHLVL:0 GIT_ASKPASS:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh HOME:/Users/jason.housman LANG:en_US.UTF-8 LESS:-R LOGNAME:jason.housman LSCOLORS:Gxfxcxdxbxegedabagacad NVM_BIN:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin NVM_CD_FLAGS:-q NVM_DIR:/Users/jason.housman/.nvm NVM_INC:/Users/jason.housman/.nvm/versions/node/v14.18.1/include/node OLDPWD:/Users/jason.housman/Documents/audit OPENFAAS_URL:http://127.0.0.1:8080 ORIGINAL_XDG_CURRENT_DESKTOP:undefined P9K_SSH:0 P9K_TTY:old PAGER:less PATH:/Users/jason.housman/.poetry/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/jason.housman/opt/anaconda3/bin/dmypy PWD:/Users/jason.housman/Documents/audit SHELL:/bin/zsh SHLVL:1 SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.PFn6yFuF2v/Listeners TERM:xterm-256color TERM_PROGRAM:vscode TERM_PROGRAM_VERSION:1.65.2 TMPDIR:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/ USER:jason.housman VSCODE_GIT_ASKPASS_EXTRA_ARGS:--ms-enable-electron-run-as-node VSCODE_GIT_ASKPASS_MAIN:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js VSCODE_GIT_ASKPASS_NODE:/Applications/Visual Studio Code.app/Contents/MacOS/Electron VSCODE_GIT_IPC_HANDLE:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/vscode-git-9d5d659cb7.sock XPC_FLAGS:0x0 XPC_SERVICE_NAME:0 ZSH:/Users/jason.housman/.oh-my-zsh _:/usr/local/bin/skaffold _CE_CONDA: _CE_M: _P9K_TTY:/dev/ttys004 __CFBundleIdentifier:com.microsoft.VSCode __CF_USER_TEXT_ENCODING:0x1F7:0x0:0x0]  subtask=-1 task=DevLoop
> DEBU[0000] Executing template &{envTemplate 0xc0005ffe60 0xc0000ce3c0  } with environment map[COLORTERM:truecolor COMMAND_MODE:unix2003 CONDA_EXE:/Users/jason.housman/opt/anaconda3/bin/conda CONDA_PYTHON_EXE:/Users/jason.housman/opt/anaconda3/bin/python CONDA_SHLVL:0 GIT_ASKPASS:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh HOME:/Users/jason.housman LANG:en_US.UTF-8 LESS:-R LOGNAME:jason.housman LSCOLORS:Gxfxcxdxbxegedabagacad NVM_BIN:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin NVM_CD_FLAGS:-q NVM_DIR:/Users/jason.housman/.nvm NVM_INC:/Users/jason.housman/.nvm/versions/node/v14.18.1/include/node OLDPWD:/Users/jason.housman/Documents/audit OPENFAAS_URL:http://127.0.0.1:8080 ORIGINAL_XDG_CURRENT_DESKTOP:undefined P9K_SSH:0 P9K_TTY:old PAGER:less PATH:/Users/jason.housman/.poetry/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/jason.housman/opt/anaconda3/bin/dmypy PWD:/Users/jason.housman/Documents/audit SHELL:/bin/zsh SHLVL:1 SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.PFn6yFuF2v/Listeners TERM:xterm-256color TERM_PROGRAM:vscode TERM_PROGRAM_VERSION:1.65.2 TMPDIR:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/ USER:jason.housman VSCODE_GIT_ASKPASS_EXTRA_ARGS:--ms-enable-electron-run-as-node VSCODE_GIT_ASKPASS_MAIN:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js VSCODE_GIT_ASKPASS_NODE:/Applications/Visual Studio Code.app/Contents/MacOS/Electron VSCODE_GIT_IPC_HANDLE:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/vscode-git-9d5d659cb7.sock XPC_FLAGS:0x0 XPC_SERVICE_NAME:0 ZSH:/Users/jason.housman/.oh-my-zsh _:/usr/local/bin/skaffold _CE_CONDA: _CE_M: _P9K_TTY:/dev/ttys004 __CFBundleIdentifier:com.microsoft.VSCode __CF_USER_TEXT_ENCODING:0x1F7:0x0:0x0]  subtask=-1 task=DevLoop
> DEBU[0000] Running command: [helm --kube-context docker-desktop get all --namespace openfaas openfaas]  subtask=0 task=Deploy
> Helm release openfaas not installed. Installing...
> DEBU[0000] EnvVarMap: map[]                              subtask=-1 task=DevLoop
**> DEBU[0000] 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
> Error: INSTALLATION FAILED: Chart.yaml file is missing
> Cleaning up...**
> DEBU[0000] Executing template &{envTemplate 0xc000d18fc0 0xc0000ce460  } with environment map[COLORTERM:truecolor COMMAND_MODE:unix2003 CONDA_EXE:/Users/jason.housman/opt/anaconda3/bin/conda CONDA_PYTHON_EXE:/Users/jason.housman/opt/anaconda3/bin/python CONDA_SHLVL:0 GIT_ASKPASS:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh HOME:/Users/jason.housman LANG:en_US.UTF-8 LESS:-R LOGNAME:jason.housman LSCOLORS:Gxfxcxdxbxegedabagacad NVM_BIN:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin NVM_CD_FLAGS:-q NVM_DIR:/Users/jason.housman/.nvm NVM_INC:/Users/jason.housman/.nvm/versions/node/v14.18.1/include/node OLDPWD:/Users/jason.housman/Documents/audit OPENFAAS_URL:http://127.0.0.1:8080 ORIGINAL_XDG_CURRENT_DESKTOP:undefined P9K_SSH:0 P9K_TTY:old PAGER:less PATH:/Users/jason.housman/.poetry/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/jason.housman/opt/anaconda3/bin/dmypy PWD:/Users/jason.housman/Documents/audit SHELL:/bin/zsh SHLVL:1 SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.PFn6yFuF2v/Listeners TERM:xterm-256color TERM_PROGRAM:vscode TERM_PROGRAM_VERSION:1.65.2 TMPDIR:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/ USER:jason.housman VSCODE_GIT_ASKPASS_EXTRA_ARGS:--ms-enable-electron-run-as-node VSCODE_GIT_ASKPASS_MAIN:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js VSCODE_GIT_ASKPASS_NODE:/Applications/Visual Studio Code.app/Contents/MacOS/Electron VSCODE_GIT_IPC_HANDLE:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/vscode-git-9d5d659cb7.sock XPC_FLAGS:0x0 XPC_SERVICE_NAME:0 ZSH:/Users/jason.housman/.oh-my-zsh _:/usr/local/bin/skaffold _CE_CONDA: _CE_M: _P9K_TTY:/dev/ttys004 __CFBundleIdentifier:com.microsoft.VSCode __CF_USER_TEXT_ENCODING:0x1F7:0x0:0x0]  subtask=-1 task=DevLoop
> DEBU[0000] Executing template &{envTemplate 0xc000d198c0 0xc0000ce4b0  } with environment map[COLORTERM:truecolor COMMAND_MODE:unix2003 CONDA_EXE:/Users/jason.housman/opt/anaconda3/bin/conda CONDA_PYTHON_EXE:/Users/jason.housman/opt/anaconda3/bin/python CONDA_SHLVL:0 GIT_ASKPASS:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh HOME:/Users/jason.housman LANG:en_US.UTF-8 LESS:-R LOGNAME:jason.housman LSCOLORS:Gxfxcxdxbxegedabagacad NVM_BIN:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin NVM_CD_FLAGS:-q NVM_DIR:/Users/jason.housman/.nvm NVM_INC:/Users/jason.housman/.nvm/versions/node/v14.18.1/include/node OLDPWD:/Users/jason.housman/Documents/audit OPENFAAS_URL:http://127.0.0.1:8080 ORIGINAL_XDG_CURRENT_DESKTOP:undefined P9K_SSH:0 P9K_TTY:old PAGER:less PATH:/Users/jason.housman/.poetry/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/bash/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/jason.housman/opt/anaconda3/bin:/Users/jason.housman/opt/anaconda3/condabin:/Users/jason.housman/.nvm/versions/node/v14.18.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/jason.housman/go/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/jason.housman/opt/anaconda3/bin/dmypy PWD:/Users/jason.housman/Documents/audit SHELL:/bin/zsh SHLVL:1 SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.PFn6yFuF2v/Listeners TERM:xterm-256color TERM_PROGRAM:vscode TERM_PROGRAM_VERSION:1.65.2 TMPDIR:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/ USER:jason.housman VSCODE_GIT_ASKPASS_EXTRA_ARGS:--ms-enable-electron-run-as-node VSCODE_GIT_ASKPASS_MAIN:/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js VSCODE_GIT_ASKPASS_NODE:/Applications/Visual Studio Code.app/Contents/MacOS/Electron VSCODE_GIT_IPC_HANDLE:/var/folders/4_/jxpt7ry117z6169rjfht98br0000gq/T/vscode-git-9d5d659cb7.sock XPC_FLAGS:0x0 XPC_SERVICE_NAME:0 ZSH:/Users/jason.housman/.oh-my-zsh _:/usr/local/bin/skaffold _CE_CONDA: _CE_M: _P9K_TTY:/dev/ttys004 __CFBundleIdentifier:com.microsoft.VSCode __CF_USER_TEXT_ENCODING:0x1F7:0x0:0x0]  subtask=-1 task=DevLoop
> DEBU[0000] Running command: [helm --kube-context docker-desktop delete openfaas --namespace openfaas]  subtask=-1 task=DevLoop
> Error: uninstall: Release not loaded: openfaas: release: not found
> WARN[0000] deployer cleanup:exit status 1                subtask=-1 task=DevLoop
> DEBU[0000] Running command: [tput colors]                subtask=-1 task=DevLoop
> DEBU[0000] Command output: [256
> ]                        subtask=-1 task=DevLoop
> deploying "openfaas": install: exit status 1
> DEBU[0000] exporting metrics                             subtask=-1 task=DevLoop
tejal29 commented 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] ---
tejal29 commented 2 years ago

I am on

➜  microservices git:(main) ✗ helm version
version.BuildInfo{Version:"v3.5.4", GitCommit:"1b5edb69df3d3a08df77c9902dc17af864ff05d1", GitTreeState:"dirty", GoVersion:"go1.16.3"}
JHousmanEdi commented 2 years ago

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.

tejal29 commented 2 years ago

Thanks @JHousmanEdi I will try the steps again and report back

hall commented 2 years ago

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.

noroutine commented 1 year ago

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