mirror of https://github.com/linkerd/linkerd2.git
Replace kubectl's `--prune-whitelist` with `--prune-allowlist` (#12496)
This commit is contained in:
parent
2d5085b56e
commit
7545d131cb
|
@ -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",
|
||||
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue