Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
caoyingjunz committed Dec 3, 2023
1 parent d50b442 commit 44a8305
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions practise/k8s-practise/annotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ func main() {

obj.Annotations["testkey"] = "testvalue"
_, _ = clientSet.CoreV1().Nodes().Update(context.TODO(), obj, metav1.UpdateOptions{})

fmt.Println(obj.Annotations)
}

0 comments on commit 44a8305

Please sign in to comment.