tkn CLI plugin for Tekton Results API
Environment Variables: TKN_RESULTS_SSL_ROOTS_FILE_PATH: Path to local SSL cert to use. TKN_RESULTS_SSL_SERVER_NAME_OVERRIDE: SSL server name override (useful if using with a proxy such as kubectl port-forward).
Config:
A config file may be stored in ~/.config/tkn/results.yaml
to configure the CLI client.
Fields:
- address: Results API Server address
- service_account: When specified, the CLI will first fetch a bearer token
for the specified ServiceAccount and attach that to Result API requests.
- namespace: ServiceAccount namespace
- name: ServiceAccount name
- token: Bearer token to use for API requests. Takes priority over service_account.
- ssl: SSL connection options
- roots_file_path: Path to a certificate to include in the cert pool. Useful for adding allowed self-signed certs.
- server_name_override: For testing only. Sets the grpc.ssl_target_name_override value for requests.
Example:
```
address: results.dogfooding.tekton.dev:443
token: abcd1234
ssl:
roots_file_path: path/to/file
server_name_override: example.com
service_account:
namespace: default
name: result-reader
```
-a, --addr string Result API server address
-t, --authtoken string authorization bearer token to use for authenticated requests
-h, --help help for tkn-results
- tkn-results list - List Results
- tkn-results records - Command sub-group for querying Records