Skip to content

Commit

Permalink
fix: Store region name in cluster resource (#21)
Browse files Browse the repository at this point in the history
* fix: Store region name in cluster resource

* chore: update symbiosis-go pkg
  • Loading branch information
Styren authored Mar 21, 2023
1 parent 7d041c4 commit dfd54cf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/resources/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ resource "symbiosis_cluster" "example" {
- **endpoint** (String) Cluster API server endpoint
- **kubeconfig** (String, Sensitive) The raw kubeconfig file.
- **private_key** (String, Sensitive)
- **state** (String) Cluster state [PENDING, DELETE_IN_PROGRESS, ACTIVE, FAILED]

<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.17

require (
github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0
github.com/symbiosis-cloud/symbiosis-go v1.1.7
github.com/symbiosis-cloud/symbiosis-go v1.1.8
)

require (
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ github.com/symbiosis-cloud/symbiosis-go v1.0.12 h1:3SZwA4wkg9peSihzerzFEee1bB4r7
github.com/symbiosis-cloud/symbiosis-go v1.0.12/go.mod h1:NKZUsxo8/H1SnAxKo+RC/SHmUuaQILkdNAXN7LthjQ4=
github.com/symbiosis-cloud/symbiosis-go v1.1.7 h1:ocOCLGzp7g11U29DBnOYNH+VE2ap/lEst9CEDfBQJWQ=
github.com/symbiosis-cloud/symbiosis-go v1.1.7/go.mod h1:NKZUsxo8/H1SnAxKo+RC/SHmUuaQILkdNAXN7LthjQ4=
github.com/symbiosis-cloud/symbiosis-go v1.1.8 h1:D3NE4DUh4dnIuSvOWQKfRlJNn/16vEGx57F9jMjYlLs=
github.com/symbiosis-cloud/symbiosis-go v1.1.8/go.mod h1:NKZUsxo8/H1SnAxKo+RC/SHmUuaQILkdNAXN7LthjQ4=
github.com/ulikunitz/xz v0.5.8 h1:ERv8V6GKqVi23rgu5cj9pVfVzJbOqAY2Ntl88O6c2nQ=
github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
Expand Down
1 change: 1 addition & 0 deletions symbiosis/resource_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func resourceClusterRead(ctx context.Context, d *schema.ResourceData, meta inter
d.Set("name", cluster.Name)
d.Set("state", cluster.State)
d.Set("endpoint", cluster.APIServerEndpoint)
d.Set("region", cluster.Region.Name)
d.Set("is_highly_available", cluster.IsHighlyAvailable)
d.Set("certificate", identity.CertificatePem)
d.Set("ca_certificate", identity.ClusterCertificateAuthorityPem)
Expand Down

0 comments on commit dfd54cf

Please sign in to comment.