returnerrors.New("no last-applied-configuration annotation found on resources, to create the annotation, use command `kubectl apply set-last-applied --create-annotation`")
}
returneditFn(annotationInfos)
// If doing an edit before created, we don't want a list and instead want the normal behavior as kubectl create.
// If doing an edit before created, we don't want a list and instead want the normal behavior as kubectl create.
cmd.Flags().BoolVar(applyAnnotation,ApplyAnnotationsFlag,false,"If true, the configuration of current object will be saved in its annotation. This is useful when you want to perform kubectl apply on this object in the future.")
cmd.Flags().BoolVar(applyAnnotation,ApplyAnnotationsFlag,false,"If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.")
}
}
// AddGeneratorFlags adds flags common to resource generation commands
// AddGeneratorFlags adds flags common to resource generation commands