cmd.Flags().BoolVar(&o.All,"all",o.All,"Select all resources in the namespace of the specified resource types.")
cmd.Flags().BoolVar(&o.All,"all",o.All,"Select all resources in the namespace of the specified resource types.")
cmd.Flags().StringArrayVar(&o.PruneWhitelist,"prune-whitelist",o.PruneWhitelist,"Overwrite the default whitelist with <group/version/kind> for --prune")
cmd.Flags().StringArrayVar(&o.PruneWhitelist,"prune-whitelist",o.PruneWhitelist,"Overwrite the default whitelist with <group/version/kind> for --prune")
cmd.Flags().BoolVar(&o.OpenApiPatch,"openapi-patch",o.OpenApiPatch,"If true, use openapi to calculate diff when the openapi presents and the resource can be found in the openapi spec. Otherwise, fall back to use baked-in types.")
cmd.Flags().BoolVar(&o.OpenApiPatch,"openapi-patch",o.OpenApiPatch,"If true, use openapi to calculate diff when the openapi presents and the resource can be found in the openapi spec. Otherwise, fall back to use baked-in types.")
cmd.Flags().BoolVar(&o.ServerDryRun,"server-dry-run",o.ServerDryRun,"If true, request will be sent to server with dry-run flag, which means the modifications won't be persisted. This is an alpha feature and flag.")
err=fmt.Errorf("An error occurred force-replacing the existing object with the newly provided one:\n\n%v.\n\nAdditionally, an error occurred attempting to restore the original object:\n\n%v\n",err,recreateErr)
err=fmt.Errorf("An error occurred force-replacing the existing object with the newly provided one:\n\n%v.\n\nAdditionally, an error occurred attempting to restore the original object:\n\n%v\n",err,recreateErr)