From 33829b93bfa0b95c709a075adc91265cde9e2609 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Thu, 12 Jun 2025 12:48:18 +0200 Subject: [PATCH 1/3] docs(srv): add info on env var precedence MTA-6144 --- pages/serverless-containers/concepts.mdx | 6 ++++-- pages/serverless-functions/concepts.mdx | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pages/serverless-containers/concepts.mdx b/pages/serverless-containers/concepts.mdx index 464d515b24..5be52d2428 100644 --- a/pages/serverless-containers/concepts.mdx +++ b/pages/serverless-containers/concepts.mdx @@ -96,7 +96,9 @@ An endpoint is the URL generated to access your resource. It can be customized w ## Environment variables -Environment variables are key/value pairs injected in your container. They are useful to share information such as configurations with your container. Some names are reserved. [See details about reserved names](/serverless-containers/reference-content/containers-limitations/#configuration-restrictions). +Environment variables are key/value pairs injected in your container. They are useful to share information such as configurations with your container. Environment variables defined at the container level override the ones defined at the namespace level if they have the same name. + +Some names are reserved. [See details about reserved names](/serverless-containers/reference-content/containers-limitations/#configuration-restrictions). ## Ephemeral storage @@ -226,7 +228,7 @@ When provisioned with a [minimum scale](#min-scale) of `0`, Serverless Container ## Secrets -Secrets are an extra-secure type of environment variable. They are environment variables that are injected into your container and stored securely, but not displayed in the console after initial validation. +Secrets are an extra-secure type of environment variable. They are environment variables that are injected into your container and stored securely, but not displayed in the console after initial validation. Secrets defined at the container level override the ones defined at the namespace level if they have the same name. For more details about Serverless advantages, [read Serverless Overview](/serverless-containers/reference-content/serverless-overview/). diff --git a/pages/serverless-functions/concepts.mdx b/pages/serverless-functions/concepts.mdx index 33f2a43281..1b9dfe7bfa 100644 --- a/pages/serverless-functions/concepts.mdx +++ b/pages/serverless-functions/concepts.mdx @@ -56,7 +56,9 @@ An endpoint is the URL generated to access your resource. It can be customized w ## Environment variables -Environment variables are key/value pairs injected in your container. They are useful for sharing information such as configurations with your container. Some names are reserved. [See details on reserved names](/serverless-functions/reference-content/functions-limitations/#configuration-restrictions). +Environment variables are key/value pairs injected in your container. They are useful for sharing information such as configurations with your container. Environment variables defined at the function level override the ones defined at the namespace level if they have the same name. + +Some names are reserved. [See details on reserved names](/serverless-functions/reference-content/functions-limitations/#configuration-restrictions). ## GB-s @@ -161,6 +163,8 @@ When provisioned with a [minimum scale](#min-scale) of `0`, Serverless Functions Secrets are an extra-secure type of environment variable. They are environment variables that are injected into your function and stored securely, but not displayed in the console after initial validation. +Secrets defined at the function level override the ones defined at the namespace level if they have the same name. + ## Serverless Serverless allows you to deploy your Functions (FaaS) and Containerized Applications (CaaS) in a managed infrastructure. Scaleway ensures the deployment, availability, and scalability of all your projects. From f6a03b8ffb6ee3714ffd97d1aab353153f4c16a9 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Thu, 12 Jun 2025 17:25:58 +0200 Subject: [PATCH 2/3] Update pages/serverless-functions/concepts.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com> --- pages/serverless-functions/concepts.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/serverless-functions/concepts.mdx b/pages/serverless-functions/concepts.mdx index 1b9dfe7bfa..30f9f99838 100644 --- a/pages/serverless-functions/concepts.mdx +++ b/pages/serverless-functions/concepts.mdx @@ -56,7 +56,7 @@ An endpoint is the URL generated to access your resource. It can be customized w ## Environment variables -Environment variables are key/value pairs injected in your container. They are useful for sharing information such as configurations with your container. Environment variables defined at the function level override the ones defined at the namespace level if they have the same name. +Environment variables are key/value pairs injected into your container. They are useful for sharing information such as configurations with your container. Environment variables defined at the function level override the ones defined at the namespace level if they have the same name. Some names are reserved. [See details on reserved names](/serverless-functions/reference-content/functions-limitations/#configuration-restrictions). From 622414db9fe549808f532f2fbd6f355f514b9d9e Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Thu, 12 Jun 2025 17:26:04 +0200 Subject: [PATCH 3/3] Update pages/serverless-containers/concepts.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com> --- pages/serverless-containers/concepts.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/serverless-containers/concepts.mdx b/pages/serverless-containers/concepts.mdx index 5be52d2428..3bf29d2bf3 100644 --- a/pages/serverless-containers/concepts.mdx +++ b/pages/serverless-containers/concepts.mdx @@ -96,7 +96,7 @@ An endpoint is the URL generated to access your resource. It can be customized w ## Environment variables -Environment variables are key/value pairs injected in your container. They are useful to share information such as configurations with your container. Environment variables defined at the container level override the ones defined at the namespace level if they have the same name. +Environment variables are key/value pairs injected into your container. They are useful to share information such as configurations with your container. Environment variables defined at the container level override the ones defined at the namespace level if they have the same name. Some names are reserved. [See details about reserved names](/serverless-containers/reference-content/containers-limitations/#configuration-restrictions).