Skip to content

Commit

Permalink
Replace kubectl's --prune-whitelist with --prune-allowlist (#1768)
Browse files Browse the repository at this point in the history
The former is no longer supported in latest kubectl versions.

Co-authored-by: Flynn <[email protected]>
  • Loading branch information
alpeb and kflynn committed May 7, 2024
1 parent 2cc7563 commit 6abe2ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions linkerd.io/content/2-edge/tasks/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,9 @@ and then invoke those commands through `linkerd viz stat`,
linkerd upgrade | kubectl apply --prune -l linkerd.io/control-plane-ns=linkerd -f -
# Prune cluster-scoped resources
linkerd upgrade | kubectl apply --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 -f -
--prune-allowlist=rbac.authorization.k8s.io/v1/clusterrole \
--prune-allowlist=rbac.authorization.k8s.io/v1/clusterrolebinding \
--prune-allowlist=apiregistration.k8s.io/v1/apiservice -f -
# Install the Linkerd-Viz extension to restore viz functionality.
linkerd viz install | kubectl apply -f -
```
Expand Down
6 changes: 3 additions & 3 deletions linkerd.io/content/2.15/tasks/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,9 @@ and then invoke those commands through `linkerd viz stat`,
linkerd upgrade | kubectl apply --prune -l linkerd.io/control-plane-ns=linkerd -f -
# Prune cluster-scoped resources
linkerd upgrade | kubectl apply --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 -f -
--prune-allowlist=rbac.authorization.k8s.io/v1/clusterrole \
--prune-allowlist=rbac.authorization.k8s.io/v1/clusterrolebinding \
--prune-allowlist=apiregistration.k8s.io/v1/apiservice -f -
# Install the Linkerd-Viz extension to restore viz functionality.
linkerd viz install | kubectl apply -f -
```
Expand Down

0 comments on commit 6abe2ea

Please sign in to comment.