Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,21 @@ for the available chart options and which component operators are enabled.
- [Kubebuilder](https://book.kubebuilder.io/quick-start.html)
- [Kustomize](https://kustomize.io/)
- [jq](https://stedolan.github.io/jq/) for some helper scripts
- [helm](https://github.com/helm/helm)

### Install Chart Testing

In order to lint and test your helm chart for creating a release, please install helm's `ct` command:

```bash
brew install chart-testing
```

If any new chart has been updated, or installed, you can run the following command to ensure everything is good!

```bash
ct lint --config deploy/ct.yaml
```

#### Install Kind

Expand Down
24 changes: 24 additions & 0 deletions docs/releasing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Release

## Description

In this document, we'll go over on how to properly create a release, and push it.

## Creating a Release

1. Create a branch off `v2` -- it's irrelevant of what the branch name is.
2. Think of the tag you'd like to update to, and we'll continue to use **tag** to reference this. For example, `2.0.0-alpha.3`.
3. In the [operator values](../deploy/operator/values.yaml), update the following:
1. The version at the top under `wandb:` is pointing to the latest server release. This server release should be the latest that was cut specifically for On-Prem.
2. The version under `wandb-operator:` needs to update the tag version to the one desired on point 2.
4. In the [operator chart](../deploy/operator/Chart.yaml), update the `version` and `appVersion` to the desired tag.
5. Ensure the [chart repos](..deploy/ct.yaml) match to that of the [chart](..deploy/operator/Chart.yaml). If there's missing ones, please proceed to add them, or update it.
6. Alas, run `ct lint --config deploy/ct.yaml` from root directory of this repository to ensure things will pass
7. Create a PR and get manager approval to merge and create the release

## Pushing the Release

Ensure the PR created has been merged onto `v2` branch.

1. Run the following GitHub Action: [Internal Image Publish](https://github.com/wandb/operator/actions/workflows/internal-image-publish.yaml) off the `v2` branch and use the desired tag that was used in part 1.
2. Run the following GitHub Action: [Internal Chart Publish](https://github.com/wandb/operator/actions/workflows/internal-chart-publish.yaml) off the `v2` branch
Loading