blob: c9a9773fe5eb314868c998dc493bb7583ffd9d5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
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"
|