Skip to content

Commit f931b03

Browse files
pepovbaluchicken
authored andcommitted
Remove the legacy objectmatcher code and get rid of unnecessary dependencies
1 parent b411abd commit f931b03

22 files changed

+10
-1631
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ original := &v1.Service{
2929
...
3030
}
3131

32-
patch.DefaultAnnotator.SetLastAppliedAnnotation(original)
32+
if err := patch.DefaultAnnotator.SetLastAppliedAnnotation(original); err != nil {
33+
...
34+
}
3335

3436
client.CoreV1().Services(original.GetNamespace()).Create(original)
3537
```
@@ -48,7 +50,9 @@ if err != nil {
4850
}
4951

5052
if !patchResult.IsEmpty() {
51-
patch.DefaultAnnotator.SetLastAppliedAnnotation(modified)
53+
if err := patch.DefaultAnnotator.SetLastAppliedAnnotation(modified); err != nil {
54+
...
55+
}
5256
client.CoreV1().Services(modified.GetNamespace()).Update(modified)
5357
}
5458

clusterrole.go

Lines changed: 0 additions & 63 deletions
This file was deleted.

clusterrolebinding.go

Lines changed: 0 additions & 72 deletions
This file was deleted.

configmap.go

Lines changed: 0 additions & 72 deletions
This file was deleted.

crd.go

Lines changed: 0 additions & 75 deletions
This file was deleted.

daemonset.go

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)