diff --git a/src/pages/docs/schema/docker.mdx b/src/pages/docs/schema/docker.mdx index ee85f54..a7cccc3 100644 --- a/src/pages/docs/schema/docker.mdx +++ b/src/pages/docs/schema/docker.mdx @@ -167,14 +167,14 @@ services: ### Optional Fields -| Field | Type | Description | -| ------------ | ------- | ----------------------------------------------------------- | -| `command` | string | Override container entrypoint | -| `arguments` | string | Arguments passed to the command. Use `%%SPLIT%%` for spaces | -| `env` | object | Environment variables | -| `ports` | array | Exposed container ports | -| `deployment` | object | Deployment configuration (see below) | -| `envLens` | boolean | Enable environment lens ingress banner | +| Field | Type | Description | +| ------------ | ------- | ---------------------------------------------------------------------------------------- | +| `command` | string | Override container entrypoint | +| `arguments` | string | Arguments passed to the command. Use `%%SPLIT%%` for spaces | +| `env` | object | Environment variables | +| `ports` | array | Exposed container ports | +| `deployment` | object | Deployment configuration (see below) | +| `envLens` | boolean | Enable environment lens ingress banner. Overrides the global `features.envLens` default. | ## Deployment Options diff --git a/src/pages/docs/schema/github.mdx b/src/pages/docs/schema/github.mdx index c9b1481..36f2d4f 100644 --- a/src/pages/docs/schema/github.mdx +++ b/src/pages/docs/schema/github.mdx @@ -282,10 +282,10 @@ Persistent volume mounts for stateful data: ### Optional Fields -| Field | Type | Description | -| ------------ | ------- | -------------------------------------- | -| `deployment` | object | Deployment configuration (see above) | -| `envLens` | boolean | Enable environment lens ingress banner | +| Field | Type | Description | +| ------------ | ------- | ---------------------------------------------------------------------------------------- | +| `deployment` | object | Deployment configuration (see above) | +| `envLens` | boolean | Enable environment lens ingress banner. Overrides the global `features.envLens` default. | ## Template Variables diff --git a/src/pages/docs/schema/helm.mdx b/src/pages/docs/schema/helm.mdx index 3b1e257..648b635 100644 --- a/src/pages/docs/schema/helm.mdx +++ b/src/pages/docs/schema/helm.mdx @@ -245,20 +245,20 @@ Configuration for an init container that runs before the main application. Uses ## Fields Reference -| Field | Type | Required | Description | -| ------------------ | ------- | ---------- | -------------------------------------- | -| `chart.name` | string | **Yes** | Chart name or path | -| `chart.repoUrl` | string | For public | Helm repository URL | -| `chart.version` | string | No | Chart version | -| `chart.values` | array | No | Inline Helm values | -| `chart.valueFiles` | array | No | Value file paths | -| `repository` | string | For builds | GitHub repository | -| `branchName` | string | For builds | Branch to build from | -| `docker` | object | No | Docker build config | -| `args` | string | No | Additional Helm arguments | -| `version` | string | No | Helm CLI version | -| `deploymentMethod` | string | No | `"native"` or `"ci"` | -| `envLens` | boolean | No | Enable environment lens ingress banner | +| Field | Type | Required | Description | +| ------------------ | ------- | ---------- | ---------------------------------------------------------------------------------------- | +| `chart.name` | string | **Yes** | Chart name or path | +| `chart.repoUrl` | string | For public | Helm repository URL | +| `chart.version` | string | No | Chart version | +| `chart.values` | array | No | Inline Helm values | +| `chart.valueFiles` | array | No | Value file paths | +| `repository` | string | For builds | GitHub repository | +| `branchName` | string | For builds | Branch to build from | +| `docker` | object | No | Docker build config | +| `args` | string | No | Additional Helm arguments | +| `version` | string | No | Helm CLI version | +| `deploymentMethod` | string | No | `"native"` or `"ci"` | +| `envLens` | boolean | No | Enable environment lens ingress banner. Overrides the global `features.envLens` default. | ## Templated Variables diff --git a/src/pages/docs/setup/configure-lifecycle.mdx b/src/pages/docs/setup/configure-lifecycle.mdx index 5a7d990..a8de9ff 100644 --- a/src/pages/docs/setup/configure-lifecycle.mdx +++ b/src/pages/docs/setup/configure-lifecycle.mdx @@ -60,6 +60,24 @@ Replace the `defaultIPWhiteList` under `global_config.serviceDefaults` with your --- +## Enable Environment Lens Globally + +The environment lens banner can be enabled globally for all services via the `features` row in `global_config`. Individual services can still override this by setting `envLens` explicitly in their `lifecycle.yaml`. + +```sql +-- Enable envLens globally for all services +INSERT INTO public.global_config ("key", config, "createdAt", "updatedAt") +VALUES ('features', '{"envLens": true}'::json, NOW(), NOW()) +ON CONFLICT ("key") +DO UPDATE SET + config = (public.global_config.config::jsonb || '{"envLens": true}'::jsonb)::json, + "updatedAt" = NOW(); +``` + +After running this, [refresh the config cache](#refresh-config-cache) to apply the change. + +--- + ## Refresh config cache ```sh