From 34d88ab9ceb6a7a95f615bbb58bfafa084dfb879 Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Sat, 29 Jul 2017 11:02:11 -0400 Subject: [PATCH] Add default functions. --- pkg/apis/componentconfig/v1alpha1/defaults.go | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pkg/apis/componentconfig/v1alpha1/defaults.go diff --git a/pkg/apis/componentconfig/v1alpha1/defaults.go b/pkg/apis/componentconfig/v1alpha1/defaults.go new file mode 100644 index 000000000..a4733c3db --- /dev/null +++ b/pkg/apis/componentconfig/v1alpha1/defaults.go @@ -0,0 +1,23 @@ +/* +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 "k8s.io/apimachinery/pkg/runtime" + +func addDefaultingFuncs(scheme *runtime.Scheme) error { + return RegisterDefaults(scheme) +}