Skip to content

Commit c595f98

Browse files
committed
Move kube_flags_without_token creation
1 parent b423216 commit c595f98

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/cmd/authentication.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ EOF
6262

6363
### Without provided --token, the exec credential plugin should be triggered
6464
# Pre-condition: Client certificate authentication enabled on the API server - already checked by positive test above
65-
66-
kube_flags_without_token=('-s' "https://127.0.0.1:${SECURE_API_PORT}" '--insecure-skip-tls-verify=true')
6765

6866
# Command
6967
output2=$(kubectl "${kube_flags_without_token[@]:?}" --kubeconfig="${TMPDIR:-/tmp}"/invalid_exec_plugin.yaml get namespace kube-system -o name 2>&1 || true)

test/cmd/legacy-script.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,13 @@ runTests() {
342342
'-s' "http://127.0.0.1:${API_PORT}"
343343
)
344344

345-
# token defined in hack/testdata/auth-tokens.csv
346-
kube_flags_with_token=(
347-
'-s' "https://127.0.0.1:${SECURE_API_PORT}" '--token=admin-token' '--insecure-skip-tls-verify=true'
345+
kube_flags_without_token=(
346+
'-s' "https://127.0.0.1:${SECURE_API_PORT}" '--insecure-skip-tls-verify=true'
348347
)
349348

349+
# token defined in hack/testdata/auth-tokens.csv
350+
kube_flags_with_token=( "${kube_flags_without_token[@]}" '--token=admin-token' )
351+
350352
if [[ -z "${ALLOW_SKEW:-}" ]]; then
351353
kube_flags+=('--match-server-version')
352354
kube_flags_with_token+=('--match-server-version')

0 commit comments

Comments
 (0)