62 lines
1.8 KiB
Text
62 lines
1.8 KiB
Text
|
apiVersion: v1
|
||
|
clusters:
|
||
|
- cluster:
|
||
|
server: https://localhost:6443
|
||
|
name: localhost:6443
|
||
|
contexts:
|
||
|
- context:
|
||
|
cluster: localhost:6443
|
||
|
namespace: default
|
||
|
user: system:admin:exec-search-path
|
||
|
name: localhost/system:admin:exec-search-path
|
||
|
- context:
|
||
|
cluster: localhost:6443
|
||
|
namespace: default
|
||
|
user: system:admin:exec-relative-path
|
||
|
name: localhost/system:admin:exec-relative-path
|
||
|
- context:
|
||
|
cluster: localhost:6443
|
||
|
namespace: default
|
||
|
user: system:admin:exec-absolute-path
|
||
|
name: localhost/system:admin:exec-absolute-path
|
||
|
kind: Config
|
||
|
preferences: {}
|
||
|
users:
|
||
|
- name: system:admin:exec-search-path
|
||
|
user:
|
||
|
exec:
|
||
|
# Command to execute. Required.
|
||
|
command: "example-exec-plugin"
|
||
|
|
||
|
# API version to use when decoding the ExecCredentials resource. Required.
|
||
|
#
|
||
|
# The API version returned by the plugin MUST match the version listed here.
|
||
|
#
|
||
|
# To integrate with tools that support multiple versions (such as client.authentication.k8s.io/v1alpha1),
|
||
|
# set an environment variable or pass an argument to the tool that indicates which version the exec plugin expects.
|
||
|
apiVersion: "client.authentication.k8s.io/v1beta1"
|
||
|
|
||
|
# Environment variables to set when executing the plugin. Optional.
|
||
|
env:
|
||
|
- name: "FOO"
|
||
|
value: "bar"
|
||
|
|
||
|
# Arguments to pass when executing the plugin. Optional.
|
||
|
args:
|
||
|
- "arg1"
|
||
|
- "arg2"
|
||
|
|
||
|
- name: system:admin:exec-relative-path
|
||
|
user:
|
||
|
exec:
|
||
|
# Command to execute. Required.
|
||
|
command: "dir/example-exec-plugin"
|
||
|
apiVersion: "client.authentication.k8s.io/v1beta1"
|
||
|
|
||
|
- name: system:admin:exec-absolute-path
|
||
|
user:
|
||
|
exec:
|
||
|
# Command to execute. Required.
|
||
|
command: "/abs/path/example-exec-plugin"
|
||
|
apiVersion: "client.authentication.k8s.io/v1beta1"
|