Skip to content

Commit

Permalink
CI values file
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Mingorance committed Aug 20, 2020
1 parent 4e4550f commit a30af96
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 10 deletions.
1 change: 0 additions & 1 deletion ci/helm-conftest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set -euo pipefail
alias conftest=/root/.helm/plugins/helm-conftest/bin/conftest
helm repo remove local

echo -n "$(helm version)"
for chart in $(find stable -maxdepth 1 -mindepth 1); do
echo -n "helm-conftest running for chart: ${chart}..."
# Remove any dependencies as we are not going to test them
Expand Down
43 changes: 38 additions & 5 deletions stable/cluster-overprovisioner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,38 @@ Installs a deployment that overprovisions the cluster

**Homepage:** <https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler>

## Maintainers
## How to install this chart

| Name | Email | Url |
| ---- | ------ | --- |
| max-rocket-internet | [email protected] | |
| mmingorance-dh | [email protected] | |
Add Delivery Hero public chart repo:

```console
helm repo add deliveryhero https://charts.deliveryhero.io
helm repo update
```

A simple install with default values:

```console
helm install deliveryhero/cluster-overprovisioner
```

To install the chart with the release name `my-release`:

```console
helm install --name my-release deliveryhero/cluster-overprovisioner
```

To install with some set values:

```console
helm install --name my-release deliveryhero/cluster-overprovisioner --set values_key1=value1 --set values_key2=value2
```

To install with custom values file:

```console
helm install --name my-release deliveryhero/cluster-overprovisioner -f values.yaml
```

## Source Code

Expand Down Expand Up @@ -46,3 +72,10 @@ Installs a deployment that overprovisions the cluster
| priorityClassDefault.value | int | `0` | Priority value of the default priorityClass |
| priorityClassOverprovision.name | string | `"overprovisioning"` | Name of the overprovision priorityClass |
| priorityClassOverprovision.value | int | `-1` | Priority value of the overprovision priorityClass |

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| max-rocket-internet | [email protected] | |
| mmingorance-dh | [email protected] | |
18 changes: 18 additions & 0 deletions stable/cluster-overprovisioner/ci/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
deployments:
- name: ci-one
annotations: {}
replicaCount: 1
nodeSelector: {}
resources: {}
tolerations: []
affinity: {}
labels: {}

- name: ci-two
annotations: {}
replicaCount: 0
nodeSelector: {}
resources: {}
tolerations: []
affinity: {}
labels: {}
8 changes: 4 additions & 4 deletions stable/cluster-overprovisioner/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ Create chart name and version as used by the chart label.
Return the appropriate apiVersion for PriorityClass.
*/}}
{{- define "PriorityClass.apiVersion" -}}
{{- if semverCompare ">=1.8-0, <1.11-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "scheduling.k8s.io/v1alpha1" -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "scheduling.k8s.io/v1" -}}
{{- else if semverCompare ">=1.11-0, <1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "scheduling.k8s.io/v1beta1" -}}
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "scheduling.k8s.io/v1" -}}
{{- else if semverCompare "<1.11-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "scheduling.k8s.io/v1alpha1" -}}
{{- end -}}
{{- end -}}

0 comments on commit a30af96

Please sign in to comment.