Skip to content

Commit 00a9874

Browse files
committed
feat: add 'latest' tag and docs
Signed-off-by: Douglas Gadêlha <dgadelha@live.com>
1 parent 3fa07c2 commit 00a9874

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/helm.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ jobs:
5151
sed -i "s/0.0.0/$VERSION/g" helm/Chart.yaml
5252
npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION
5353
54+
if [[ "${{ github.ref_type }}" == "tag" ]]; then
55+
sed -i "s/$VERSION/latest/g" helm/Chart.yaml
56+
npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION
57+
else
58+
sed -i "s/$VERSION/edge/g" helm/Chart.yaml
59+
npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION
60+
fi
61+
5462
- name: Publish chart 🚀
5563
run: |
5664
helm push *.tgz oci://ghcr.io/cubos/charts

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ This is a Kubernetes controller that resizes disks of pods running, if usage is
66

77
The controller runs a CronJob every 5 minutes that lists all PersistentVolumeClaims in the cluster. For each PVC, it checks if the PVC is bound to a Pod and if the Pod is running. If so, it checks the disk usage of the Pod. If the disk usage is above 85%, it resizes the PVC to a bigger size (110%).
88

9+
## Installing on your cluster
10+
11+
[Helm](https://helm.sh) is the recommended way to install the controller on your cluster.
12+
13+
```bash
14+
helm install disk-resizer-controller oci://ghcr.io/cubos/charts/disk-resizer-controller \
15+
--namespace kube-system \
16+
--set secrets.env.CLUSTER_NAME=your-cluster-name \
17+
--set secrets.env.SLACK_WEBHOOK_URL="https://hooks.slack.com/services/your/slack/webhook/url"
18+
```
19+
920
## Environment variables
1021

1122
| Name | Description | Required |

0 commit comments

Comments
 (0)