Skip to content

Commit 3b7fe08

Browse files
committed
bugfix: do not trigger git-sync on pods in state
1 parent 4f52a13 commit 3b7fe08

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sync.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ func getGitSyncPods(clientset *kubernetes.Clientset) ([]string, error) {
118118
return podsList, err
119119
}
120120
for _, pod := range pods.Items {
121+
if pod.ObjectMeta.DeletionTimestamp != nil {
122+
continue
123+
}
121124
for _, container := range pod.Spec.Containers {
122125
if container.Name == "git-sync" {
123126
podsList = append(podsList, pod.Name)

0 commit comments

Comments
 (0)