Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Removing the processing of Sync events #22

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"golang.org/x/time/rate"

// objectstorage
v1alpha1 "sigs.k8s.io/container-object-storage-interface-api/apis/objectstorage.k8s.io/v1alpha1"
"sigs.k8s.io/container-object-storage-interface-api/apis/objectstorage.k8s.io/v1alpha1"
bucketclientset "sigs.k8s.io/container-object-storage-interface-api/clientset"

// k8s api
Expand Down Expand Up @@ -371,7 +371,7 @@ func (c *ObjectStorageController) runController(ctx context.Context) {
Process: func(obj interface{}) error {
for _, d := range obj.(cache.Deltas) {
switch d.Type {
case cache.Sync, cache.Replaced, cache.Added, cache.Updated:
case cache.Replaced, cache.Added, cache.Updated:
if old, exists, err := indexer.Get(d.Object); err == nil && exists {
key, err := cache.MetaNamespaceKeyFunc(d.Object)
if err != nil {
Expand Down