// AddFlags adds flags for a specific CMServer to the specified FlagSet
// AddFlags adds flags for a specific CMServer to the specified FlagSet
...
@@ -147,8 +155,12 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -147,8 +155,12 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
fs.DurationVar(&s.ResourceQuotaSyncPeriod,"resource-quota-sync-period",s.ResourceQuotaSyncPeriod,"The period for syncing quota usage status in the system")
fs.DurationVar(&s.ResourceQuotaSyncPeriod,"resource-quota-sync-period",s.ResourceQuotaSyncPeriod,"The period for syncing quota usage status in the system")
fs.DurationVar(&s.NamespaceSyncPeriod,"namespace-sync-period",s.NamespaceSyncPeriod,"The period for syncing namespace life-cycle updates")
fs.DurationVar(&s.NamespaceSyncPeriod,"namespace-sync-period",s.NamespaceSyncPeriod,"The period for syncing namespace life-cycle updates")
fs.DurationVar(&s.PVClaimBinderSyncPeriod,"pvclaimbinder-sync-period",s.PVClaimBinderSyncPeriod,"The period for syncing persistent volumes and persistent volume claims")
fs.DurationVar(&s.PVClaimBinderSyncPeriod,"pvclaimbinder-sync-period",s.PVClaimBinderSyncPeriod,"The period for syncing persistent volumes and persistent volume claims")
// TODO markt -- make this example a working config item with Recycler Config PR.
fs.StringVar(&s.VolumeConfigFlags.PersistentVolumeRecyclerPodTemplateFilePathNFS,"pv-recycler-pod-template-filepath-nfs",s.VolumeConfigFlags.PersistentVolumeRecyclerPodTemplateFilePathNFS,"The file path to a pod definition used as a template for NFS persistent volume recycling")
// fs.MyExample(&s.VolumeConfig.PersistentVolumeRecyclerTimeoutNFS, "pv-recycler-timeout-nfs", s.VolumeConfig.PersistentVolumeRecyclerTimeoutNFS, "The minimum timeout for an NFS PV recycling operation")
fs.IntVar(&s.VolumeConfigFlags.PersistentVolumeRecyclerMinimumTimeoutNFS,"pv-recycler-minimum-timeout-nfs",s.VolumeConfigFlags.PersistentVolumeRecyclerMinimumTimeoutNFS,"The minimum ActiveDeadlineSeconds to use for an NFS Recycler pod")
fs.IntVar(&s.VolumeConfigFlags.PersistentVolumeRecyclerIncrementTimeoutNFS,"pv-recycler-increment-timeout-nfs",s.VolumeConfigFlags.PersistentVolumeRecyclerIncrementTimeoutNFS,"the increment of time added per Gi to ActiveDeadlineSeconds for an NFS scrubber pod")
fs.StringVar(&s.VolumeConfigFlags.PersistentVolumeRecyclerPodTemplateFilePathHostPath,"pv-recycler-pod-template-filepath-hostpath",s.VolumeConfigFlags.PersistentVolumeRecyclerPodTemplateFilePathHostPath,"The file path to a pod definition used as a template for HostPath persistent volume recycling. This is for development and testing only and will not work in a multi-node cluster.")
fs.IntVar(&s.VolumeConfigFlags.PersistentVolumeRecyclerMinimumTimeoutHostPath,"pv-recycler-minimum-timeout-hostpath",s.VolumeConfigFlags.PersistentVolumeRecyclerMinimumTimeoutHostPath,"The minimum ActiveDeadlineSeconds to use for a HostPath Recycler pod. This is for development and testing only and will not work in a multi-node cluster.")
fs.IntVar(&s.VolumeConfigFlags.PersistentVolumeRecyclerIncrementTimeoutHostPath,"pv-recycler-timeout-increment-hostpath",s.VolumeConfigFlags.PersistentVolumeRecyclerIncrementTimeoutHostPath,"the increment of time added per Gi to ActiveDeadlineSeconds for a HostPath scrubber pod. This is for development and testing only and will not work in a multi-node cluster.")
fs.DurationVar(&s.HorizontalPodAutoscalerSyncPeriod,"horizontal-pod-autoscaler-sync-period",s.HorizontalPodAutoscalerSyncPeriod,"The period for syncing the number of pods in horizontal pod autoscaler.")
fs.DurationVar(&s.HorizontalPodAutoscalerSyncPeriod,"horizontal-pod-autoscaler-sync-period",s.HorizontalPodAutoscalerSyncPeriod,"The period for syncing the number of pods in horizontal pod autoscaler.")
fs.DurationVar(&s.DeploymentControllerSyncPeriod,"deployment-controller-sync-period",s.DeploymentControllerSyncPeriod,"Period for syncing the deployments.")
fs.DurationVar(&s.DeploymentControllerSyncPeriod,"deployment-controller-sync-period",s.DeploymentControllerSyncPeriod,"Period for syncing the deployments.")
fs.DurationVar(&s.PodEvictionTimeout,"pod-eviction-timeout",s.PodEvictionTimeout,"The grace period for deleting pods on failed nodes.")
fs.DurationVar(&s.PodEvictionTimeout,"pod-eviction-timeout",s.PodEvictionTimeout,"The grace period for deleting pods on failed nodes.")