Skip to content

Make loadbalancer status Computed instead of Optional+Default - #510

Open
konih wants to merge 1 commit into
gridscale:masterfrom
konih:fix/loadbalancer-status-computed
Open

konih wants to merge 1 commit into
gridscale:masterfrom
konih:fix/loadbalancer-status-computed

Conversation

@konih

@konih konih commented Jul 16, 2026

Copy link
Copy Markdown

Problem

gridscale_loadbalancer.status is server-derived — it is only ever set via d.Set from the API response and never read from user config in Create/Update. Declaring it Optional with Default: "active" produces a perpetual plan diff whenever the load balancer reports a status other than active. It is also the only resource whose status is Optional rather than Computed.

Fix

Mark status as Computed: true and drop the Default, matching the other resources.

gridscale_loadbalancer.status is server-derived (only ever set via d.Set from the
API response, never read from user config in Create/Update). Declaring it
Optional with Default "active" causes a perpetual plan diff whenever the server
reports a status other than "active". Mark it Computed and drop the Default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants