Skip to content

Commit

Permalink
telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
sclevine committed Dec 16, 2024
1 parent 26ac0b0 commit 7d6b15e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ import (
"github.com/gravitational/teleport/lib/auth/storage"
"github.com/gravitational/teleport/lib/authz"
"github.com/gravitational/teleport/lib/automaticupgrades"
autoupdate "github.com/gravitational/teleport/lib/autoupdate/agent"
"github.com/gravitational/teleport/lib/autoupdate/rollout"
"github.com/gravitational/teleport/lib/backend"
"github.com/gravitational/teleport/lib/backend/dynamo"
Expand Down Expand Up @@ -1232,6 +1233,17 @@ func NewTeleport(cfg *servicecfg.Config) (*TeleportProcess, error) {
upgraderKind = ""
}

// If the new auto-updater is enabled, it superceeds the old one.
ok, err := autoupdate.IsEnabled()
if err != nil {
process.logger.WarnContext(process.ExitContext(), "Failed to determine if auto-updates are enabled.", "error", err)
} else if ok {
// If this is a teleport-update managed installation, the version
// managed by the timer will always match the installed version of teleport.
upgraderKind = "teleport-update"
upgraderVersion = "v" + teleport.Version
}

// Instances deployed using the AWS OIDC integration are automatically updated
// by the proxy. The instance heartbeat should properly reflect that.
externalUpgrader := upgraderKind
Expand Down

0 comments on commit 7d6b15e

Please sign in to comment.