Skip to content

Commit 4fd26a2

Browse files
committed
docs: clarify envbox version pinning
1 parent e40cc93 commit 4fd26a2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

examples/templates/envbox/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The following environment variables can be used to configure various aspects of
3636
| `CODER_CPUS` | Dictates the number of CPUs to allocate the inner container. It is recommended to set this using the Kubernetes [Downward API](https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/#use-container-fields-as-values-for-environment-variables). | false |
3737
| `CODER_MEMORY` | Dictates the max memory (in bytes) to allocate the inner container. It is recommended to set this using the Kubernetes [Downward API](https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/#use-container-fields-as-values-for-environment-variables). | false |
3838

39-
# Migrating Existing Envbox Templates
39+
## Migrating Existing Envbox Templates
4040

4141
Due to the [deprecation and removal of legacy parameters](https://coder.com/docs/v2/latest/templates/parameters#legacy)
4242
it may be necessary to migrate existing envbox templates on newer versions of
@@ -50,6 +50,10 @@ To supply values to existing existing Terraform variables you can specify the
5050
coder templates push envbox --var namespace="mynamespace" --var max_cpus=2 --var min_cpus=1 --var max_memory=4 --var min_memory=1
5151
```
5252

53+
## Version Pinning
54+
55+
The template sets the image tag as `latest`. We highly recommend pinning the image to a specific release of envbox, as the `latest` tag may change.
56+
5357
## Contributions
5458

5559
Contributions are welcome and can be made against the [envbox repo](https://github.com/coder/envbox).

examples/templates/envbox/main.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ resource "kubernetes_pod" "main" {
153153
restart_policy = "Never"
154154

155155
container {
156-
name = "dev"
156+
name = "dev"
157+
# We highly recommend pinning this to a specific release of envbox, as the latest tag may change.
157158
image = "ghcr.io/coder/envbox:latest"
158159
image_pull_policy = "Always"
159160
command = ["/envbox", "docker"]

0 commit comments

Comments
 (0)