From 001295963542a7138c7f54c2bfab5b01c44f0b3c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Apr 2024 11:04:01 -0400 Subject: [PATCH] Bump github.com/vultr/govultr/v3 from 3.6.1 to 3.6.4 (#237) Bumps [github.com/vultr/govultr/v3](https://github.com/vultr/govultr) from 3.6.1 to 3.6.4. - [Release notes](https://github.com/vultr/govultr/releases) - [Changelog](https://github.com/vultr/govultr/blob/master/CHANGELOG.md) - [Commits](https://github.com/vultr/govultr/compare/v3.6.1...v3.6.4) --- updated-dependencies: - dependency-name: github.com/vultr/govultr/v3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 +- .../github.com/vultr/govultr/v3/CHANGELOG.md | 19 ++++++- vendor/github.com/vultr/govultr/v3/govultr.go | 2 +- .../github.com/vultr/govultr/v3/kubernetes.go | 51 ++++++++++--------- vendor/github.com/vultr/govultr/v3/meta.go | 4 +- .../vultr/govultr/v3/startup_script.go | 6 +-- vendor/modules.txt | 2 +- 8 files changed, 54 insertions(+), 36 deletions(-) diff --git a/go.mod b/go.mod index fcb408ed3..14c9e823b 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.20 require ( github.com/spf13/pflag v1.0.5 - github.com/vultr/govultr/v3 v3.6.1 + github.com/vultr/govultr/v3 v3.6.4 github.com/vultr/metadata v1.1.0 golang.org/x/oauth2 v0.18.0 k8s.io/api v0.28.2 diff --git a/go.sum b/go.sum index 6a02a4148..ed2246af6 100644 --- a/go.sum +++ b/go.sum @@ -160,8 +160,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75 h1:6fotK7otjonDflCTK0BCfls4SPy3NcCVb5dqqmbRknE= -github.com/vultr/govultr/v3 v3.6.1 h1:l1hAXGtqWVnobBpLRzW/BxoocYFI7SSBwQHw65ntLk4= -github.com/vultr/govultr/v3 v3.6.1/go.mod h1:rt9v2x114jZmmLAE/h5N5jnxTmsK9ewwS2oQZ0UBQzM= +github.com/vultr/govultr/v3 v3.6.4 h1:unvY9eXlBw667ECQZDbBDOIaWB8wkk6Bx+yB0IMKXJ4= +github.com/vultr/govultr/v3 v3.6.4/go.mod h1:rt9v2x114jZmmLAE/h5N5jnxTmsK9ewwS2oQZ0UBQzM= github.com/vultr/metadata v1.1.0 h1:RUjCnH5Mdlz7uuyfb1jOZNkU72zl/HwK76jLzVFdiOo= github.com/vultr/metadata v1.1.0/go.mod h1:4yocaI6h2EFJzwN0m1KnnC/vDCx2axIqnyxmtF/LWoQ= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= diff --git a/vendor/github.com/vultr/govultr/v3/CHANGELOG.md b/vendor/github.com/vultr/govultr/v3/CHANGELOG.md index f79bbb424..995ad62a6 100644 --- a/vendor/github.com/vultr/govultr/v3/CHANGELOG.md +++ b/vendor/github.com/vultr/govultr/v3/CHANGELOG.md @@ -1,8 +1,23 @@ # Change Log -## What's Changed +## [3.6.4](https://github.com/vultr/govultr/compare/v3.6.3...v3.6.4) (2024-03-07) +### Enhancement +* Kubernetes: add labels to the node pool update request struct [PR 302](https://github.com/vultr/govultr/pull/302) + +## [3.6.3](https://github.com/vultr/govultr/compare/v3.6.2...v3.6.3) (2024-02-29) +### Bug Fixes +* All: add a json struct tag for the meta links field [PR 298](https://github.com/vultr/govultr/pull/298) +* Startup Scripts: allow empty values in create/update request struct [PR 299](https://github.com/vultr/govultr/pull/299) + +### Automation +* Update codeql runner from v1 to v2 [PR 300](https://github.com/vultr/govultr/pull/300) + +## [v3.6.2](https://github.com/vultr/govultr/compare/v3.6.1...v3.6.2) (2024-02-20) +### Enhancement +* Kubernetes: add support for nodepool labels [PR 296](https://github.com/vultr/govultr/pull/296) + ## [v3.6.1](https://github.com/vultr/govultr/compare/v3.6.0...v3.6.1) (2024-01-16) ### Enhancement -* Bare Metal: Add functions to allow VPC [PR 293](https://github.com/vultr/govultr/pull/293) +* Bare Metal: add functions to allow VPC [PR 293](https://github.com/vultr/govultr/pull/293) ## [v3.6.0](https://github.com/vultr/govultr/compare/v3.5.0...v3.6.0) (2023-12-15) ### Enhancement diff --git a/vendor/github.com/vultr/govultr/v3/govultr.go b/vendor/github.com/vultr/govultr/v3/govultr.go index 749c9f559..4423ff0ec 100644 --- a/vendor/github.com/vultr/govultr/v3/govultr.go +++ b/vendor/github.com/vultr/govultr/v3/govultr.go @@ -19,7 +19,7 @@ import ( ) const ( - version = "3.6.1" + version = "3.6.4" defaultBase = "https://api.vultr.com" userAgent = "govultr/" + version rateLimit = 500 * time.Millisecond diff --git a/vendor/github.com/vultr/govultr/v3/kubernetes.go b/vendor/github.com/vultr/govultr/v3/kubernetes.go index 90ead5af0..6157025be 100644 --- a/vendor/github.com/vultr/govultr/v3/kubernetes.go +++ b/vendor/github.com/vultr/govultr/v3/kubernetes.go @@ -60,18 +60,19 @@ type Cluster struct { // NodePool represents a pool of nodes that are grouped by their label and plan type type NodePool struct { - ID string `json:"id"` - DateCreated string `json:"date_created"` - DateUpdated string `json:"date_updated"` - Label string `json:"label"` - Plan string `json:"plan"` - Status string `json:"status"` - NodeQuantity int `json:"node_quantity"` - MinNodes int `json:"min_nodes"` - MaxNodes int `json:"max_nodes"` - AutoScaler bool `json:"auto_scaler"` - Tag string `json:"tag"` - Nodes []Node `json:"nodes"` + ID string `json:"id"` + DateCreated string `json:"date_created"` + DateUpdated string `json:"date_updated"` + Label string `json:"label"` + Plan string `json:"plan"` + Status string `json:"status"` + NodeQuantity int `json:"node_quantity"` + MinNodes int `json:"min_nodes"` + MaxNodes int `json:"max_nodes"` + AutoScaler bool `json:"auto_scaler"` + Tag string `json:"tag"` + Labels map[string]string `json:"labels"` + Nodes []Node `json:"nodes"` } // Node represents a node that will live within a nodepool @@ -104,22 +105,24 @@ type ClusterReqUpdate struct { // NodePoolReq struct used to create a node pool type NodePoolReq struct { - NodeQuantity int `json:"node_quantity"` - Label string `json:"label"` - Plan string `json:"plan"` - Tag string `json:"tag"` - MinNodes int `json:"min_nodes,omitempty"` - MaxNodes int `json:"max_nodes,omitempty"` - AutoScaler *bool `json:"auto_scaler"` + NodeQuantity int `json:"node_quantity"` + Label string `json:"label"` + Plan string `json:"plan"` + Tag string `json:"tag"` + MinNodes int `json:"min_nodes,omitempty"` + MaxNodes int `json:"max_nodes,omitempty"` + AutoScaler *bool `json:"auto_scaler"` + Labels map[string]string `json:"labels,omitempty"` } // NodePoolReqUpdate struct used to update a node pool type NodePoolReqUpdate struct { - NodeQuantity int `json:"node_quantity,omitempty"` - Tag *string `json:"tag,omitempty"` - MinNodes int `json:"min_nodes,omitempty"` - MaxNodes int `json:"max_nodes,omitempty"` - AutoScaler *bool `json:"auto_scaler,omitempty"` + NodeQuantity int `json:"node_quantity,omitempty"` + Tag *string `json:"tag,omitempty"` + MinNodes int `json:"min_nodes,omitempty"` + MaxNodes int `json:"max_nodes,omitempty"` + AutoScaler *bool `json:"auto_scaler,omitempty"` + Labels map[string]string `json:"labels,omitempty"` } type vkeClustersBase struct { diff --git a/vendor/github.com/vultr/govultr/v3/meta.go b/vendor/github.com/vultr/govultr/v3/meta.go index c361bf957..2b1098a2e 100644 --- a/vendor/github.com/vultr/govultr/v3/meta.go +++ b/vendor/github.com/vultr/govultr/v3/meta.go @@ -2,8 +2,8 @@ package govultr // Meta represents the available pagination information type Meta struct { - Total int `json:"total"` - Links *Links + Total int `json:"total"` + Links *Links `json:"links"` } // Links represent the next/previous cursor in your pagination calls diff --git a/vendor/github.com/vultr/govultr/v3/startup_script.go b/vendor/github.com/vultr/govultr/v3/startup_script.go index cacc70b64..4b9900ae5 100644 --- a/vendor/github.com/vultr/govultr/v3/startup_script.go +++ b/vendor/github.com/vultr/govultr/v3/startup_script.go @@ -37,9 +37,9 @@ type StartupScript struct { // StartupScriptReq is the user struct for create and update calls type StartupScriptReq struct { - Name string `json:"name"` - Type string `json:"type"` - Script string `json:"script"` + Name string `json:"name,omitempty"` + Type string `json:"type,omitempty"` + Script string `json:"script,omitempty"` } type startupScriptsBase struct { diff --git a/vendor/modules.txt b/vendor/modules.txt index f342e02b8..47b1f1496 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -204,7 +204,7 @@ github.com/spf13/pflag # github.com/stoewer/go-strcase v1.3.0 ## explicit; go 1.11 github.com/stoewer/go-strcase -# github.com/vultr/govultr/v3 v3.6.1 +# github.com/vultr/govultr/v3 v3.6.4 ## explicit; go 1.20 github.com/vultr/govultr/v3 # github.com/vultr/metadata v1.1.0