From eba9f00816060f7619f7b91ac1be5eac1ebd0ef4 Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Sat, 29 Jul 2017 11:41:48 -0400 Subject: [PATCH] Add policy's v1alpha1's types. --- pkg/api/v1alpha1/types.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkg/api/v1alpha1/types.go diff --git a/pkg/api/v1alpha1/types.go b/pkg/api/v1alpha1/types.go new file mode 100644 index 000000000..e14643967 --- /dev/null +++ b/pkg/api/v1alpha1/types.go @@ -0,0 +1,28 @@ +/* +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 v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +type ReschedulerPolicy struct { + metav1.TypeMeta `json:",inline"` + + // Time interval for rescheduler to run + ReschedulingInterval time.Duration `json:"reschedulingInterval,omitempty"` +}