Skip to content

Commit

Permalink
Clean up default RoleBinding during Operator upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ugiordan committed Jan 30, 2025
1 parent 75d5183 commit de85080
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ func CleanupExistingResource(ctx context.Context,
deprecatedFeatureTrackers := []string{dscApplicationsNamespace + "-kserve-temporary-fixes"}
multiErr = multierror.Append(multiErr, deleteDeprecatedResources(ctx, cli, dscApplicationsNamespace, deprecatedFeatureTrackers, &featuresv1.FeatureTrackerList{}))

// Cleanup of deprecated default RoleBinding resources
deprecatedDefaultRoleBinding := []string{dscApplicationsNamespace}
multiErr = multierror.Append(multiErr, deleteDeprecatedResources(ctx, cli, dscApplicationsNamespace, deprecatedDefaultRoleBinding, &rbacv1.RoleBindingList{}))

// Handling for dashboard OdhDocument Jupyterhub CR, see jira #443 comments
odhDocJPH := getJPHOdhDocumentResources(
dscApplicationsNamespace,
Expand Down

0 comments on commit de85080

Please sign in to comment.