Unverified Commit b0422194 authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #68695 from seans3/expose-fix

Replace internal version Encoder with external version Encoder
parents b442c253 84ef7a36
...@@ -325,7 +325,7 @@ func (o *ExposeServiceOptions) RunExpose(cmd *cobra.Command, args []string) erro ...@@ -325,7 +325,7 @@ func (o *ExposeServiceOptions) RunExpose(cmd *cobra.Command, args []string) erro
if o.DryRun { if o.DryRun {
return o.PrintObj(object, o.Out) return o.PrintObj(object, o.Out)
} }
if err := kubectl.CreateOrUpdateAnnotation(cmdutil.GetFlagBool(cmd, cmdutil.ApplyAnnotationsFlag), object, cmdutil.InternalVersionJSONEncoder()); err != nil { if err := kubectl.CreateOrUpdateAnnotation(cmdutil.GetFlagBool(cmd, cmdutil.ApplyAnnotationsFlag), object, scheme.DefaultJSONEncoder()); err != nil {
return err return err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment