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

As a user I want to be able to re-authenticate on the sandbox

Open adietish opened this issue 3 years ago • 4 comments

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

Result: Editor shows an error notification, telling you that you're not authorized image 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

adietish avatar Apr 06 '22 09:04 adietish

Don't know how to fix this as each Kubernetes distribution has its own way of handling authentication

jeffmaury avatar Apr 06 '22 10:04 jeffmaury

@jeffmaury isn't there a way to query the supported auth methods (user/pass, oauth, etc.)?

adietish avatar Apr 11 '22 13:04 adietish

Not sure it's standardized. Some providers use a local binary (EKS, GCP,...)

jeffmaury avatar Apr 11 '22 14:04 jeffmaury

But we could at least achieve it for the sandbox.

adietish avatar Feb 07 '25 20:02 adietish