File tree Expand file tree Collapse file tree 5 files changed +0
-128
lines changed
main/java/io/kubernetes/client/util
test/java/io/kubernetes/client/util Expand file tree Collapse file tree 5 files changed +0
-128
lines changed Original file line number Diff line number Diff line change 140
140
<artifactId >bcpkix-jdk18on</artifactId >
141
141
<version >${bouncycastle.version} </version >
142
142
</dependency >
143
- <dependency >
144
- <groupId >com.microsoft.azure</groupId >
145
- <artifactId >adal4j</artifactId >
146
- <version >1.6.7</version >
147
- <optional >true</optional >
148
- </dependency >
149
- <!-- override the version in adal4j which has a CVE -->
150
- <dependency >
151
- <groupId >net.minidev</groupId >
152
- <artifactId >json-smart</artifactId >
153
- <version >2.5.1</version >
154
- <optional >true</optional >
155
- </dependency >
156
143
<dependency >
157
144
<groupId >com.amazonaws</groupId >
158
145
<artifactId >aws-java-sdk-sts</artifactId >
Original file line number Diff line number Diff line change 57
57
<groupId >org.bouncycastle</groupId >
58
58
<artifactId >bcpkix-jdk18on</artifactId >
59
59
</dependency >
60
- <dependency >
61
- <groupId >com.microsoft.azure</groupId >
62
- <artifactId >adal4j</artifactId >
63
- </dependency >
64
60
<dependency >
65
61
<groupId >com.amazonaws</groupId >
66
62
<artifactId >aws-java-sdk-sts</artifactId >
Original file line number Diff line number Diff line change 18
18
import com .google .gson .JsonParser ;
19
19
import io .kubernetes .client .persister .ConfigPersister ;
20
20
import io .kubernetes .client .util .authenticators .Authenticator ;
21
- import io .kubernetes .client .util .authenticators .AzureActiveDirectoryAuthenticator ;
22
21
import io .kubernetes .client .util .authenticators .GCPAuthenticator ;
23
22
import io .kubernetes .client .util .authenticators .OpenIDConnectAuthenticator ;
24
23
import java .io .File ;
@@ -79,7 +78,6 @@ public static void registerAuthenticator(Authenticator auth) {
79
78
80
79
static {
81
80
registerAuthenticator (new GCPAuthenticator ());
82
- registerAuthenticator (new AzureActiveDirectoryAuthenticator ());
83
81
registerAuthenticator (new OpenIDConnectAuthenticator ());
84
82
}
85
83
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 17
17
import com .google .auth .oauth2 .AccessToken ;
18
18
import com .google .auth .oauth2 .GoogleCredentials ;
19
19
import io .kubernetes .client .util .authenticators .Authenticator ;
20
- import io .kubernetes .client .util .authenticators .AzureActiveDirectoryAuthenticator ;
21
20
import io .kubernetes .client .util .authenticators .GCPAuthenticator ;
22
21
import java .io .ByteArrayInputStream ;
23
22
import java .io .FileReader ;
@@ -210,30 +209,6 @@ void gcpAuthProviderExpiredTokenWithoutGCloud() {
210
209
assertThat (kc .getCredentials ()).containsEntry (KubeConfig .CRED_TOKEN_KEY , fakeToken );
211
210
}
212
211
213
- @ Test
214
- void azureAuthProvider () {
215
- KubeConfig .registerAuthenticator (new AzureActiveDirectoryAuthenticator ());
216
- String azureConfig =
217
- "apiVersion: v1\n "
218
- + "contexts:\n "
219
- + "- context:\n "
220
- + " user: aks-cluster\n "
221
- + " name: foo-context\n "
222
- + "current-context: foo-context\n "
223
- + "users:\n "
224
- + "- name: aks-cluster\n "
225
- + " user:\n "
226
- + " auth-provider:\n "
227
- + " config:\n "
228
- + " access-token: fake-azure-token\n "
229
- + " expires-on: \" 1841569394\" \n "
230
- + " expiry-key: '{.credential.token_expiry}'\n "
231
- + " token-key: '{.credential.access_token}'\n "
232
- + " name: azure\n " ;
233
- KubeConfig kc = KubeConfig .loadKubeConfig (new StringReader (azureConfig ));
234
- assertThat (kc .getCredentials ()).containsEntry (KubeConfig .CRED_TOKEN_KEY , "fake-azure-token" );
235
- }
236
-
237
212
@ Test
238
213
void namespace () {
239
214
KubeConfig config = KubeConfig .loadKubeConfig (new StringReader (KUBECONFIG_TOKEN ));
You can’t perform that action at this time.
0 commit comments