Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
8eb3939
Refactor Azure VMSS Plugin to Use New Azure SDK
benjamin-lykins Jun 8, 2025
0b461cc
cleaning up old comments and addiing additional comments
benjamin-lykins Jun 9, 2025
974c48b
Update plugins/builtin/target/azure-vmss/plugin/azure.go
benjamin-lykins Jun 10, 2025
7bab444
Apply suggestions from code review
benjamin-lykins Jun 12, 2025
b61edb9
Adding constants for orchestration mode
benjamin-lykins Jun 12, 2025
280f80a
adding note
benjamin-lykins Jun 12, 2025
3f10e4e
cleaning up processInstanceView
benjamin-lykins Jun 12, 2025
1f8ffb9
adding context check at the beginning of the loop
benjamin-lykins Jun 12, 2025
e1a8b0c
removing comments and redudant conditionals
benjamin-lykins Jun 17, 2025
7d5ed29
consolidating scale in function and generalized
benjamin-lykins Jun 19, 2025
7f08aac
fix uniform logic. tested and scaling in successfully
benjamin-lykins Jun 19, 2025
0c02da8
adding nil check for vm.InstanceID
benjamin-lykins Jun 20, 2025
ac65f6e
reverting to luiz's logic when checking if powerState = running
benjamin-lykins Jun 20, 2025
c87411e
fix getFlexibleReadyRemoteIDs, which could inaccurately check status.
benjamin-lykins Jun 20, 2025
38d582f
adding check + error in getFlexibleReadyRemoteIDs function
benjamin-lykins Jun 23, 2025
72dcac4
rework flexible vmss instance status checks. add helper function for
benjamin-lykins Jun 24, 2025
5714fbb
update plugins/builtin/target/azure-vmss/plugin/azure.go
benjamin-lykins Jun 28, 2025
e372904
update from debug to error message
benjamin-lykins Jun 28, 2025
7f66910
updated with suggested helper function. validated scale in/out working
benjamin-lykins Jun 28, 2025
92086fb
cleaning up helper function for more descriptive errors
benjamin-lykins Jun 28, 2025
9ea19e0
updated error output
benjamin-lykins Jun 28, 2025
3f35205
removing goroutines due to rate limit issue.
benjamin-lykins Jul 11, 2025
e3a64dc
removing config output
benjamin-lykins Jul 11, 2025
6adb452
storing readyFlexibleInstances to ease azure api hits
benjamin-lykins Oct 20, 2025
cb63004
tweaks after testing for logging
benjamin-lykins Oct 25, 2025
cd434c0
flexible vm ready test
benjamin-lykins Oct 25, 2025
01cf3bb
add tests for idFromRemoteID function to validate orchestration modes…
benjamin-lykins Oct 25, 2025
e8237d8
remove debug log for context cancellation in processInstanceViewFlexible
benjamin-lykins Oct 31, 2025
f783468
updated to use errors.Is for context cancellation
benjamin-lykins Oct 31, 2025
318c9cb
remove unnecessary error handling for rate limits in scaleIn function…
benjamin-lykins Oct 31, 2025
4d45911
additional verification for flexible vmss vms.
benjamin-lykins Nov 4, 2025
8ae3ec2
removing unneeded healthy debug log
benjamin-lykins Nov 4, 2025
908fd8f
removing redundant logging
benjamin-lykins Nov 4, 2025
71c6c00
removed else block when checking uniform instance set vm properties.
benjamin-lykins Nov 4, 2025
8755c3e
mutex changes in processInstanceViewFlexible and scaleIn
benjamin-lykins Nov 4, 2025
bac4e60
refactor: update capacity calculation to use actual VM count instead …
benjamin-lykins Nov 4, 2025
9b777de
fix: ensure thread-safe access to readyFlexibleInstances in scaleIn f…
benjamin-lykins Nov 4, 2025
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
21 changes: 8 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ module github.com/hashicorp/nomad-autoscaler
go 1.24.0

require (
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible
github.com/Azure/go-autorest/autorest v0.11.30
github.com/Azure/go-autorest/autorest/azure/auth v0.5.13
github.com/Azure/go-autorest/autorest/date v0.3.1
github.com/DataDog/datadog-api-client-go v1.16.0
github.com/IBM/go-sdk-core/v5 v5.21.0
github.com/IBM/vpc-go-sdk v0.74.1
Expand Down Expand Up @@ -42,13 +38,11 @@ require (
cloud.google.com/go/auth v0.17.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
cloud.google.com/go/compute/metadata v0.9.0 // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.22 // indirect
github.com/Azure/go-autorest/autorest/azure/cli v0.4.6 // indirect
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
github.com/Azure/go-autorest/autorest/validation v0.3.0 // indirect
github.com/Azure/go-autorest/logger v0.2.1 // indirect
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.0
github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.1 // indirect
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0
github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2 // indirect
github.com/DataDog/datadog-go v3.6.0+incompatible // indirect
github.com/DataDog/zstd v1.5.0 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
Expand All @@ -74,7 +68,6 @@ require (
github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible // indirect
github.com/circonus-labs/circonusllhist v0.1.3 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
Expand All @@ -85,7 +78,7 @@ require (
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.26.0 // indirect
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
github.com/golang-jwt/jwt/v5 v5.2.2 // indirect
github.com/google/s2a-go v0.1.9 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
Expand All @@ -103,6 +96,7 @@ require (
github.com/imdario/mergo v0.3.13 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
Expand All @@ -115,6 +109,7 @@ require (
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/posener/complete v1.2.3 // indirect
Expand Down
Loading
Loading