Kubernetes secrets

https://docs.drone.io/secret/external/kubernetes/
The instructions here don’t seem to work no matter what I do. I have the server, runner and k8s secrets all install with Helm. The kubernetes-secrets starts without error.

kind: secret
name: docker_username
get:
  path: repo-secret
  name: docker_username
---
kind: secret
name: docker_password
get:
  path: repo-secret
  name: docker_password
---
kind: pipeline
name: build-base-images
type: kubernetes

steps:
  - name: build
    image: alpine
    environment:
      USERNAME:
        from_secret: docker_username
    commands:
      - set
      - echo Username is [$USERNAME]

trigger: 
  event:
    - push
  branch:
    - main
image_pull_secrets:
  - repo-secret
  - docker_username

I have confirmed that it works using the plugin CLI

drone plugins secret get repo-secret docker_password --repo .

Don’t worry I was being an idiot. I was using the wrong envconfig