Skip to content

Commit

Permalink
kured: remove extra quotes from annotation
Browse files Browse the repository at this point in the history
Remove extra quotes from annotation kured lock annotation. Before this
patch, the annotation created would look like:

```
weave.works/kured-node-lock: '''{"nodeID":"manual"}'''
```

With this patch, the annotation looks like:

```
weave.works/kured-node-lock: '{"nodeID":"manual"}'
```

(cherry picked from commit 4403054)
  • Loading branch information
ereslibre authored and jordimassaguerpla committed Dec 10, 2019
1 parent 39a3e62 commit 6b5b53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/skuba/kured/kured.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (

const (
kuredDSName = "kured"
kuredLockAnnotationJson = `{"metadata":{"annotations":{"weave.works/kured-node-lock":"'{\"nodeID\":\"manual\"}'"}}}`
kuredLockAnnotationJson = `{"metadata":{"annotations":{"weave.works/kured-node-lock":"{\"nodeID\":\"manual\"}"}}}`
)

func LockExists(client clientset.Interface) (bool, error) {
Expand Down

0 comments on commit 6b5b53c

Please sign in to comment.