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
1. Run the operator locally outside the cluster by executing the following command inside the `weaviate-operator` repository:
@@ -173,3 +174,55 @@ make undeploy
173
174
```
174
175
175
176
or simply stop the process if you started it via `make install run`.
177
+
178
+
## Development
179
+
180
+
### Updating the Helm Chart
181
+
182
+
The operator is based on the [Weaviate Helm Chart](https://github.com/weaviate/weaviate-helm). To update the Helm chart to the latest version, you can use the provided script:
183
+
184
+
```shell
185
+
./update-helm-chart.sh
186
+
```
187
+
188
+
To update to a specific version of the Helm chart:
189
+
190
+
```shell
191
+
./update-helm-chart.sh 1.2.3
192
+
```
193
+
194
+
After updating the Helm chart, you can generate the operator.yaml:
195
+
196
+
```shell
197
+
make generate-operator-yaml
198
+
```
199
+
200
+
### Release Process
201
+
202
+
The operator uses a single GitHub workflow with sequential jobs for the release process:
203
+
204
+
1.**Release Job**: Handles creating releases and updating the Helm chart
205
+
- Updates to the specified Helm chart version
206
+
- Generates the operator.yaml
207
+
- Creates a GitHub release with the operator.yaml attached
208
+
- For non-draft manual releases, creates and pushes a tag
209
+
210
+
2.**Docker Build Job**: Runs after the Release job completes
211
+
- Builds and pushes the Docker image with the appropriate version tag
212
+
- Only runs for non-draft releases
213
+
214
+
The workflow can be triggered in two ways:
215
+
216
+
-**Manual Trigger**: Through the GitHub UI
217
+
- Go to Actions → Weaviate Operator Release → Run workflow
218
+
- Enter the version number and configure options:
219
+
- Helm chart version (defaults to latest)
220
+
- Draft mode (create as draft release)
221
+
222
+
-**Automatic Trigger**: When a tag is pushed
223
+
- Create and push a tag: `git tag v1.2.3 && git push origin v1.2.3`
224
+
- This will create a published release and build the Docker image
225
+
226
+
#### Note on Helm Chart Updates
227
+
228
+
The Helm charts directory is excluded from git tracking to avoid committing large changes with each update. The charts are downloaded during the release process.
0 commit comments