kubeshop / monokle-core

Monokle validation engine, CLI and shared UI components
MIT License
18 stars 3 forks source link

Explore GitOps enforcer plugin #117

Open WitoDelnat opened 1 year ago

WitoDelnat commented 1 year ago

The goal is to identify kubernetes resources which are not managed by GitOps.

Usage

# monokle.validation.yaml
plugins:
  gitops-enforcer: true
rules:
  gitops-enforcer/argo-cd: "err"
  gitops-enforcer/flux: false

Afterwards:

kubectl get all | monokle validate -

Implementation details

Remarks

Usage is not so nice to need a file to enable a plugin that runs on a cluster from anywhere.

Dependencies

olensmar commented 1 year ago

inspired by https://github.com/raffis/gitops-zombies