mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
refactor edit to remove cobra dependency and also make it reusable
This commit is contained in:
@@ -160,7 +160,7 @@ func (o *SetLastAppliedOptions) Validate(f cmdutil.Factory, cmd *cobra.Command)
|
||||
}
|
||||
|
||||
//only add to PatchBufferList when changed
|
||||
if !bytes.Equal(stripComments(oringalBuf), stripComments(diffBuf)) {
|
||||
if !bytes.Equal(cmdutil.StripComments(oringalBuf), cmdutil.StripComments(diffBuf)) {
|
||||
o.PatchBufferList = append(o.PatchBufferList, patchBuf)
|
||||
o.InfoList = append(o.InfoList, info)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user