Skip to content

Commit

Permalink
Update instance and kubernetes tag to str pointer (#268)
Browse files Browse the repository at this point in the history
* Update instance and kubernetes tag to str pointer

* Fix vendoring state
  • Loading branch information
optik-aper committed Jun 2, 2022
1 parent 514df5a commit 6f5abf0
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cmd/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ var instanceTag = &cobra.Command{
id := args[0]
tag, _ := cmd.Flags().GetString("tag")
options := &govultr.InstanceUpdateReq{
Tag: tag,
Tag: govultr.StringToStringPtr(tag),
}

if _, err := client.Instance.Update(context.Background(), id, options); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ var npUpdate = &cobra.Command{

options := &govultr.NodePoolReqUpdate{
NodeQuantity: quantity,
Tag: tag,
Tag: govultr.StringToStringPtr(tag),
AutoScaler: govultr.BoolToBoolPtr(false),
MinNodes: min,
MaxNodes: max,
Expand Down
20 changes: 20 additions & 0 deletions vendor/github.com/vultr/govultr/v2/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/vultr/govultr/v2/bare_metal_server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/vultr/govultr/v2/govultr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/vultr/govultr/v2/instance.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions vendor/github.com/vultr/govultr/v2/kubernetes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vendor/github.com/vultr/govultr/v2/plans.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ github.com/spf13/viper/internal/encoding/yaml
# github.com/subosito/gotenv v1.3.0
## explicit; go 1.18
github.com/subosito/gotenv
# github.com/vultr/govultr/v2 v2.16.0
# github.com/vultr/govultr/v2 v2.17.1
## explicit; go 1.17
github.com/vultr/govultr/v2
# golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2
Expand Down

0 comments on commit 6f5abf0

Please sign in to comment.