Skip to content

Add Kubernetes plugin#737

Open
idorozin wants to merge 2 commits into
dmno-dev:mainfrom
idorozin:add-kubernetes-plugin
Open

Add Kubernetes plugin#737
idorozin wants to merge 2 commits into
dmno-dev:mainfrom
idorozin:add-kubernetes-plugin

Conversation

@idorozin
Copy link
Copy Markdown

Summary

Adds @varlock/kubernetes-plugin, a read-only Varlock plugin for loading values from Kubernetes Secrets and ConfigMaps.

What changed

  • Added packages/plugins/kubernetes
  • Added @initKubernetes()
  • Added resolver functions:
    • k8sSecret()
    • k8sConfigMap()
    • k8sSecretBulk()
    • k8sConfigMapBulk()
  • Supports local kubeconfig, in-cluster service account auth, explicit clusterServer/token, namespaces, contexts, named instances, and allowMissing
  • Added mocked Kubernetes API tests
  • Added README and website docs
  • Added plugin listings
  • Added bumpy changeset for initial 0.1.0 release

Security

The plugin is read-only. It only performs Kubernetes get requests for Secrets and ConfigMaps and does not create, update, or delete cluster resources.

Verification

  • npx --yes bun@1.3.11 run lint
  • npx --yes bun@1.3.11 run build:libs
  • npx --yes bun@1.3.11 run --filter @varlock/kubernetes-plugin test
  • npx --yes bun@1.3.11 run --filter @varlock/kubernetes-plugin typecheck
  • node_modules/.bin/bumpy check --hook pre-push

Also ran a read-only live smoke test against an existing Kubernetes context by reading the standard kube-root-ca.crt ConfigMap.

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​kubernetes/​client-node@​1.4.09210010083100

View full report

@philmillman
Copy link
Copy Markdown
Member

Thanks for this @idorozin! We'll review today or tomorrow

@philmillman philmillman requested a review from theoephraim June 1, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants