From d721b649b793b97a2289efd39e80465789322447 Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Sat, 29 Jul 2017 11:40:32 -0400 Subject: [PATCH] Add rescheduler policy type. --- pkg/api/types.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkg/api/types.go diff --git a/pkg/api/types.go b/pkg/api/types.go new file mode 100644 index 000000000..cc3c6601a --- /dev/null +++ b/pkg/api/types.go @@ -0,0 +1,30 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package api + +import ( + "time" + + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +type ReschedulerPolicy struct { + metav1.TypeMeta + + // Time interval for rescheduler to run + ReschedulingInterval time.Duration +}