Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 0fbd86f

Browse files
committed
PR updates
1 parent d59d43b commit 0fbd86f

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

guides/building-helm-charts-for-spk.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
### Prerequsities
44

5-
This guide assumes that you are familiar with understanding and creating
6-
[helm charts](https://helm.sh) - which are consumed by
7-
[fabrikate](https://github.com/microsoft/fabrikate) and `spk`.
5+
- This guide assumes that you are familiar with understanding and creating
6+
[helm charts](https://helm.sh) - which are consumed by
7+
[fabrikate](https://github.com/microsoft/fabrikate) and `spk`.
88

9-
It also assumes that you have set up your `spk` project, and installed all
10-
necessary pipelines created via `spk project init` (the lifecycle pipeline),
11-
`spk service create` (build update hld pipeline), and `spk hld init` (manifest
12-
generation pipeline).
9+
- It also assumes that you have set up your `spk` project, and installed all
10+
necessary pipelines created via `spk project init` (the lifecycle pipeline),
11+
`spk service create` (build update hld pipeline), and `spk hld init` (manifest
12+
generation pipeline).
13+
14+
- A helm chart with values.yaml containing
15+
[mandatory values](#mandatory-helm-chart-configuration).
1316

1417
### Introduction
1518

@@ -194,23 +197,33 @@ services:
194197
- The backing service `fabrikam-k8s-svc-dev`, (highlighted in green) is
195198
generated from `k8sBackend` and the ring name (`dev`).
196199

197-
#### Helm Configuration
200+
#### Mandatory Helm Chart Configuration
198201

199202
Take a look at the [packaged reference helm chart](./sample-helm-chart), it
200203
contains a `values.yaml`, which is a set of default values for helm charts:
201204

202205
```yaml
203206
image:
204207
tag: stable
208+
repository: ""
205209
206210
serviceName: "service"
207211
```
208212

209-
This configuration is overriden by the values from the
210-
[top-level configuration](#top-level-configuration) and the
211-
[ring-level-configuration](#ring-level-configuration) files, when `Fabrikate` is
212-
invoked in the manifest generation pipeline, thus allowing incremental builds to
213-
flow through pipelines to a cluster.
213+
This set of values is the _required_ set of values for `spk` created pipelines
214+
to operationalize building, updating, and deploying container images to your
215+
cluster.
216+
217+
`image.tag`: This configuration is overriden by the values from the
218+
[top-level configuration](#top-level-configuration)
219+
220+
`serviceName`: This configuration is overriden by the values form the
221+
[ring-level-configuration](#ring-level-configuration) file
222+
223+
`image.repository`: This configuration is a special configuration, that can
224+
_only_ configured by a pipeline variable, `ACR_NAME`. `ACR_NAME` must be
225+
configured to be strictly the name of the Azure Container Registry, _not_ it's
226+
fully qualified url ie. `fabrikam` instead of `fabrikam.azurecr.io`.
214227

215228
### Manifest generation pipeline
216229

0 commit comments

Comments
 (0)