Skip to content

Commit f6d6f00

Browse files
authored
Remove misleading examples of {{image}} interpolation (#820)
When using the WORKLOAD_IMAGE variable it can cause problems to have the {{image}} placeholder in the workload definition.
1 parent 04b6acc commit f6d6f00

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

β€Ždocs/build/how-to/templating.mdβ€Ž

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ metadata:
1717
name: {{app}}
1818
namespace: {{team}}
1919
spec:
20-
image: {{image}}
2120
ingresses:
2221
{%- raw %}
2322
{{#each ingresses as |url|}}
@@ -31,7 +30,6 @@ Now, create a `vars.yaml` file containing variables for your deployment:
3130
```yaml
3231
app: myapplication
3332
team: myteam
34-
image: europe-north1-docker.pkg.dev/nais-management-id/myteam/myapplication:latest
3533
ingresses:
3634
- https://myapplication.nav.no
3735
- https://tjenester.nav.no/myapplication
@@ -43,7 +41,6 @@ Run the [`nais validate`](../../operate/cli/reference/validate.md) tool to see t
4341
$ nais validate --verbose --vars vars.yaml nais.yaml
4442
[πŸ“] Setting template variable 'team' to 'myteam'
4543
[πŸ“] Setting template variable 'app' to 'myapplication'
46-
[πŸ“] Setting template variable 'image' to 'europe-north1-docker.pkg.dev/nais-management-id/myteam/myapplication:latest'
4744
[πŸ“] Setting template variable 'ingresses' to '[https://myapplication.nav.no https://tjenester.nav.no/myapplication]'
4845
[πŸ“] Setting template variable 'namespace' to 'myteam'
4946
[πŸ–¨οΈ] Printing "app.yaml"...

β€Ždocs/workloads/application/how-to/create.mdβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ Add the following content to the file, and insert the appropriate values in the
3636
name: <MY-APP>
3737
namespace: <MY-TEAM>
3838
spec:
39-
image: {{image}} # Placeholder variable to be replaced by the CI/CD pipeline
4039
port: 8080
4140
replicas:
4241
max: 4

0 commit comments

Comments
Β (0)