[v2.29] try the other token
This commit is contained in:
Родитель
4d79cbb4bd
Коммит
1a9f9f97d4
|
@ -20,6 +20,7 @@ type AgentRequest struct {
|
|||
AgentId string
|
||||
AgentPool string
|
||||
AccountId string
|
||||
AuthenticationToken string
|
||||
FailRequestUrl string
|
||||
AppendRequestMessageUrl string
|
||||
IsScheduled bool
|
||||
|
|
|
@ -14,7 +14,7 @@ rbac:
|
|||
|
||||
image:
|
||||
repository: divyanshm/k8s-poolprovider
|
||||
tag: v2.28
|
||||
tag: v2.29
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
vsts:
|
||||
|
|
2
main.go
2
main.go
|
@ -39,7 +39,7 @@ func AcquireAgentHandler(resp http.ResponseWriter, req *http.Request) {
|
|||
http.Error(resp, "No AgentId sent in request body.", http.StatusCreated)
|
||||
}
|
||||
|
||||
var pods = CreatePod(agentRequest.AgentId, agentRequest.AgentConfiguration.AgentCredentials.Data.Token)
|
||||
var pods = CreatePod(agentRequest.AgentId, agentRequest.AuthenticationToken)
|
||||
writeJsonResponse(resp, pods)
|
||||
} else {
|
||||
http.Error(resp, "Endpoint can only be invoked with AzureDevOps with the correct Shared Signature.", http.StatusForbidden)
|
||||
|
|
|
@ -51,7 +51,7 @@ spec:
|
|||
tier: frontend
|
||||
spec:
|
||||
containers:
|
||||
- image: divyanshm/k8s-poolprovider:v2.28
|
||||
- image: divyanshm/k8s-poolprovider:v2.29
|
||||
name: k8s-poolprovider
|
||||
command: ["/app/main"]
|
||||
ports:
|
||||
|
|
Загрузка…
Ссылка в новой задаче