intellij-kubernetes
intellij-kubernetes copied to clipboard
editor: Only heals after re-authenticating into the sandbox and then type in the editor
related to #374
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
- ASSERT: editor shows an error notification, telling you that you're not authorized

- EXEC: Browse to your web console, log in, copy the login command and execute it in the terminal
- EXEC: get back to the editor
- ASSERT: Editor still says that you're not authorized

- EXEC: type in the editor
Result: Editor heals and is back to work
Expected result: Editor should notice that authorization happened and the error should disappear without the user having to type in the editor.