Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consume go-sdk v0.1.15 and update clone doc #271

Merged
merged 3 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/resources/hpegl_vmaas_instance_clone/minimal.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ resource "hpegl_vmaas_instance_clone" "minimal_instance" {
network {
id = data.hpegl_vmaas_network.blue_net.id
}
volume {
name = "root_vol"
size = 5
datastore_id = data.hpegl_vmaas_datastore.c_3par.id
}
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/HewlettPackard/hpegl-vmaas-terraform-resources
go 1.21

require (
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.14
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.16-0.20241107121404-76f500c3497a
github.com/golang/mock v1.6.0
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
github.com/hashicorp/terraform-plugin-docs v0.9.0
Expand Down
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.14 h1:G3i8N70LBGo1tEFXCCBx5fd+cERBvnBCviFheVLlj80=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.14/go.mod h1:tsKOAAbEQnpXAzqjcZUGzRiVp9QfRViKoTOdIltIMFI=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.15 h1:KLFsRCwjbfNXcWb9P6XKYhUZN9ILD0FjcY+ukRYHe1Y=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.15/go.mod h1:tsKOAAbEQnpXAzqjcZUGzRiVp9QfRViKoTOdIltIMFI=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.16-0.20241107121404-76f500c3497a h1:AnG8ewlUv+0FEDrTsr/IEgTnF8fKdWNLSFK4eujFIJ0=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.16-0.20241107121404-76f500c3497a/go.mod h1:tsKOAAbEQnpXAzqjcZUGzRiVp9QfRViKoTOdIltIMFI=
github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
Expand Down
9 changes: 5 additions & 4 deletions internal/resources/schemas/instance_schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ func GetInstanceContainerSchema() *schema.Schema {
},
},
},
"hostname": computedString(),
"max_storage": computedInt(),
"max_memory": computedInt(),
"max_cores": computedInt(),
"hostname": computedString(),
// Needed datatype is int64
// "max_storage": computedInt(),
// "max_memory": computedInt(),
"max_cores": computedInt(),
},
},
}
Expand Down
3 changes: 0 additions & 3 deletions templates/resources/vmaas_instance_clone.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ Cloned instance can have all the possible attributes (same as `hpegl_vmaas_insta

{{tffile "examples/resources/hpegl_vmaas_instance_clone/minimal.tf"}}

-> On cloning an instance, the parent volume will be appended to the child volume. If the child volume
name is the same as the parent volume name, the duplicate volume name is used.


## Example usage for creating cloned instance with all available attributes.

Expand Down
Loading