Skip to content

Commit

Permalink
Add helm chart for Kube and HyperShift
Browse files Browse the repository at this point in the history
Added Helm Chart values files for Generic Kube distribution and HyperShift Hosted Cluster
  • Loading branch information
Vincent056 committed Jun 20, 2023
1 parent a35521c commit 6c2baa4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions config/helm/generic-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Values defined in this file are specific to running the compliance-operator
# on a Generic Kubernetes Cluster. All other values use the defaults defined in values.yaml.
platform: generic
nodeSelector:
tolerations: null
6 changes: 6 additions & 0 deletions config/helm/hypershift-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Values defined in this file are specific to running the compliance-operator
# on HyperShift Hosted Cluster. All other values use the defaults defined in values.yaml.
platform: hypershift
nodeSelector:
node-role.kubernetes.io/worker: ""
tolerations: null
2 changes: 1 addition & 1 deletion config/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace: openshift-compliance

# The default platform for the compliance-operator. Available platforms are
# 'openshift', 'eks', 'generic', and 'unknown'.
# 'openshift', 'eks', 'generic', 'hypershift' and 'unknown'.
platform: openshift

# By default, the compliance-operator will deploy to nodes tagged with the
Expand Down
12 changes: 12 additions & 0 deletions doc/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ you can run the compliance-operator on EKS using the EKS-specific overrides in
$ helm install . --namespace openshift-compliance --generate-name -f eks-values.yaml
```

To install on Generic Kubernetes, use the `generic-values.yaml` file:

```
$ helm install . --namespace openshift-compliance --generate-name -f generic-values.yaml
```

To install on HyperShfit Hosted Cluster, use the `hypershift-values.yaml` file:

```
$ helm install . --namespace openshift-compliance --generate-name -f hypershift-values.yaml
```

You can use Helm to uninstall, or delete a release, but Helm does not cleanup
[custom resource
definitions](https://helm.sh/docs/chart_best_practices/custom_resource_definitions/#helm).
Expand Down

0 comments on commit 6c2baa4

Please sign in to comment.