intellij-kubernetes icon indicating copy to clipboard operation
intellij-kubernetes copied to clipboard

editor: Only heals after re-authenticating into the sandbox and then type in the editor

Open adietish opened this issue 3 years ago • 1 comments

related to #374

Steps:

  1. ASSERT: have an outdated token on the sandbox
$ oc get pod
error: You must be logged in to the server (Unauthorized)
  1. 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

  1. EXEC: open the resource yml file in an editor
  2. ASSERT: editor shows an error notification, telling you that you're not authorized image
  3. EXEC: Browse to your web console, log in, copy the login command and execute it in the terminal
  4. EXEC: get back to the editor
  5. ASSERT: Editor still says that you're not authorized image
  6. 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.

adietish avatar Apr 06 '22 09:04 adietish