From 889db1ba158391f268c1087e9ce48505bdb14646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mence=20Lesn=C3=A9?= Date: Thu, 30 Mar 2023 16:47:23 +0200 Subject: [PATCH 1/2] Fix: Auto-scaling --- src/helm/azure-pipelines-agent/templates/deployment.yaml | 5 ++++- src/helm/azure-pipelines-agent/templates/hpa.yaml | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/helm/azure-pipelines-agent/templates/deployment.yaml b/src/helm/azure-pipelines-agent/templates/deployment.yaml index 136fedac..608a2609 100644 --- a/src/helm/azure-pipelines-agent/templates/deployment.yaml +++ b/src/helm/azure-pipelines-agent/templates/deployment.yaml @@ -28,7 +28,10 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} env: - name: AZP_AGENT_NAME - value: {{ include "this.fullname" . }} + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.name - name: AZP_URL valueFrom: secretKeyRef: diff --git a/src/helm/azure-pipelines-agent/templates/hpa.yaml b/src/helm/azure-pipelines-agent/templates/hpa.yaml index dbf25d2e..596bf6e9 100644 --- a/src/helm/azure-pipelines-agent/templates/hpa.yaml +++ b/src/helm/azure-pipelines-agent/templates/hpa.yaml @@ -30,6 +30,5 @@ spec: - type: azure-pipelines metadata: poolName: {{ .Values.pipelines.pool }} - parent: {{ include "this.fullname" . }} authenticationRef: name: {{ include "this.fullname" . }} From 08e5317d8b11b909c3715f72dcb116baf5e17cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mence=20Lesn=C3=A9?= Date: Thu, 30 Mar 2023 16:49:40 +0200 Subject: [PATCH 2/2] Feat: Install build-essential on all images --- src/docker/Dockerfile-bullseye | 1 + src/docker/Dockerfile-focal | 1 + src/docker/Dockerfile-jammy | 1 + 3 files changed, 3 insertions(+) diff --git a/src/docker/Dockerfile-bullseye b/src/docker/Dockerfile-bullseye index 8f14682a..bb5175e2 100644 --- a/src/docker/Dockerfile-bullseye +++ b/src/docker/Dockerfile-bullseye @@ -9,6 +9,7 @@ RUN apt-get install -y -qq --no-install-recommends \ unzip \ apt-transport-https \ apt-utils \ + build-essential \ ca-certificates \ curl \ git \ diff --git a/src/docker/Dockerfile-focal b/src/docker/Dockerfile-focal index 69172933..3c58206e 100644 --- a/src/docker/Dockerfile-focal +++ b/src/docker/Dockerfile-focal @@ -9,6 +9,7 @@ RUN apt-get install -y -qq --no-install-recommends \ unzip \ apt-transport-https \ apt-utils \ + build-essential \ ca-certificates \ curl \ git \ diff --git a/src/docker/Dockerfile-jammy b/src/docker/Dockerfile-jammy index 5cc8d59a..3bc424fd 100644 --- a/src/docker/Dockerfile-jammy +++ b/src/docker/Dockerfile-jammy @@ -9,6 +9,7 @@ RUN apt-get install -y -qq --no-install-recommends \ unzip \ apt-transport-https \ apt-utils \ + build-essential \ ca-certificates \ curl \ git \