ycao56 / governance-policy-propagator

Red Hat Advance Cluster Management Governance - Policy Propagator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Governance Policy Propagator

Red Hat Advance Cluster Management Governance - Policy Propagator

How it works

This operator watches for following changes to trigger reconcile

  1. policies changes in non-cluster namespaces

    a. policies in non-cluster namespaces triggers self reconcile

    b. policies in cluster namespaces triggers root policy reconcile

  2. placementbinding changes

  3. placementrule changes

Every reconcile does following things:

  1. Create/update/delete replicated policy in cluster namespace based on pb/plr results
  2. Create/update/delete policy status to show aggregated cluster compliance results

Run

export WATCH_NAMESPACE=""
operator-sdk run --local

Run e2e test

Make sure you have kind and ginkgo installed.

make kind-bootstrap-cluster
make e2e-test

To cleanup

make kind-delete-cluster

About

Red Hat Advance Cluster Management Governance - Policy Propagator


Languages

Language:Go 37.7%Language:Shell 27.9%Language:Makefile 27.0%Language:Python 5.6%Language:Dockerfile 0.8%Language:Awk 0.8%Language:Ruby 0.1%