From 484ec97244ccdb0fe0d45117ac29299d0a63bd49 Mon Sep 17 00:00:00 2001 From: Simon Emms Date: Wed, 27 Oct 2021 20:07:53 +0100 Subject: [PATCH] [ws-manager]: change affinities to match the installer values --- components/ws-manager/pkg/manager/create.go | 2 +- .../pkg/manager/testdata/cdwp_withaffinity_regular.golden | 2 +- .../pkg/manager/testdata/cdwp_withaffinityheadless.golden | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ws-manager/pkg/manager/create.go b/components/ws-manager/pkg/manager/create.go index 101d936c0af6b7..f38eb69d681760 100644 --- a/components/ws-manager/pkg/manager/create.go +++ b/components/ws-manager/pkg/manager/create.go @@ -339,7 +339,7 @@ func (m *Manager) createDefiniteWorkspacePod(startContext *startWorkspaceContext { MatchExpressions: []corev1.NodeSelectorRequirement{ { - Key: "gitpod.io/workloads/workspace/" + workloadType, + Key: "gitpod.io/workload_workspace_" + workloadType, Operator: corev1.NodeSelectorOpExists, }, }, diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_withaffinity_regular.golden b/components/ws-manager/pkg/manager/testdata/cdwp_withaffinity_regular.golden index 14827aba72f388..3cb856fef16547 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_withaffinity_regular.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_withaffinity_regular.golden @@ -207,7 +207,7 @@ { "matchExpressions": [ { - "key": "gitpod.io/workloads/workspace/regular", + "key": "gitpod.io/workload_workspace_/regular", "operator": "Exists" } ] diff --git a/components/ws-manager/pkg/manager/testdata/cdwp_withaffinityheadless.golden b/components/ws-manager/pkg/manager/testdata/cdwp_withaffinityheadless.golden index c1f14a7d9d753c..88067d1bcef2b1 100644 --- a/components/ws-manager/pkg/manager/testdata/cdwp_withaffinityheadless.golden +++ b/components/ws-manager/pkg/manager/testdata/cdwp_withaffinityheadless.golden @@ -211,7 +211,7 @@ { "matchExpressions": [ { - "key": "gitpod.io/workloads/workspace/headless", + "key": "gitpod.io/workload_workspace_headless", "operator": "Exists" } ]