From 5cbea9a24b5b9122619d9581991264b71d92a188 Mon Sep 17 00:00:00 2001 From: Reshma Abdul Rahim Date: Fri, 5 Apr 2024 12:02:49 -0400 Subject: [PATCH] Make env configurable Signed-off-by: Reshma Abdul Rahim --- docs/content/tutorials/helm/index.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/content/tutorials/helm/index.md b/docs/content/tutorials/helm/index.md index cf6bf170d..69dae21ec 100644 --- a/docs/content/tutorials/helm/index.md +++ b/docs/content/tutorials/helm/index.md @@ -192,11 +192,12 @@ From here you will go through a series of steps to incrementally add more Radius # Add the following two lines annotations: radapp.io/enabled: 'true' + radapp.io/environment: '{{ .Values.environment }}' spec: ... ``` - Adding the `radapp.io/enabled: 'true'` annotation enables Radius for the deployment. + Adding the `radapp.io/enabled: 'true'` annotation enables Radius for the deployment. The `radapp.io/environment` annotation is optional and is used to set the environment for the application. If not specified, Radius will use the default environment. 1. Save the file after you have made the edits and deploy the application again using Helm. Since the namespace and secret have already been created, we only need to run the `helm` command. @@ -246,6 +247,7 @@ From here you will go through a series of steps to incrementally add more Radius ```bash rad app graph -a demo -g default-demo ``` + where `-a demo` specifies the application name and `-g default-demo` specifies the resource group name. [Resource groups]({{< ref "guides/operations/groups/overview" >}}) are a way to organize resources in Radius. The output should look like this: @@ -311,6 +313,7 @@ In this step you will: name: db namespace: {{ .Release.Namespace }} spec: + environment: '{{ .Values.environment }}' type: Applications.Datastores/redisCaches secretName: redis-secret ``` @@ -462,6 +465,7 @@ Make sure the `app.yaml` file from `./demo/Chart/templates/app.yaml` is open in namespace: {{ .Release.Namespace }} annotations: radapp.io/enabled: 'true' + radapp.io/environment: '{{ .Values.environment }}' radapp.io/connection-redis: 'db' spec: ... @@ -488,6 +492,7 @@ Make sure the `app.yaml` file from `./demo/Chart/templates/app.yaml` is open in namespace: {{ .Release.Namespace }} annotations: radapp.io/enabled: 'true' + radapp.io/environment: '{{ .Values.environment }}' radapp.io/connection-redis: 'db' spec: selector: @@ -510,6 +515,7 @@ Make sure the `app.yaml` file from `./demo/Chart/templates/app.yaml` is open in name: db namespace: {{ .Release.Namespace }} spec: + environment: '{{ .Values.environment }}' type: Applications.Datastores/redisCaches ```