This commit is contained in:
prebansa 2020-02-10 11:45:33 +05:30
Родитель b805f458af
Коммит e4e32e374d
6 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -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)

Просмотреть файл

@ -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))