github.com/banzaicloud/istio-operator/pkg/apis@v0.10.8/apis.go (about)

     1  /*
     2  Copyright 2019 Banzai Cloud.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Generate deepcopy for apis
    18  //go:generate ../../bin/deepcopy-gen -O zz_generated.deepcopy -i ./... -h ../../hack/boilerplate.go.txt
    19  
    20  // Package apis contains Kubernetes API groups.
    21  package apis
    22  
    23  import (
    24  	"k8s.io/apimachinery/pkg/runtime"
    25  )
    26  
    27  // AddToSchemes may be used to add all resources defined in the project to a Scheme
    28  var AddToSchemes runtime.SchemeBuilder
    29  
    30  // AddToScheme adds all Resources to the Scheme
    31  func AddToScheme(s *runtime.Scheme) error {
    32  	return AddToSchemes.AddToScheme(s)
    33  }