--force[=false]: Continue even if there are pods not managed by a ReplicationController, Job, or DaemonSet.
--force[=false]: Continue even if there are pods not managed by a ReplicationController, Job, or DaemonSet.
--grace-period=-1: Period of time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used.
--grace-period=-1: Period of time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used.
cmd.Flags().IntVar(&options.GracePeriodSeconds,"grace-period",-1,"Period of time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used.")
cmd.Flags().IntVar(&options.GracePeriodSeconds,"grace-period",-1,"Period of time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used.")
fmt.Fprintf(o.out,"WARNING: About to delete these %s\n",unmanagedMsg(unreplicatedPodNames,[]string{},false))
if!o.Force{
returnpods,fmt.Errorf("refusing to continue due to pods managed by neither a ReplicationController, nor a Job, nor a DaemonSet: %s (use --force to override)",joined)
}
fmt.Fprintf(o.out,"WARNING: About to delete these pods managed by neither a ReplicationController, nor a Job, nor a DaemonSet: %s\n",joined)