intellij-kubernetes
intellij-kubernetes copied to clipboard
As a user I want to be able to re-authenticate on the sandbox
Steps:
- ASSERT: have an outdated token on the sandbox
$ oc get pod
error: You must be logged in to the server (Unauthorized)
- ASSERT: have a resource yml file, ex.
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-rolling
spec:
replicas: 1
selector:
matchLabels:
app: nginx-rolling
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
app: nginx-rolling
spec:
containers:
- image: nginx
name: nginx
ports:
- containerPort: 8080
- EXEC: open the resource yml file in an editor
Result:
Editor shows an error notification, telling you that you're not authorized
You now have to browse to your web console, log in, copy the login command and execute it in the terminal
Expected result: As a user I want to be able to execute these steps in the IDE
Don't know how to fix this as each Kubernetes distribution has its own way of handling authentication
@jeffmaury isn't there a way to query the supported auth methods (user/pass, oauth, etc.)?
Not sure it's standardized. Some providers use a local binary (EKS, GCP,...)
But we could at least achieve it for the sandbox.