-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
451 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
|
||
name: Publish Charts | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- charts/** | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Install Helm | ||
uses: azure/setup-helm@v1 | ||
with: | ||
version: v3.8.1 | ||
|
||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v2 | ||
name: opa-exporter | ||
description: Prometheus exporter for OPA Gatekeeper. | ||
type: application | ||
version: 0.1.0 | ||
appVersion: 0.0.4 | ||
home: https://github.com/mcelep/opa-scorecard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# opa-exporter | ||
|
||
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.4](https://img.shields.io/badge/AppVersion-0.0.4-informational?style=flat-square) | ||
|
||
Prometheus exporter for OPA Gatekeeper. | ||
|
||
## Get the Helm repository | ||
|
||
```shell | ||
helm repo add opa-exporter https://mcelep.github.io/opa-scorecard | ||
helm repo update | ||
``` | ||
|
||
_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._ | ||
|
||
## Installing the chart | ||
|
||
To install the chart with the release name `my-release`: | ||
|
||
```shell | ||
helm install my-release opa-exporter/opa-exporter | ||
``` | ||
|
||
## Uninstalling the chart | ||
|
||
To uninstall the `my-release` release: | ||
|
||
```shell | ||
helm delete my-release | ||
``` | ||
|
||
The command removes all the Kubernetes components associated with the chart and deletes the release. | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| affinity | object | `{}` | Pod affinity | | ||
| image.pullSecrets | list | `[]` | List of image pull secrets | | ||
| image.repository | string | `"mcelep/opa_scorecard_exporter"` | Image repository and name | | ||
| image.tag | string | `""` | Overrides the image tag whose default is the chart `appVersion` | | ||
| nodeSelector | object | `{}` | Pod node selector | | ||
| podAnnotations | object | `{}` | Pod annotations | | ||
| podSecurityContext | object | `{}` | Pod security context | | ||
| rbac.create | bool | `true` | Whether to create Cluster Role and Cluster Role Binding | | ||
| rbac.extraClusterRoleRules | list | `[]` | Extra ClusterRole rules | | ||
| rbac.useExistingRole | string | `nil` | Use an existing ClusterRole/Role | | ||
| replicaCount | int | `1` | Count of Pod replicas | | ||
| resources | object | `{}` | Resources for the Agent container | | ||
| securityContext | object | `{}` | Security context for the Agent container | | ||
| service.port | int | `80` | Service port | | ||
| service.type | string | `"ClusterIP"` | Service type | | ||
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account | | ||
| serviceAccount.create | bool | `true` | Whether to create the Service Account used by the Pod | | ||
| serviceAccount.name | string | `""` | If not set and `create` is `true`, a name is generated using the fullname template | | ||
| serviceMonitor.enabled | bool | `true` | Wherter to install `ServiceMonitor` or not | | ||
| tolerations | list | `[]` | Pod tolerations | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{{ template "chart.header" . }} | ||
|
||
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} | ||
|
||
{{ template "chart.description" . }} | ||
|
||
## Get the Helm repository | ||
|
||
```shell | ||
helm repo add opa-exporter https://mcelep.github.io/opa-scorecard | ||
helm repo update | ||
``` | ||
|
||
_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._ | ||
|
||
## Installing the chart | ||
|
||
To install the chart with the release name `my-release`: | ||
|
||
```shell | ||
helm install my-release opa-exporter/opa-exporter | ||
``` | ||
|
||
## Uninstalling the chart | ||
|
||
To uninstall the `my-release` release: | ||
|
||
```shell | ||
helm delete my-release | ||
``` | ||
|
||
The command removes all the Kubernetes components associated with the chart and deletes the release. | ||
|
||
{{ template "chart.valuesSection" . }} |
Oops, something went wrong.