kubectl-ai icon indicating copy to clipboard operation
kubectl-ai copied to clipboard

Error: no Auth Provider found for name "oidc"

Open gengwg opened this issue 2 years ago • 0 comments

We utilize Dex for OIDC authentication via LDAP. it doesn't seem to be functioning for our situation. I manually copied the generated YAML and applied it using kubectl, which works. so no problem with the generated yaml, looks some bug with this tool.

$ k kubectl-ai "create an nginx deployment with 3 replicas. use image harbor.my.com/my/nginx:1.21.4-alpine."
✨ Attempting to apply the following manifest:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: harbor.my.com/my/nginx:1.21.4-alpine
        ports:
        - containerPort: 80
✔ Apply
Error: no Auth Provider found for name "oidc"

gengwg avatar Jul 09 '23 18:07 gengwg