-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add insecure_skip_tls_verify flag (#20)
Added a new optional source config option `insecure_skip_tls_verify` that enables passing the `--insecure-skip-tls-verify` option to `kubectl` instead of `--certificate-authority=<ca_file>`. When `true`, the `certificate_authority` source config is ignored and can be omitted in the source config. Default is `false`. Co-authored-by: Justin Griffin <[email protected]>
- Loading branch information
Showing
14 changed files
with
172 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
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
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
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
9 changes: 9 additions & 0 deletions
9
test/fixtures/stdin-source-insecure-skip-tls-verify-false.json
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,9 @@ | ||
{ | ||
"source": { | ||
"url": "https://some-server:8443", | ||
"token": "a-token", | ||
"certificate_authority": "a-certificate", | ||
"insecure_skip_tls_verify": false, | ||
"resource_types": "namespaces" | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
test/fixtures/stdin-source-insecure-skip-tls-verify-true-ca_file-omitted.json
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,8 @@ | ||
{ | ||
"source": { | ||
"url": "https://some-server:8443", | ||
"token": "a-token", | ||
"insecure_skip_tls_verify": true, | ||
"resource_types": "namespaces" | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
test/fixtures/stdin-source-insecure-skip-tls-verify-true-params-kubectl.json
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,12 @@ | ||
{ | ||
"source": { | ||
"url": "https://some-server:8443", | ||
"token": "a-token", | ||
"certificate_authority": "a-certificate", | ||
"insecure_skip_tls_verify": true, | ||
"resource_types": "namespaces" | ||
} , | ||
"params": { | ||
"kubectl": "apply -k overlays/prod" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
test/fixtures/stdin-source-insecure-skip-tls-verify-true-with-version.json
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,13 @@ | ||
{ | ||
"source": { | ||
"url": "https://some-server:8443", | ||
"token": "a-token", | ||
"certificate_authority": "a-certificate", | ||
"insecure_skip_tls_verify": true, | ||
"resource_types": "namespaces" | ||
}, | ||
"version": { | ||
"uid": "cee83946-92c3-11e9-a784-3497f601230d", | ||
"resourceVersion": 6988465 | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
test/fixtures/stdin-source-insecure-skip-tls-verify-true.json
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,9 @@ | ||
{ | ||
"source": { | ||
"url": "https://some-server:8443", | ||
"token": "a-token", | ||
"certificate_authority": "a-certificate", | ||
"insecure_skip_tls_verify": true, | ||
"resource_types": "namespaces" | ||
} | ||
} |
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