You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add SKE login command
Co-authored-by: Maximilian Geberl <[email protected]>
* Different improvement from code review
* remove unused function
* rearrange functions and improve error messages
* Add tests for cache pkg
* Extend kubeconfig create command with flag to retrieve login kubeconfig
* small extension to the kubeconfig login description
* improve descriptions and examples
* fix yaml output
* codereview: use os.UserCacheDir instead of external lib
* codereview: drop parseInput and use parseClusterConfig directly; move cacheKey into clusterConfig
* codereview: add one nil check
* codereview: print user facing error that explains that the login command should not be used directly
* fixup! codereview: use os.UserCacheDir instead of external lib
* codereview: first try at improving the description
* generate-docs
* Add tests for login (buildRequest & parseKubeConfigToExecCredential
* cache: call Init func directly and return err
* use p.Outputf instead of cmd.Print
---------
Co-authored-by: Maximilian Geberl <[email protected]>
Create a kubeconfig for the SKE cluster with name "my-cluster"
22
22
$ stackit ske kubeconfig create my-cluster
23
23
24
+
Get a login kubeconfig for the SKE cluster with name "my-cluster". This kubeconfig does not contain any credentials and instead obtains valid credentials via the `stackit ske kubeconfig login` command.
-e, --expiration string Expiration time for the kubeconfig in seconds(s), minutes(m), hours(h), days(d) or months(M). Example: 30d. By default, expiration time is 1h
38
41
--filepath string Path to create the kubeconfig file. By default, the kubeconfig is created as 'config' in the .kube folder, in the user's home directory.
39
42
-h, --help Help for "stackit ske kubeconfig create"
43
+
-l, --login Create a login kubeconfig that obtains valid credentials via the STACKIT CLI. This flag is mutually exclusive with the expiration flag.
Login plugin for kubernetes clients, that creates short-lived credentials to authenticate against a STACKIT Kubernetes Engine (SKE) cluster.
8
+
First you need to obtain a kubeconfig for use with the login command (first example).
9
+
Secondly you use the kubeconfig with your chosen Kubernetes client (second example), the client will automatically retrieve the credentials via the STACKIT CLI.
10
+
11
+
```
12
+
stackit ske kubeconfig login [flags]
13
+
```
14
+
15
+
### Examples
16
+
17
+
```
18
+
Get a login kubeconfig for the SKE cluster with name "my-cluster". This kubeconfig does not contain any credentials and instead obtains valid credentials via the `stackit ske kubeconfig login` command.
0 commit comments