-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(k8s): add Helm module inheritance via the
base
field
- Loading branch information
Showing
55 changed files
with
693 additions
and
572 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,13 +1,19 @@ | ||
# Voting example project with Helm charts | ||
|
||
This is a clone of the [vote example project](../vote/README.md), modified to use Helm charts to describe | ||
Kubernetes resources, instead of the `container` module type. | ||
Kubernetes resources, instead of the simpler `container` module type. | ||
|
||
You'll notice that we still use the `container` module types for building the container images (the corresponding | ||
`*-image` next to each service module), but they do not contain a `service` section. | ||
|
||
The `helm` modules only contain the charts, which reference the container images. Garden will build the images | ||
ahead of deploying the charts. | ||
|
||
Furthermore, to showcase the chart re-use feature, the `api` and `result` modules use the `base-chart` module | ||
as a base. | ||
|
||
For more details on how to use Helm charts, please refer to our | ||
[Helm user guide](https://docs.garden.io/using-garden). | ||
|
||
The usage and workflow is the same as in the [vote project](../vote/README.md), please refer to that for usage | ||
instructions. |
This file contains 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
examples/vote-helm/api/Chart.yaml → examples/vote-helm/base-chart/Chart.yaml
This file contains 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,5 +1,5 @@ | ||
apiVersion: v1 | ||
appVersion: "1.0" | ||
description: A Helm chart for Kubernetes | ||
name: api | ||
name: base-chart | ||
version: 0.1.0 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module: | ||
description: Base Helm chart for services | ||
type: helm | ||
name: base-chart | ||
serviceResource: | ||
kind: Deployment | ||
skipDeploy: true |
This file contains 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
Oops, something went wrong.