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

Commit 46d63e6

Browse files
committed
Add more instructions for helm-config
1 parent 9eda8fd commit 46d63e6

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

guides/project-service-management-guide.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,20 @@ parameters to `spk service create --helm-config-git`:
316316

317317
`https://dev.azure.com/fabrikam/fabrikam-project/_git/fabrikam-helm-charts`
318318

319+
When you invoke `spk service create` with `--helm-config` argments, there is a
320+
4th optional argument that can be provided
321+
`--helm-config-access-token-variable`. This configuration option is the name of
322+
the environment variable containing a Personal Access Token to access the git
323+
repository in `helm config git`. In this scenario, however, both git
324+
repositories are in the same Azure DevOps project, `fabrikam-project`, so it is
325+
un-necessary to provide `--helm-config-access-token-variable`, as the Personal
326+
Access Token utilized by the pipelines, `ACCESS_TOKEN_SECRET`, will be the same
327+
for both application repository and helm chart repository. When
328+
`--helm-config-access-token-variable` is not provided, the repository defined by
329+
`--helm-config-git` will automatically use `ACCESS_TOKEN_SECRET`. The following
330+
scenario covers a situation in which you will want to configure the
331+
`--helm-config-access-token-variable` to something custom.
332+
319333
##### Helm Charts in a distinct Git Repository from Application Sources in a different Azure DevOps Project
320334

321335
If your Helm Charts are in their own distinct Git Repository in a different
@@ -337,12 +351,12 @@ The `helm-config-git` parameter _must not_ contain the username portion of a
337351
url. If you retrieve the URL from Azure DevOps's "Clone Repository" UI, it will
338352
automatically have the username filled for an HTTPs clone ie:
339353

340-
`https://[email protected]/fabrikam/fabrikam-project/_git/fabrikam-helm-charts`
354+
`https://[email protected]/fabrikam/fabrikam-helm-charts-project/_git/fabrikam-helm-charts`
341355

342356
Ensure that the you _remove_ the `fabrikam@` portion of the URL when passing
343357
parameters to `spk service create --helm-config-git`:
344358

345-
`https://dev.azure.com/fabrikam/fabrikam-project/_git/fabrikam-helm-charts`
359+
`https://dev.azure.com/fabrikam/fabrikam-helm-charts-project/_git/fabrikam-helm-charts`
346360

347361
Note the different Azure DevOps URL for the helm charts project in Azure DevOps
348362
and the addition of the `--helm-config-access-token-variable` parameter.

0 commit comments

Comments
 (0)