Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
github.com/loveholidays/po-test
po-test
allows you to run prometheus alert unit tests against
prometheus operator manifests. Simply point your unit tests at a prometheus operator PrometheusRule
E.g.
rule_files:
- prometheus-operator-rules.yml
Where prometheus-operator-rules.yml
looks something like:
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
labels:
prometheus: k8s
role: alert-rules
name: prometheus-rules
spec:
groups:
- name: alerts
...
Then run po-test prometheus-operator-unittest.yml
.
The CLI will strip the kubernetes metadata from the target, run the unit tests against it, then put it back again.
It is also suitable for running as part of a CI/CD pipeline.
Run this to install prometheus that will also provide promtool
brew install prometheus
# go >= 1.17
# Using `go get` to install binaries is deprecated.
# The version suffix is mandatory.
go install github.com/loveholidays/po-test@latest
# go < 1.17
go get github.com/loveholidays/po-test
brew install loveholidays/taps/po-test
Grab the latest OS/Arch compatible binary from our Releases page.
git clone git@github.com:loveholidays/po-test.git
make build
po-test test-file1.yaml test-file2.yaml ...
Pushing a tag to origin with a version number will run the github actions to release that version.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.