fix(loadbalancer): set external_address as optional (#854)

* fix: set external_address for lb to optional

* add unit tests

---------

Co-authored-by: Ruben Hoenle <Ruben.Hoenle@stackit.cloud>
This commit is contained in:
Marcel Jacek 2025-05-23 13:25:30 +02:00 committed by GitHub
parent 29f9a01633
commit aaf29e4c19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 126 additions and 2 deletions

View file

@ -119,7 +119,6 @@ resource "stackit_loadbalancer" "example" {
### Required
- `external_address` (String) External Load Balancer IP address where this Load Balancer is exposed.
- `listeners` (Attributes List) List of all listeners which will accept traffic. Limited to 20. (see [below for nested schema](#nestedatt--listeners))
- `name` (String) Load balancer name.
- `networks` (Attributes List) List of networks that listeners and targets reside in. (see [below for nested schema](#nestedatt--networks))
@ -128,6 +127,7 @@ resource "stackit_loadbalancer" "example" {
### Optional
- `external_address` (String) External Load Balancer IP address where this Load Balancer is exposed.
- `options` (Attributes) Defines any optional functionality you want to have enabled on your load balancer. (see [below for nested schema](#nestedatt--options))
- `region` (String) The resource region. If not defined, the provider region is used.