You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -613,7 +613,7 @@ images:
613
613
context: ./db # Build with --context=./db
614
614
# The following lines define custom tag schemata for this image
615
615
tags:
616
-
- devspace-${DEVSPACE_GIT_COMMIT}-######
616
+
- devspace-${devspace.git.commit}-######
617
617
```
618
618
Take a look at the documentation for more information about [configuring builds with Docker](https://devspace.sh/cli/docs/configuration/images/docker). <img src="static/img/line.svg" height="1">
Copy file name to clipboardExpand all lines: cmd/attach.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ devspace attach -n my-namespace
51
51
52
52
attachCmd.Flags().StringVarP(&cmd.Container, "container", "c", "", "Container name within pod where to execute command")
53
53
attachCmd.Flags().StringVar(&cmd.Pod, "pod", "", "Pod to open a shell to")
54
-
attachCmd.Flags().StringVar(&cmd.ImageSelector, "image-selector", "", "The image to search a pod for (e.g. nginx, nginx:latest, image(app), nginx:tag(app))")
54
+
attachCmd.Flags().StringVar(&cmd.ImageSelector, "image-selector", "", "The image to search a pod for (e.g. nginx, nginx:latest, ${runtime.images.app}, nginx:${runtime.images.app.tag})")
55
55
attachCmd.Flags().StringVar(&cmd.Image, "image", "", "Image is the config name of an image to select in the devspace config (e.g. 'default'), it is NOT a docker image like myuser/myimage")
@@ -68,7 +68,7 @@ devspace enter bash --image-selector "image(app):tag(app)"
68
68
enterCmd.Flags().StringVar(&cmd.Pod, "pod", "", "Pod to open a shell to")
69
69
enterCmd.Flags().StringVar(&cmd.Image, "image", "", "Image is the config name of an image to select in the devspace config (e.g. 'default'), it is NOT a docker image like myuser/myimage")
enterCmd.Flags().StringVar(&cmd.ImageSelector, "image-selector", "", "The image to search a pod for (e.g. nginx, nginx:latest, image(app), nginx:tag(app))")
71
+
enterCmd.Flags().StringVar(&cmd.ImageSelector, "image-selector", "", "The image to search a pod for (e.g. nginx, nginx:latest, ${runtime.images.app}, nginx:${runtime.images.app.tag})")
72
72
enterCmd.Flags().StringVar(&cmd.WorkingDirectory, "workdir", "", "The working directory where to open the terminal or execute the command")
73
73
74
74
enterCmd.Flags().BoolVar(&cmd.Pick, "pick", true, "Select a pod / container if multiple are found")
logsCmd.Flags().StringVar(&cmd.ImageSelector, "image-selector", "", "The image to search a pod for (e.g. nginx, nginx:latest, image(app), nginx:tag(app))")
70
+
logsCmd.Flags().StringVar(&cmd.ImageSelector, "image-selector", "", "The image to search a pod for (e.g. nginx, nginx:latest, ${runtime.images.app}, nginx:${runtime.images.app.tag})")
71
71
logsCmd.Flags().StringVar(&cmd.Image, "image", "", "Image is the config name of an image to select in the devspace config (e.g. 'default'), it is NOT a docker image like myuser/myimage")
72
72
logsCmd.Flags().BoolVar(&cmd.Pick, "pick", true, "Select a pod")
73
73
logsCmd.Flags().BoolVarP(&cmd.Follow, "follow", "f", false, "Attach to logs afterwards")
Copy file name to clipboardExpand all lines: docs/pages/configuration/deployments/helm-charts.mdx
+13-14Lines changed: 13 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,14 +51,12 @@ deployments:
51
51
# If registry.url/repo/image was found under images as well, will be
52
52
# rewritten to registry.url/repo/image:generated_tag
53
53
imageWithTag: registry.url/repo/image
54
-
# If registry.url/repo/image was found under images as well, will be
54
+
# If registry.url/repo/image was found under images.app as well, will be
55
55
# rewritten to registry.url/repo/image
56
-
imageWithoutTag: image(registry.url/repo/image)
57
-
# If registry.url/repo/image was found under images as well, will be
56
+
imageWithoutTag: ${runtime.images.app.image}
57
+
# If registry.url/repo/image was found under images.app as well, will be
58
58
# rewritten to generated_tag
59
-
onlyTag: tag(registry.url/repo/image)
60
-
ingress:
61
-
enabled: true
59
+
onlyTag: ${runtime.images.app.tag}
62
60
```
63
61
64
62
</TabItem>
@@ -74,14 +72,12 @@ deployments:
74
72
# If registry.url/repo/image was found under images as well, will be
75
73
# rewritten to registry.url/repo/image:generated_tag
76
74
imageWithTag: registry.url/repo/image
77
-
# If registry.url/repo/image was found under images as well, will be
75
+
# If registry.url/repo/image was found under images.app as well, will be
78
76
# rewritten to registry.url/repo/image
79
-
imageWithoutTag: image(registry.url/repo/image)
80
-
# If registry.url/repo/image was found under images as well, will be
77
+
imageWithoutTag: ${runtime.images.app.image}
78
+
# If registry.url/repo/image was found under images.app as well, will be
81
79
# rewritten to generated_tag
82
-
onlyTag: tag(registry.url/repo/image)
83
-
ingress:
84
-
enabled: true
80
+
onlyTag: ${runtime.images.app.tag}
85
81
```
86
82
87
83
</TabItem>
@@ -285,8 +281,6 @@ By default, DevSpace searches all your values (specified via `values` or `values
285
281
286
282
DevSpace will replace the following things:
287
283
- **registry.url/repo/name** that corresponds to a `images.*.image`, will be rewritten to `registry.url/repo/name:generated_tag`
288
-
- **image(image-key)** that corresponds to a `images.*` key, will be rewritten to `registry.url/repo/name`. You can also use dependency images here with `image(dep1.dep-image)`
289
-
- **tag(image-key)** that corresponds to a `images.*` key, will be rewritten to `generated_tag`. You can also use dependency images here with `tag(dep1.dep-image)`
290
284
291
285
:::info In-Memory Tag Replacement
292
286
Tag replacement takes place **in-memory** and is **not** writing anything to the filesystem, i.e. it will **never** change any of your configuration files.
@@ -570,3 +564,8 @@ deployments:
570
564
chart:
571
565
name: bitnami/mysql
572
566
```
567
+
568
+
## `disabled`
569
+
570
+
If true, the deployment will not be deployed, rendered or purged. Can be useful in combination with config expressions or command variables.
0 commit comments