Skip to content

Commit cdab7cf

Browse files
committed
tests: repurpose deep-native-sidecar as deep-non-native-sidecar
Now that native sidecars are enabled by default since #15267, repurpose the `deep-native-sidecar` test into `deep-non-native-sidecar`, so that it runs the deep suite using the now non-default non-native-sidecar mode.
1 parent c9ec161 commit cdab7cf

5 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
test:
121121
- cni-calico-deep
122122
- deep
123-
- deep-native-sidecar
123+
- deep-non-native-sidecar
124124
runs-on: ${{ vars.LINKERD2_RUNNER || 'ubuntu-24.04' }}
125125
timeout-minutes: 15
126126
steps:

bin/_test-helpers.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ testdir=$bindir/../test/integration
1212

1313
##### Test setup helpers #####
1414

15-
export default_test_names=(deep deep-native-sidecar viz tracing external helm-upgrade uninstall upgrade-edge default-policy-deny rsa-ca)
15+
export default_test_names=(deep deep-non-native-sidecar viz tracing external helm-upgrade uninstall upgrade-edge default-policy-deny rsa-ca)
1616
export external_resource_test_names=(external-resources)
1717
# TODO(alpeb): add test cni-calico-deep-dual-stack
1818
export dual_stack_test_names=(deep-dual-stack)
@@ -25,7 +25,7 @@ tests_usage() {
2525
2626
Optionally specify a test with the --name flag: [${all_test_names[*]}]
2727
28-
Note: The cluster-domain, deep-native-sidecar cni-calico-deep and multicluster tests require a custom cluster configuration (see bin/_test-helpers.sh)
28+
Note: The cluster-domain, deep-non-native-sidecar cni-calico-deep and multicluster tests require a custom cluster configuration (see bin/_test-helpers.sh)
2929
3030
Usage:
3131
${progname} [--images docker|archive|skip] [--name test-name] [--skip-cluster-create] /path/to/linkerd
@@ -445,8 +445,8 @@ run_deep_test() {
445445
run_test "$testdir/deep/..."
446446
}
447447

448-
run_deep-native-sidecar_test() {
449-
run_test "$testdir/deep/..." --native-sidecar
448+
run_deep-non-native-sidecar_test() {
449+
run_test "$testdir/deep/..." --non-native-sidecar
450450
}
451451

452452
run_deep-dual-stack_test() {

test/integration/deep/install_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ func TestInstall(t *testing.T) {
152152
cmd = append(cmd, "--linkerd-cni-enabled")
153153
}
154154

155-
if TestHelper.NativeSidecar() {
156-
cmd = append(cmd, "--set", "proxy.nativeSidecar=true")
155+
if TestHelper.NonNativeSidecar() {
156+
cmd = append(cmd, "--set", "proxy.nativeSidecar=false")
157157
}
158158

159159
if TestHelper.DualStack() {

test/integration/viz/install_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ func TestInstallVizHA(t *testing.T) {
8989
"--ha",
9090
}
9191

92-
if TestHelper.NativeSidecar() {
93-
cmd = append(cmd, "--set", "proxy.nativeSidecar=true")
92+
if TestHelper.NonNativeSidecar() {
93+
cmd = append(cmd, "--set", "proxy.nativeSidecar=false")
9494
}
9595

9696
out, err := TestHelper.LinkerdRun(cmd...)

testutil/test_helper.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type TestHelper struct {
4242
cni bool
4343
calico bool
4444
dualStack bool
45-
nativeSidecar bool
45+
nonNativeSidecar bool
4646
defaultInboundPolicy string
4747
httpClient http.Client
4848
KubernetesHelper
@@ -207,7 +207,7 @@ func NewTestHelper() *TestHelper {
207207
cni := flag.Bool("cni", false, "whether to install linkerd with CNI enabled")
208208
calico := flag.Bool("calico", false, "whether to install calico CNI plugin")
209209
dualStack := flag.Bool("dual-stack", false, "whether to run the dual-stack tests")
210-
nativeSidecar := flag.Bool("native-sidecar", false, "whether to install using native sidecar injection")
210+
nonNativeSidecar := flag.Bool("non-native-sidecar", false, "whether to install using non-native sidecar injection")
211211
defaultInboundPolicy := flag.String("default-inbound-policy", "", "if non-empty, passed to --set proxy.defaultInboundPolicy at linkerd's install time")
212212
flag.Parse()
213213

@@ -255,7 +255,7 @@ func NewTestHelper() *TestHelper {
255255
cni: *cni,
256256
calico: *calico,
257257
dualStack: *dualStack,
258-
nativeSidecar: *nativeSidecar,
258+
nonNativeSidecar: *nonNativeSidecar,
259259
uninstall: *uninstall,
260260
defaultInboundPolicy: *defaultInboundPolicy,
261261
}
@@ -409,9 +409,9 @@ func (h *TestHelper) DualStack() bool {
409409
return h.dualStack
410410
}
411411

412-
// NativeSidecar determines whether native sidecar injection is enabled
413-
func (h *TestHelper) NativeSidecar() bool {
414-
return h.nativeSidecar
412+
// NativeSidecar determines whether non-native sidecar injection is enabled
413+
func (h *TestHelper) NonNativeSidecar() bool {
414+
return h.nonNativeSidecar
415415
}
416416

417417
// AddInstalledExtension adds an extension name to installedExtensions to

0 commit comments

Comments
 (0)