diff options
Diffstat (limited to 'vendor/gems/kubeclient/test/config/execauth.kubeconfig')
-rw-r--r-- | vendor/gems/kubeclient/test/config/execauth.kubeconfig | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/vendor/gems/kubeclient/test/config/execauth.kubeconfig b/vendor/gems/kubeclient/test/config/execauth.kubeconfig new file mode 100644 index 00000000000..c9a9773fe5e --- /dev/null +++ b/vendor/gems/kubeclient/test/config/execauth.kubeconfig @@ -0,0 +1,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" |