Changing names to MCR repo
This commit is contained in:
Родитель
b805f458af
Коммит
e4e32e374d
|
@ -236,7 +236,6 @@ stages:
|
|||
|
||||
- task: ContainerBuild@0
|
||||
inputs:
|
||||
sharedSecret: '$(sharedSecret)'
|
||||
repository: 'prebansa/testbuildctl'
|
||||
Dockerfile: 'Dockerfile'
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ metadata:
|
|||
name: azurepipelinespool-operator
|
||||
namespace: azuredevops
|
||||
spec:
|
||||
controllerImage: prebansa/k8s-poolprovider:v2.22
|
||||
controllerImage: mcr.microsoft.com/azurepipelinespool/k8s-poolprovider:v1.0
|
||||
buildkitReplicas: 1
|
||||
agentPools:
|
||||
- name: windows
|
||||
|
@ -16,4 +16,4 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: vsts-agent
|
||||
image: prebansa/myagent:v6.2
|
||||
image: mcr.microsoft.com/azurepipelinespool/azure-pipelines-agent:v1.0
|
|
@ -17,7 +17,7 @@ spec:
|
|||
containers:
|
||||
- name: k8s-poolprovider
|
||||
# Replace this with the built image name
|
||||
image: prebansa/testbuildctl:v4.4
|
||||
image: mcr.microsoft.com/azurepipelinespool/k8s-poolprovideroperator:v1.0
|
||||
command:
|
||||
- k8s-poolprovider
|
||||
imagePullPolicy: Always
|
||||
|
|
|
@ -127,7 +127,8 @@ func TestReleaseHandlerShouldBeSuccessful(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestGetBuildPodHandlerShouldBeSuccessful(t *testing.T) {
|
||||
// Commenting test case for BuildPod as the API is now removed
|
||||
/*func TestGetBuildPodHandlerShouldBeSuccessful(t *testing.T) {
|
||||
SetTestingEnvironmentVariables(true)
|
||||
|
||||
var response PodResponse
|
||||
|
@ -150,4 +151,4 @@ func TestGetBuildPodHandlerShouldBeSuccessful(t *testing.T) {
|
|||
t.Errorf("Http buildPod Call failed")
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
|
@ -50,6 +50,7 @@ func CreatePod(agentRequest AgentRequest, podnamespace string) AgentProvisionRes
|
|||
labels := GenerateLabelsForPod(agentRequest.AgentId)
|
||||
|
||||
log.Println("Add an agent Pod using CRD")
|
||||
// currently as demands are not supported so creating agent for Linux
|
||||
pod = crdclient.AzurePipelinesPool(podnamespace).AddNewPodForCR(crdobject, labels, "linux")
|
||||
|
||||
log.Println("Agent pod spec fetched ", pod)
|
||||
|
|
1
main.go
1
main.go
|
@ -20,7 +20,6 @@ func main() {
|
|||
|
||||
s.HandleFunc("/acquire", func(w http.ResponseWriter, r *http.Request) { AcquireAgentHandler(w, r) })
|
||||
s.HandleFunc("/release", func(w http.ResponseWriter, r *http.Request) { ReleaseAgentHandler(w, r) })
|
||||
s.HandleFunc("/buildPod", func(w http.ResponseWriter, r *http.Request) { GetBuildPodHandler(w, r) })
|
||||
|
||||
// Start HTTP Server with request logging
|
||||
log.Fatal(http.ListenAndServe(":8080", s))
|
||||
|
|
Загрузка…
Ссылка в новой задаче