k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/cmd/cloud-controller-manager/providers.go (about)

     1  /*
     2  Copyright 2020 The Kubernetes Authors.
     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  // The external controller manager is responsible for running controller loops that
    18  // are cloud provider dependent. It uses the API to listen to new events on resources.
    19  
    20  package main
    21  
    22  // NOTE: Importing all in-tree cloud-providers is not required when
    23  // implementing an out-of-tree cloud-provider. Leaving this empty file
    24  // here as a reference.
    25  
    26  // Here is how you would inject a cloud provider, first
    27  // you would use a init() method in say "k8s.io/legacy-cloud-providers/gce"
    28  // package that calls `cloudprovider.RegisterCloudProvider()`
    29  // and then here in this file you would add an import.
    30  //
    31  // import _ "k8s.io/legacy-cloud-providers/gce"