Skip to content

Add in-place update for gateway domain#3997

Open
jvstme wants to merge 1 commit into
masterfrom
issue_3959_gateway_in_place_update
Open

Add in-place update for gateway domain#3997
jvstme wants to merge 1 commit into
masterfrom
issue_3959_gateway_in_place_update

Conversation

@jvstme

@jvstme jvstme commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Introduce gateway in-place update mechanism. For
now, only domain can be updated.

$ dstack apply -f test.dstack.yml

Found gateway test-gateway. Detected changes that can be updated in-place:
- domain

Update the gateway? [y/n]: y
 NAME          BACKEND         HOSTNAME       DOMAIN           DEFAULT  STATUS
 test-gateway  gcp (us-west4)  34.125.56.225  new.example.com           running

Add new API methods:

  • /api/project/{project_name}/gateways/get_plan
  • /api/project/{project_name}/gateways/apply

Deprecate API methods:

  • /api/project/{project_name}/gateways/create
  • /api/project/{project_name}/gateways/set_wildcard_domain

Deprecate CLI arguments:

  • dstack gateway update --domain

#3959

Introduce gateway in-place update mechanism. For
now, only `domain` can be updated.

```yaml
$ dstack apply -f test.dstack.yml

Found gateway test-gateway. Detected changes that can be updated in-place:
- domain

Update the gateway? [y/n]: y
 NAME          BACKEND         HOSTNAME       DOMAIN           DEFAULT  STATUS
 test-gateway  gcp (us-west4)  34.125.56.225  new.example.com           running
```

Add new API methods:
- `/api/project/{project_name}/gateways/get_plan`
- `/api/project/{project_name}/gateways/apply`

Deprecate API methods:
- `/api/project/{project_name}/gateways/create`
- `/api/project/{project_name}/gateways/set_wildcard_domain`

Deprecate CLI arguments:
- `dstack gateway update --domain`
@jvstme jvstme requested a review from r4victor June 30, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant