@@ -316,6 +316,20 @@ parameters to `spk service create --helm-config-git`:
316
316
317
317
` https://dev.azure.com/fabrikam/fabrikam-project/_git/fabrikam-helm-charts `
318
318
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
+
319
333
##### Helm Charts in a distinct Git Repository from Application Sources in a different Azure DevOps Project
320
334
321
335
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
337
351
url. If you retrieve the URL from Azure DevOps's "Clone Repository" UI, it will
338
352
automatically have the username filled for an HTTPs clone ie:
339
353
340
- ` https://[email protected] /fabrikam/fabrikam-project/_git/fabrikam-helm-charts `
354
+ ` https://[email protected] /fabrikam/fabrikam-helm-charts- project/_git/fabrikam-helm-charts `
341
355
342
356
Ensure that the you _ remove_ the ` fabrikam@ ` portion of the URL when passing
343
357
parameters to ` spk service create --helm-config-git ` :
344
358
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 `
346
360
347
361
Note the different Azure DevOps URL for the helm charts project in Azure DevOps
348
362
and the addition of the ` --helm-config-access-token-variable ` parameter.
0 commit comments