mirror of https://github.com/k3s-io/k3s
Merge pull request #68697 from seans3/editoptions-fix
Replace internal version Encoder with external version Encoderpull/58/head
commit
98748d1a1b
|
@ -668,7 +668,7 @@ func (o *EditOptions) visitAnnotation(annotationVisitor resource.Visitor) error
|
||||||
err := annotationVisitor.Visit(func(info *resource.Info, incomingErr error) error {
|
err := annotationVisitor.Visit(func(info *resource.Info, incomingErr error) error {
|
||||||
// put configuration annotation in "updates"
|
// put configuration annotation in "updates"
|
||||||
if o.ApplyAnnotation {
|
if o.ApplyAnnotation {
|
||||||
if err := kubectl.CreateOrUpdateAnnotation(true, info.Object, cmdutil.InternalVersionJSONEncoder()); err != nil {
|
if err := kubectl.CreateOrUpdateAnnotation(true, info.Object, scheme.DefaultJSONEncoder()); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue