You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All tags must follow [Semantic Versioning](https://semver.org/).
15
16
@@ -102,8 +103,68 @@ The workflow runs on:
102
103
103
104
---
104
105
106
+
## Karpenter Helm Chart Release
107
+
108
+
The Karpenter Helm chart workflow packages the chart in `karpenter/charts/karpenter/` and publishes it as an OCI artifact to GHCR. A GitHub Release is also created when triggered by a tag.
- A `karpenter-chart/v*` tag push (packages, pushes, and creates a GitHub Release).
121
+
- Manual `workflow_dispatch` with an optional version override.
122
+
123
+
### Steps
124
+
125
+
1. Make sure all changes are merged to `main`.
126
+
127
+
2. Update `karpenter/charts/karpenter/Chart.yaml` if the `version` field does not already reflect the release version you want to publish.
128
+
129
+
3. Decide on a chart version (e.g. `v0.2.0`).
130
+
131
+
4. Create and push the tag:
132
+
133
+
```bash
134
+
git tag karpenter-chart/v0.2.0
135
+
git push origin karpenter-chart/v0.2.0
136
+
```
137
+
138
+
5. The [Release Karpenter Helm Chart](../../.github/workflows/karpenter-chart-release.yaml) workflow runs automatically. Monitor it in the **Actions** tab.
- A GitHub Release named **Karpenter Helm Chart v0.2.0** is created under **Releases** with the `.tgz` archive attached.
150
+
151
+
### Local Chart Build
152
+
153
+
To lint and package the chart locally without publishing:
154
+
155
+
```bash
156
+
cd karpenter
157
+
./hack/release-chart.sh # lint + package using Chart.yaml version
158
+
./hack/release-chart.sh --version 0.2.0 # lint + package with a specific version
159
+
```
160
+
161
+
The `.tgz` is written to `.helm-packages/karpenter-<version>.tgz` at the repository root.
162
+
163
+
---
164
+
105
165
## Troubleshooting
106
166
107
-
-**Workflow did not trigger** -- Verify the tag matches the expected pattern exactly (`cli/v*`or `karpenter/v*`). Tags like `CLI/v1.0.0` or `v1.0.0` without a prefix will not trigger the workflows.
167
+
- **Workflow did not trigger** -- Verify the tag matches the expected pattern exactly (`cli/v*`, `karpenter/v*`, or `karpenter-chart/v*`). Tags like `CLI/v1.0.0` or `v1.0.0` without a prefix will not trigger the workflows.
108
168
- **GoReleaser fails with "tag is not a semver"** -- Ensure the portion after the prefix is valid semver (e.g. `v1.2.3`, not `v1.2`).
109
169
- **Permission denied on release** -- The workflow requires `contents: write` permission. This is configured in the workflow file but may need to be allowed in the repository settings if the default token permissions are restricted.
170
+
- **Helm chart package not found** -- The `release-chart.sh` script expects the chart to be at `karpenter/charts/karpenter/`. Ensure the `Chart.yaml` exists there and the `version` field is set before running the workflow.
0 commit comments