Use proxy-init version from internal package in tests (#11921)

We keep track of our proxy-init and CNI plugin versions in two exported
variables in `pkg/version/version.go`. As part of our release process,
we require these versions to be bumped when the iptables dependencies
are bumped.

In our multicluster test, we provide a proxy-init version that's
hardcoded. Instead of relying on the release coordinator to bump the
image in the test (which can be easily missed), use the already exported
version.

Signed-off-by: Matei David <matei@buoyant.io>
This commit is contained in:
Matei David 2024-01-22 21:15:12 +00:00 committed by GitHub
parent 68534e0881
commit 7d6695327c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ import (
mcHealthcheck "github.com/linkerd/linkerd2/multicluster/cmd"
"github.com/linkerd/linkerd2/pkg/healthcheck"
"github.com/linkerd/linkerd2/pkg/version"
"github.com/linkerd/linkerd2/testutil"
)
@ -113,7 +114,7 @@ func TestInstall(t *testing.T) {
"install",
"--controller-log-level", "debug",
"--set", "proxyInit.image.name=ghcr.io/linkerd/proxy-init",
"--set", "proxyInit.image.version=v2.2.3",
"--set", fmt.Sprintf("proxyInit.image.version=%s", version.ProxyInitVersion),
"--set", fmt.Sprintf("proxy.image.version=%s", TestHelper.GetVersion()),
"--set", "heartbeatSchedule=1 2 3 4 5",
"--identity-trust-anchors-file", rootPath,