Short:"Show what differences would be applied to existing static pod manifests. See also: kubeadm upgrade apply --dry-run",
Run:func(cmd*cobra.Command,args[]string){
kubeadmutil.CheckErr(runDiff(flags,args))
},
}
cmd.Flags().StringVar(&flags.apiServerManifestPath,"api-server-manifest",defaultAPIServerManifestPath,"path to API server manifest")
cmd.Flags().StringVar(&flags.controllerManagerManifestPath,"controller-manager-manifest",defaultControllerManagerManifestPath,"path to controller manifest")
cmd.Flags().StringVar(&flags.schedulerManifestPath,"scheduler-manifest",defaultSchedulerManifestPath,"path to scheduler manifest")
cmd.Flags().IntVarP(&flags.contextLines,"context-lines","c",3,"How many lines of context in the diff")
returncmd
}
funcrunDiff(flags*diffFlags,args[]string)error{
// If the version is specified in config file, pick up that value.
glog.V(1).Infof("fetching configuration from file",flags.parent.cfgPath)