GoogleContainerTools / GoogleContainerTools/skaffold

`--digest-source` not working when `skaffold run` on remote cluster

Open
#9,350 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior

For remote clusters, `skaffold run` default to use `remote` digest-source, that's all right. But since it doesn't handle dirty file changes nicely, I was trying to change digest source to `local`, the default when `skaffold run` on local (minikube) clusters. But seems it has no effect and skaffold run behaves just like `--digest-source=remote`

### Actual behavior

`--digest-source=local` should invoke docker build and use the result as the image digest

### Information

- Skaffold version: v2.10.1
- Operating system: Rocky 9
- Installed via: skaffold.dev
- Contents of skaffold.yaml:

```yaml
apiVersion: skaffold/v4beta9
kind: Config
metadata:
name: foobar
build:
artifacts:
- image: foobar
docker:
dockerfile: Dockerfile
manifests:
kustomize:
paths:
- deploy/
```

### Steps to reproduce the behavior

1. a clonable repository with the sample skaffold project
2. `skaffold run --digest-source=local`

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.