forked from fabric8io/kubernetes-client
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Config client authentication exec command should not fail when a…
…rgs is null Signed-off-by: Sun Seng David TAN <[email protected]> (cherry picked from commit ec0aba8) Signed-off-by: Marc Nuri <[email protected]>
- Loading branch information
Showing
5 changed files
with
77 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
kubernetes-client/src/test/resources/test-kubeconfig-exec-null-args
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: v1 | ||
kind: Config | ||
clusters: | ||
- cluster: | ||
server: https://wherever | ||
name: test | ||
contexts: | ||
- context: | ||
cluster: test | ||
user: test | ||
name: test | ||
current-context: test | ||
users: | ||
- name: test | ||
user: | ||
exec: | ||
apiVersion: client.authentication.k8s.io/v1alpha1 | ||
args: null | ||
command: ./token-generator | ||
env: | ||
- name: PART1 | ||
value: hello |
22 changes: 22 additions & 0 deletions
22
kubernetes-client/src/test/resources/test-kubeconfig-exec-win-null-args
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: v1 | ||
kind: Config | ||
clusters: | ||
- cluster: | ||
server: https://wherever | ||
name: test | ||
contexts: | ||
- context: | ||
cluster: test | ||
user: test | ||
name: test | ||
current-context: test | ||
users: | ||
- name: test | ||
user: | ||
exec: | ||
apiVersion: client.authentication.k8s.io/v1alpha1 | ||
args: null | ||
command: ".\\token-generator-win.bat" | ||
env: | ||
- name: PART1 | ||
value: hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters