Insights-cli

A command line tool for interacting with Fairwinds Insights.
Want to learn more? Reach out on the Slack channel (request invite), send an email to opensource@fairwinds.com, or join us for office hours on Zoom
Contributing
PRs welcome! Check out the Contributing Guidelines and
Code of Conduct for more information.
Installation
Binary
Install the binary from our releases page.
Go Get
go get -u github.com/fairwindsops/insights-cli/cmd/insights
Usage
The Insights CLI requires a configuration file which by default is named fairwinds-insights.yaml in your current directory. You can overwrite this with the --config flag.
Policy
These are functions related to the Rules Engine or OPA polices.
Sync
Synchronize OPA policies to Fairwinds Insights.
The sync functionality expects a directory structure like the following.
.
+-- policy1
| +-- policy.yaml
| +-- instance1.yaml
+-- policy2
| +-- policy.rego
| +-- instance1.yaml
This will create two policies, one called policy1 the other called policy2 which each have an instance named instance1. The rego for these policies will be pulled from the policy.x file inside that folder. See the examples folder for more examples.