Skip to content

Commit

Permalink
Default to azcore enabled (#3654)
Browse files Browse the repository at this point in the history
Fixes #903

---------

Co-authored-by: Thomas Kappler <[email protected]>
  • Loading branch information
danielrbradley and thomas11 authored Nov 8, 2024
1 parent f626a55 commit 54d0d0f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions provider/pkg/util/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ import "os"
// EnableAzcoreBackend is a feature toggle that returns true if the newer backend using azcore and
// azidentity for REST and authentication should be used. Otherwise, the previous autorest backend
// is used.
//
// Tracked in epic #3576, the new backend was added to upgrade from unmaintained libraries that
// don't receive security and other updates. It uses the latest official Azure packages.
// The new backend is gated behind this feature toggle to allow enabling it selectively,
// limiting the blast radius of regressions. It's enabled in the daily CI workflow azcore-scheduled.
//
// The new backend is enabled by default but can be disabled via this feature toggle.
func EnableAzcoreBackend() bool {
return os.Getenv("PULUMI_ENABLE_AZCORE_BACKEND") == "true"
if enable, ok := os.LookupEnv("PULUMI_ENABLE_AZCORE_BACKEND"); ok {
return enable == "true"
}
return true
}

0 comments on commit 54d0d0f

Please sign in to comment.