GoogleContainerTools / GoogleContainerTools/skaffold

Sync is not working with helm and jib

Open
#4,191 13 comments 0 reactions 0 assignees View on GitHub
area/docs area/sync build/jib kind/bug priority/p3
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior

Synced files should work

### Actual behavior

No watching or syncing happening, no files going into the pod

### Information

- Skaffold version: 1.9.1
- Operating system: Mac OS X Catalina 10.15.4
- Contents of skaffold.yaml:

```yaml
apiVersion: skaffold/v1
kind: Config
profiles:
- name: qc
build:
artifacts:
- image: skaffold-qc
context: '.'
sync:
manual:
- src: 'lombok.config'
dest: /app
- src: '**/*.config'
dest: /app
- src: 'KVP/heyo.txt'
dest: /app/deploy
jib: {}
local: {}
deploy:
helm:
releases:
- name: "{{.USER}}-skaffold-qc"
chartPath: "skaffold/qumucloud"
values:
image: skaffold-qc
setValueTemplates:
redisServerEndpoint: "dev-rds-euw1b-d01"
redisServerPort: "6379"
flags:
upgrade:
- --install
statusCheckDeadlineSeconds: 240
```

### Steps to reproduce the behavior

1. a clonable repository with the sample skaffold project: I cannot reproduce easily in the current project as it has too many folders. If nothing obvious shows up I'll try to extract
2. `skaffold dev --filename skaffold.yml --profile qc --default-repo eu.gcr.io/qumu-dev --cleanup=false -v debug`

The debug logs show up changes happening:
```
DEBU[0708] Change detected notify.Write: "/Users/dfernandez/development/repos/qumu-cloud-fork/qumu-cloud/skaffold/lombok.config"
DEBU[0708] Change detected notify.Write: "/Users/dfernandez/development/repos/qumu-cloud-fork/qumu-cloud/skaffold/lombok.config~"
DEBU[0708] Change detected notify.Create: "/Users/dfernandez/development/repos/qumu-cloud-fork/qumu-cloud/skaffold/lombok.config~"
DEBU[0708] Change detected notify.Remove: "/Users/dfernandez/development/repos/qumu-cloud-fork/qumu-cloud/skaffold/lombok.config~"
DEBU[0709] Using wrapper for gradlew: gradle
DEBU[0709] Found dependencies for jib-gradle artifact: [build.gradle build/libs/com/qumu/cloud/database/UpdateJobProcessorScriptsTableTask.class build/libs/commons-io-2.6.jar build/libs/liquibase-core-3.6.2.jar build/libs/logback-classic-1.2.3.jar build/libs/logback-core-1.2.3.jar build/libs/lombok-1.18.12.jar build/libs/lombok-1.18.4.jar build/libs/mariadb-java-client-2.4.3.jar build/libs/qumu-cloud.war build/libs/slf4j-api-1.7.25.jar build/libs/snakeyaml-1.18.jar database/liquibase/changesets/CLD-5865-pre.sql database/liquibase/changesets/DEV-9588.sql database/liquibase/changesets/DEV-9688.sql database/liquibase/changesets/QC-2323.sql database/liquibase/changesets/QC-2324.sql database/liquibase/changesets/QC-2644.sql database/liquibase/changese
....
```

And then more log with all the files detected by jib.

Is there anything obvious I am missing?

The structure is `skaffold.yml` and in the same folder `lombok.config`. Just seems the file is not being watched at all.

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.