Skip to content

Commit

Permalink
Replace kubectl's --prune-whitelist with --prune-allowlist (#12496)
Browse files Browse the repository at this point in the history
  • Loading branch information
alpeb committed Apr 24, 2024
1 parent 2d5085b commit 7545d13
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions test/integration/install/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ func TestInstallOrUpgradeCli(t *testing.T) {
out, err = TestHelper.KubectlApplyWithArgs(out, []string{
"--prune",
"-l", "linkerd.io/control-plane-ns=linkerd",
"--prune-whitelist", "rbac.authorization.k8s.io/v1/clusterrole",
"--prune-whitelist", "rbac.authorization.k8s.io/v1/clusterrolebinding",
"--prune-whitelist", "apiregistration.k8s.io/v1/apiservice",
"--prune-allowlist", "rbac.authorization.k8s.io/v1/clusterrole",
"--prune-allowlist", "rbac.authorization.k8s.io/v1/clusterrolebinding",
"--prune-allowlist", "apiregistration.k8s.io/v1/apiservice",
}...)
if err != nil {
testutil.AnnotatedFatalf(t, "'kubectl apply' command failed",
Expand Down Expand Up @@ -255,9 +255,9 @@ func TestInstallOrUpgradeCli(t *testing.T) {
cmdOut, err := TestHelper.KubectlApplyWithArgs(out, []string{
"--prune",
"-l", "linkerd.io/control-plane-ns=linkerd",
"--prune-whitelist", "apps/v1/deployment",
"--prune-whitelist", "core/v1/service",
"--prune-whitelist", "core/v1/configmap",
"--prune-allowlist", "apps/v1/deployment",
"--prune-allowlist", "core/v1/service",
"--prune-allowlist", "core/v1/configmap",
}...)
if err != nil {
testutil.AnnotatedFatalf(t, "'kubectl apply' command failed",
Expand Down
6 changes: 3 additions & 3 deletions test/integration/upgrade-edge/upgrade_edge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ func TestUpgradeCli(t *testing.T) {
cmdOut, err = TestHelper.KubectlApplyWithArgs(out, []string{
"--prune",
"-l", "linkerd.io/control-plane-ns=linkerd",
"--prune-whitelist", "apps/v1/deployment",
"--prune-whitelist", "core/v1/service",
"--prune-whitelist", "core/v1/configmap",
"--prune-allowlist", "apps/v1/deployment",
"--prune-allowlist", "core/v1/service",
"--prune-allowlist", "core/v1/configmap",
}...)
if err != nil {
testutil.AnnotatedFatalf(t, "'kubectl apply' command failed",
Expand Down
6 changes: 3 additions & 3 deletions test/integration/upgrade-stable/upgrade_stable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ func TestUpgradeCli(t *testing.T) {
cmdOut, err = TestHelper.KubectlApplyWithArgs(out, []string{
"--prune",
"-l", "linkerd.io/control-plane-ns=linkerd",
"--prune-whitelist", "apps/v1/deployment",
"--prune-whitelist", "core/v1/service",
"--prune-whitelist", "core/v1/configmap",
"--prune-allowlist", "apps/v1/deployment",
"--prune-allowlist", "core/v1/service",
"--prune-allowlist", "core/v1/configmap",
}...)
if err != nil {
testutil.AnnotatedFatalf(t, "'kubectl apply' command failed",
Expand Down

0 comments on commit 7545d13

Please sign in to comment.