MCPcopy
hub / github.com/FairwindsOps/polaris

github.com/FairwindsOps/polaris @v10.2.0 sqlite

repository ↗ · DeepWiki ↗ · release v10.2.0 ↗
348 symbols 1,131 edges 49 files 115 documented · 33%
README

Polaris Logo

Polaris is an open source policy engine for Kubernetes

Polaris is an open source policy engine for Kubernetes that validates and remediates resource configuration. It includes 30+ built in configuration policies, as well as the ability to build custom policies with JSON Schema. When run on the command line or as a mutating webhook, Polaris can automatically remediate issues based on policy criteria.

Polaris can be run in three different modes: * As a dashboard - Validate Kubernetes resources against policy-as-code. * As an admission controller - Automatically reject or modify workloads that don't adhere to your organization's policies. * As a command-line tool - Incorporate policy-as-code into the CI/CD process to test local YAML files.

Polaris Architecture

Documentation

Check out the documentation at docs.fairwinds.com

Notice: Registry Migration and Immutable Images (v10.1.8 → v10.2.0)

Starting with v10.2.0:

  • Images moved to us-docker.pkg.dev/fairwinds-ops/oss/polaris
  • quay.io/fairwinds/polaris is deprecated

Required action

- quay.io/fairwinds/polaris:<tag>
+ us-docker.pkg.dev/fairwinds-ops/oss/polaris:<tag>

Immutable and signed images

  • Images are now signed
  • Tags are immutable
  • No more floating tags:

  • v10

  • v10.1
  • latest

Use full version tags:

us-docker.pkg.dev/fairwinds-ops/oss/polaris:v<major>.<minor>.<patch>

Or pin by digest:

us-docker.pkg.dev/fairwinds-ops/oss/polaris@sha256:<digest>

Join the Fairwinds Open Source Community

The goal of the Fairwinds Community is to exchange ideas, influence the open source roadmap, and network with fellow Kubernetes users. Chat with us on Slack

Other Projects from Fairwinds

Enjoying Polaris? Check out some of our other projects: * Goldilocks - Right-size your Kubernetes Deployments by compare your memory and CPU settings against actual usage * Pluto - Detect Kubernetes resources that have been deprecated or removed in future versions * Nova - Check to see if any of your Helm charts have updates available * rbac-manager - Simplify the management of RBAC in your Kubernetes clusters

Or check out the full list

Fairwinds Insights

If you're interested in running Polaris in multiple clusters, tracking the results over time, integrating with Slack, Datadog, and Jira, or unlocking other functionality, check out Fairwinds Insights, a platform for auditing and enforcing policy in Kubernetes clusters.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

IsActionable
called by 51
pkg/config/severity.go
GetSummary
called by 21
pkg/validator/summary.go
NewGenericResourceFromPod
called by 19
pkg/kube/resource.go
Parse
called by 16
pkg/config/config.go
MockPod
called by 14
test/fixtures.go
applyControllerSchemaChecks
called by 11
pkg/validator/schema.go
applyContainerSchemaChecks
called by 11
pkg/validator/schema.go
CheckObject
called by 8
pkg/config/schema.go

Shape

Function 254
Method 66
Struct 20
TypeAlias 7
FuncType 1

Languages

Go84%
TypeScript16%

Modules by API surface

pkg/dashboard/assets/js/cash-4.1.2.min.js31 symbols
pkg/config/schema.go28 symbols
pkg/validator/output.go27 symbols
pkg/dashboard/assets/js/Chart-2.7.2.min.js26 symbols
pkg/kube/resources.go23 symbols
pkg/validator/summary.go19 symbols
pkg/validator/schema.go19 symbols
test/fixtures.go16 symbols
pkg/validator/container_test.go12 symbols
pkg/mutation/mutate.go12 symbols
pkg/kube/resource.go11 symbols
pkg/dashboard/helpers_test.go10 symbols

Dependencies from manifests, versioned

github.com/beorn7/perksv1.0.1 · 1×
github.com/cespare/xxhash/v2v2.3.0 · 1×
github.com/davecgh/go-spewv1.1.2-0.20180830191 · 1×
github.com/emicklei/go-restful/v3v3.13.0 · 1×
github.com/evanphx/json-patchv5.9.0+incompatible · 1×
github.com/evanphx/json-patch/v5v5.9.11 · 1×
github.com/fairwindsops/controller-utilsv0.3.4 · 1×
github.com/fsnotify/fsnotifyv1.9.0 · 1×
github.com/fxamacker/cbor/v2v2.9.0 · 1×
github.com/go-logr/logrv1.4.3 · 1×
github.com/go-logr/stdrv1.2.2 · 1×

For agents

$ claude mcp add polaris \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact