GoogleContainerTools / GoogleContainerTools/skaffold

skaffold cannot deploy local packaged helm chart

Open
#7,702 5 comments 0 reactions 0 assignees View on GitHub
area/deploy deploy/helm kind/bug priority/p2
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior
- should deploy without accident with helm and local packaged chart according the [documentation](https://skaffold.dev/docs/references/yaml/)

### Actual behavior
returns `Error: only unpacked charts can be updated`

### Information

- Skaffold version: `1.37.1`
- Operating system: `Artix Linux 5.18.14-artix1-1`
- Installed via: `skaffold run -p `
- Contents of skaffold.yaml:

```yaml
apiVersion: skaffold/v2beta15
kind: Config

profiles:
- name: deploy
deploy:
helm:
releases:
- name: "{{.SITE}}"
chartPath: starship-block.tgz
namespace: "{{.SITE}}"
createNamespace: true
valuesFiles:
- "siteconfig/{{.SITE}}.yaml"
upgradeOnChange: true
```

### Steps to reproduce the behavior

1. get a packaged helm chart and try to deploy it with this skaffold.yaml profile

Last few lines of skaffold ... -vdebug:
```
time="2022-07-29T13:01:18Z" level=debug msg="Running command: [helm --kube-context uhurablock-office-test get all --namespace uhurablock-office-test uhurablock-office-test]" subtask=0 task=Deploy
time="2022-07-29T13:01:18Z" level=info msg="Building helm dependencies..." subtask=0 task=Deploy
time="2022-07-29T13:01:18Z" level=debug msg="Running command: [helm --kube-context uhurablock-office-test dep build starship-block.tgz]" subtask=0 task=Deploy
Error: only unpacked charts can be updated
time="2022-07-29T13:01:18Z" level=debug msg="Running command: [tput colors]" subtask=-1 task=DevLoop
time="2022-07-29T13:01:18Z" level=debug msg="error checking for color support: checking terminal colors: running [tput colors]\n - stdout: \"\"\n - stderr: \"tput: No value for $TERM and no -T specified\\n\"\n - cause: exit status 2" subtask=-1 task=DevLoop
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.