Skip to content

Commit

Permalink
providerless tag for client-go auth plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Kubernetes-commit: c77bf835b8409da66d4f2a220c92a902d0888f9c
  • Loading branch information
dims authored and k8s-publishing-bot committed Mar 29, 2021
1 parent 6be0785 commit ac49e87
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugin/pkg/client/auth/plugins.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build providerless

/*
Copyright 2016 The Kubernetes Authors.
Expand All @@ -17,9 +19,6 @@ limitations under the License.
package auth

import (
// Initialize all known client auth plugins.
_ "k8s.io/client-go/plugin/pkg/client/auth/azure"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
// Initialize common client auth plugins.
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
_ "k8s.io/client-go/plugin/pkg/client/auth/openstack"
)
26 changes: 26 additions & 0 deletions plugin/pkg/client/auth/plugins_providers.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// +build !providerless

/*
Copyright 2016 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 auth

import (
// Initialize client auth plugins for cloud providers.
_ "k8s.io/client-go/plugin/pkg/client/auth/azure"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
_ "k8s.io/client-go/plugin/pkg/client/auth/openstack"
)

0 comments on commit ac49e87

Please sign in to comment.