Skip to content

Commit

Permalink
Update to use Rancher 2.5.9 (#1365) (#1367)
Browse files Browse the repository at this point in the history
* Update BOM and additional rancher images for private registry
* Fix uninstall to remove additional rolebindings and MutatingWebhookConfiguration created by this version of Rancher

Co-authored-by: Deva Sagar <deva.sagar@oracle.com>
  • Loading branch information
kminder and desagar committed Jul 21, 2021
1 parent 836e2fa commit 309dcc3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
Expand Up @@ -152,6 +152,8 @@ function delete_rancher() {
do
delete_k8s_resources rolebinding ":metadata.name" "Could not delete RoleBindings from Rancher in namespace ${namespace}" '/clusterrolebinding-/' "${namespace}" \
|| return $? # return on pipefail
delete_k8s_resources rolebinding ":metadata.name" "Could not delete RoleBindings from Rancher in namespace ${namespace}" '/^rb-/' "${namespace}" \
|| return $? # return on pipefail
done

# delete configmap in kube-system
Expand Down Expand Up @@ -185,6 +187,10 @@ function delete_rancher() {
| awk '/controller.cattle.io/ {print $1}' \
| xargsr kubectl patch namespace -p '{"metadata":{"finalizers":null}}' --type=merge \
|| err_return $? "Could not remove Rancher finalizers from all namespaces" || return $? # return on pipefail

log "Removing Rancher MutatingWebhookConfiguration"
kubectl delete mutatingwebhookconfigurations.admissionregistration.k8s.io rancher.cattle.io --ignore-not-found \
|| err_return $? "Failed to delete MutatingWebhookConfiguration rancher.cattle.io"
}

action "Deleting Rancher Components" delete_rancher || exit 1
Expand Down
18 changes: 11 additions & 7 deletions platform-operator/verrazzano-bom.json
Expand Up @@ -165,13 +165,13 @@
"images": [
{
"image": "rancher",
"tag": "v2.5.7-20210407205410-1c7b39d0c",
"tag": "v2.5.9-20210716224636-3e2504adb",
"helmFullImageKey": "rancherImage",
"helmTagKey": "rancherImageTag"
},
{
"image": "rancher-agent",
"tag": "v2.5.7-20210407205410-1c7b39d0c"
"tag": "v2.5.9-20210716224636-3e2504adb"
}
]
},
Expand All @@ -186,23 +186,27 @@
},
{
"image": "rancher-webhook",
"tag": "v0.1.0-beta9"
"tag": "v0.1.1"
},
{
"image": "fleet-agent",
"tag": "v0.3.4"
"tag": "v0.3.5"
},
{
"image": "fleet",
"tag": "v0.3.4"
"tag": "v0.3.5"
},
{
"image": "gitjob",
"tag": "v0.1.13"
"tag": "v0.1.15"
},
{
"image": "rancher-operator",
"tag": "v0.1.3"
"tag": "v0.1.4"
},
{
"image": "local-path-provisioner",
"tag": "v0.0.14"
}
]
}
Expand Down

0 comments on commit 309dcc3

Please sign in to comment.