Skip to content
Merged
Changes from all commits
Commits
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
4 changes: 0 additions & 4 deletions source/plugins/ruby/out_mdm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,10 @@ def start
@useMsi = true
msi_endpoint = @@imds_msi_endpoint_template % { resource: @@token_resource_audience }
@parsed_token_uri = URI.parse(msi_endpoint)
@cached_access_token = get_access_token
else
# switch to IMDS endpoint for the windows once the Arc K8s team supports the IMDS sidecar for windows
@log.info "using cluster identity token since cluster is azure arc k8s cluster"
@cluster_identity = ArcK8sClusterIdentity.new
@cached_access_token = @cluster_identity.get_cluster_identity_token
end
else
# azure json file only used for aks and doesnt exist in non-azure envs
Expand All @@ -148,8 +146,6 @@ def start
end
@parsed_token_uri = URI.parse(msi_endpoint)
end

@cached_access_token = get_access_token
end
end
rescue => e
Expand Down