Skip to content

Commit 08f7b53

Browse files
committed
Fix noisy logs
1 parent 52a6793 commit 08f7b53

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.2.3] - 2022-12-12
11+
12+
### Fixed
13+
14+
- Hide noisy error message for PVs pointing to non-existent SC behind `-v=5` or more
15+
1016
## [0.2.2] - 2022-12-12
1117

1218
### Fixed

Diff for: releaser/releaser.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ func (r *Releaser) pvSyncHandler(_, name string) error {
147147
sc, err := r.SCLister.Get(pv.Spec.StorageClassName)
148148
if err != nil {
149149
if errors.IsNotFound(err) {
150-
utilruntime.HandleError(
151-
fmt.Errorf("sc '%s' for pv '%s' in work queue didn't exist", pv.Spec.StorageClassName, name),
152-
)
150+
klog.V(5).Infof("sc '%s' for pv '%s' in work queue didn't exist", pv.Spec.StorageClassName, name)
153151
return nil
154152
}
155153

0 commit comments

Comments
 (0)