Skip to content

Commit

Permalink
doc(GitOpsConfig): Fix config example
Browse files Browse the repository at this point in the history
Fixes #162 (until we officially release and document apiVersion v2)
  • Loading branch information
christiansiegel committed Aug 3, 2021
1 parent 8d9546a commit 8452a03
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/includes/preview-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Make sure that your *app repository* contains a `.gitops.config.yaml` file. This
apiVersion: v1
applicationName: app-xy
previewConfig:
host: {PREVIEW_NAMESPACE}.example.tld
host: '{PREVIEW_NAMESPACE}.example.tld'
# template: # optional section
# organisation: templates # optional (default: target.organisation)
# repository: template-repo # optional (default: target.repository)
Expand All @@ -40,18 +40,18 @@ previewConfig:
organisation: deployments
repository: deployment-config-repo
# branch: master # optional (defaults to repo's default branch)
namespace: {APPLICATION_NAME}-{PREVIEW_ID_HASH}-preview # optional (default: '{APPLICATION_NAME}-{PREVIEW_ID}-{PREVIEW_ID_HASH}-preview',
# Invalid characters in PREVIEW_ID will be replaced. PREVIEW_ID will be
# truncated if max namespace length exceeds 63 chars.)
namespace: '{APPLICATION_NAME}-{PREVIEW_ID_HASH}-preview' # optional (default: '{APPLICATION_NAME}-{PREVIEW_ID}-{PREVIEW_ID_HASH}-preview',
# Invalid characters in PREVIEW_ID will be replaced. PREVIEW_ID will be
# truncated if max namespace length exceeds 63 chars.)
replace:
Chart.yaml:
- path: name
value: {PREVIEW_NAMESPACE}
value: '{PREVIEW_NAMESPACE}'
values.yaml:
- path: app.image
value: registry.example.tld/my-app:{GIT_HASH}
- path: route.host
value: {PREVIEW_HOST}
value: '{PREVIEW_HOST}'
```
#### Variables
Expand Down

0 comments on commit 8452a03

Please sign in to comment.