Serge Bazanski | bb7db92 | 2020-04-30 12:43:10 +0200 | [diff] [blame^] | 1 | Copyright 2020 The Monogon Project Authors. |
| 2 | |
| 3 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | you may not use this file except in compliance with the License. |
| 5 | You may obtain a copy of the License at |
| 6 | |
| 7 | http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | |
| 9 | Unless required by applicable law or agreed to in writing, software |
| 10 | distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | See the License for the specific language governing permissions and |
| 13 | limitations under the License. |
| 14 | |
| 15 | |
| 16 | This patch rips out azure/openstack auth support for k8s.io/client-go. This should be made configurable upstream. |
| 17 | |
| 18 | diff -ur io_k8s_client_go.orig/plugin/pkg/client/auth/plugins.go io_k8s_client_go/plugin/pkg/client/auth/plugins.go |
| 19 | --- io_k8s_client_go.orig/plugin/pkg/client/auth/plugins.go 2020-04-16 17:46:53.965434780 +0200 |
| 20 | +++ io_k8s_client_go/plugin/pkg/client/auth/plugins.go 2020-04-16 17:47:21.720538171 +0200 |
| 21 | @@ -18,8 +18,6 @@ |
| 22 | |
| 23 | import ( |
| 24 | // Initialize all known client auth plugins. |
| 25 | - _ "k8s.io/client-go/plugin/pkg/client/auth/azure" |
| 26 | _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" |
| 27 | _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" |
| 28 | - _ "k8s.io/client-go/plugin/pkg/client/auth/openstack" |
| 29 | ) |