GoogleContainerTools/skaffold

Skaffold File Sync - Subsequent Pod Deploy

開放

#6,924 建立於 2021年12月1日

 (6 則留言) (6 個反應) (0 位負責人)Go (1,416 個分叉)batch import
area/synchelp wantedkind/bugkind/frictionpriority/p3

倉庫指標

星標
 (12,822 顆星)
PR 合併指標
 (平均合併 3天 6小時) (30 天內合併 16 個 PR)

描述

Expected behavior

Skaffold resyncs files after a breaking change causes a pod to redeploy

Actual behavior

Skaffold doesn't do anything - it will continue to sync files to the new pod when changes are made but previous changes are ignored. I understand the files are synced to the pod rather than the container, but this requires skaffold dev to be restarted if the pod ever crashes.

Information

  • Skaffold version: v1.33.0
  • Operating system: MacOS 11.6
  • Installed via: Homebrew
  • Contents of skaffold.yaml:
  - image: myapp
    context: myapp
    docker:
      dockerfile: myapp.Dockerfile
    sync:
      infer:
      - '**'

Steps to reproduce the behavior

  1. setup skaffold with file sync
  2. once stable, make a change to trigger the file sync
  3. delete the pod that the file was synced to
  4. examine the new pod, the content isn't synced on pod standup

貢獻者指南