Skip to content

Commit

Permalink
feat: add hellm instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <[email protected]>
  • Loading branch information
vishal-chdhry committed Feb 1, 2024
1 parent 2728fca commit e06bc12
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,15 @@ kubectl apply -f config/install.yaml # todo: use a release url
```

### Helm Chart
Reports server can be installed via the official Helm chart: -URL-
Reports server can be installed via the official Helm chart:
```shell
helm install report-server --namespace kyverno --wait ./charts/reports-server/ # todo: use a offical helm chart
```

Note: if you already have wgpolicy CRDs or kyverno CRDs installed, you won't be able to install api services. Use the following command to install other components:

```shell
helm install report-server --namespace kyverno --wait ./charts/reports-server/ --set apiServices.enabled=false # todo: use a offical helm chart
```

Now you can update the [apiservice samples](./config/samples/apiservices.yaml) with the right reports-server name and namespace and apply that manifest.
34 changes: 34 additions & 0 deletions config/samples/apiservices.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1alpha2.wgpolicyk8s.io
namespace: kyverno
labels:
kube-aggregator.kubernetes.io/automanaged: "false"
spec:
group: wgpolicyk8s.io
groupPriorityMinimum: 100
insecureSkipTLSVerify: true
service:
name: <REPORTS_SERVICE_NAME>
namespace: <REPORTS_SERVICE_NAMESPACE>
version: v1alpha2
versionPriority: 100
---
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1.reports.kyverno.io
namespace: kyverno
labels:
kube-aggregator.kubernetes.io/automanaged: "false"
spec:
group: reports.kyverno.io
groupPriorityMinimum: 100
insecureSkipTLSVerify: true
service:
name: <REPORTS_SERVICE_NAME>
namespace: <REPORTS_SERVICE_NAMESPACE>
version: v1
versionPriority: 100

0 comments on commit e06bc12

Please sign in to comment.