diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7c3c521b3..80ee1cc9f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -80,6 +80,13 @@ jobs: docker cp $ID:/usr/bin/vm-informant bin/vm-informant docker rm -f $ID + # note: We *could* use something like kustomize for this. But there's extra steps (e.g., + # adding kustomization.yaml) and sed is simple; so we can deal with this for now. + - name: modify deploy files to use current image(s) + run: | + sed -i -e s^localhost:5001/autoscaler-agent:latest^${{ env.AGENT_IMAGE }}:${{ steps.get_vcs_info.outputs.version }} deploy/autoscale-scheduler.yaml + sed -i -e s^localhost:5001/kube-autoscale-scheduler:latest^${{ env.SCHED_IMAGE }}:${{ steps.get_vcs_info.outputs.version }} deploy/autoscaler-agent.yaml + - name: github release uses: softprops/action-gh-release@v1 with: diff --git a/deploy/autoscale-scheduler.yaml b/deploy/autoscale-scheduler.yaml index 67b478d54..684115014 100644 --- a/deploy/autoscale-scheduler.yaml +++ b/deploy/autoscale-scheduler.yaml @@ -160,6 +160,8 @@ spec: spec: serviceAccountName: autoscale-scheduler containers: + # hey! This image name is hard-coded in .github/workflows/release.yaml - make sure to + # update that as well if you change this line! - image: localhost:5001/kube-autoscale-scheduler:latest command: ["/usr/bin/kube-scheduler", "--config=/etc/kubernetes/autoscale-scheduler-config/scheduler-config.yaml"] livenessProbe: diff --git a/deploy/autoscaler-agent.yaml b/deploy/autoscaler-agent.yaml index b6b7d416e..c2c35016f 100644 --- a/deploy/autoscaler-agent.yaml +++ b/deploy/autoscaler-agent.yaml @@ -91,6 +91,8 @@ spec: serviceAccountName: autoscaler-agent containers: - name: autoscaler-agent + # hey! This image name is hard-coded in .github/workflows/release.yaml - make sure to + # update that as well if you change this line! image: localhost:5001/autoscaler-agent:latest resources: limits: