-
Notifications
You must be signed in to change notification settings - Fork 0
Update README #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Update README #10
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,55 @@ | ||
| # Odin Helm Charts | ||
|
|
||
| A set of helm charts for Odin detector deployments | ||
| A set of helm charts for Odin detector deployments. | ||
|
|
||
| ## Overview | ||
|
|
||
| There are charts for different odin detectors in the `Charts` directory. These charts | ||
| depend on the `ioc-instance` chart in [ec-helm-charts], which deploys the | ||
| fastcs-odin IOC, and add additional templates to instantiate an Odin deployment of | ||
| multiple processes for the data capture. | ||
|
|
||
| ## CI | ||
|
|
||
| The `package-helm-charts` CI job will run `helm package ...` on all the charts in the | ||
| repo to test that the charts can be published when released. This can be tested locally | ||
| by running `package-helm-charts.sh`. See the [helm docs][helm-docs] for more | ||
| information. | ||
|
|
||
| The `generate-schemas` CI job creates a schema from metadata in the default | ||
| `values.yaml` of each chart using [helm-schema]. See the [helm-schema | ||
| docs][helm-schema-docs] for the formatting of this metadata. The schema makes | ||
| instantiating the chart much easier by enabling auto-complete using the | ||
| yaml-language-server vscode extension. This can be tested locally by running | ||
| `./generate-schemas.sh`. | ||
|
|
||
| ## Release Process | ||
|
|
||
| Individual charts should be versioned and released separately. For a git tag / GitHub | ||
| release of the form `<chart>@<chart-version>`, `<chart>` will be published with version | ||
| `<chart-version>` and a schema will be released with version `<chart>@<chart-version>`. | ||
| This decoupling of chart releases enables semantic versioning of each chart in isolation | ||
| and removes repeated releases of the same chart. | ||
|
|
||
| For example, tagging the repo with `odin-eiger@0.2.3` will publish a helm chart `0.2.3` | ||
| to ghcr and make a GitHub release `odin-eiger@0.2.3` with the schema. | ||
|
|
||
GDYendell marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ```helm | ||
| dependencies: | ||
| - name: odin-eiger | ||
| version: 0.2.3 | ||
| repository: "oci://ghcr.io/diamondlightsource" | ||
| ``` | ||
|
|
||
| and the generated schema will be available as an asset on the GitHub release at | ||
|
|
||
| <https://github.com/DiamondLightSource/odin-helm-charts/releases/download/odin-eiger@0.2.3/odin-eiger.schema.json> | ||
|
|
||
| or for the latest release | ||
|
|
||
| <https://github.com/DiamondLightSource/odin-helm-charts/releases/latest/download/odin-eiger.schema.json> | ||
|
|
||
| [ec-helm-charts]: https://github.com/DiamondLightSource/odin-helm-charts/releases/latest/download/odin-eiger.schema.json | ||
| [helm-schema]: https://github.com/dadav/helm-schema | ||
| [helm-schema-docs]: https://github.com/dadav/helm-schema?tab=readme-ov-file#examples | ||
| [helm-docs]: https://helm.sh/docs/ | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.