Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MIWI Cluster update flow to add new openshift operator identity #4037

Merged
merged 5 commits into from
Jan 15, 2025

Conversation

rajdeepc2792
Copy link
Collaborator

@rajdeepc2792 rajdeepc2792 commented Jan 3, 2025

Which issue this PR addresses:

Fixes https://issues.redhat.com/browse/ARO-13916
https://issues.redhat.com/browse/ARO-13924

What this PR does / why we need it:

When adding a new OpenShift Identity to an existing cluster, the federated identity and secret in the cluster must be created.
During testing 2 issues were found, this PR fixes them:

  1. ObjectID and ClientID are not populated during update for the new operator identity
  2. For secret creation, the namespace must exist, so create the namespaces before secret creation.

Test plan for issue:

[x] Unit Tests
[x] Test the cluster update in local

Is there any documentation that needs to be updated for this PR?

No

How do you know this will function as expected in production?

Feature not available in production.

cadenmarchese
cadenmarchese previously approved these changes Jan 3, 2025
Copy link
Collaborator

@cadenmarchese cadenmarchese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the fix!

pkg/cluster/install.go Outdated Show resolved Hide resolved
@rajdeepc2792 rajdeepc2792 force-pushed the rajdeepc2792/ARO-13916 branch from 02543e8 to 2e14751 Compare January 14, 2025 16:03
@rajdeepc2792 rajdeepc2792 force-pushed the rajdeepc2792/ARO-13916 branch from 2e14751 to 9d8ecb9 Compare January 14, 2025 16:06
@kimorris27 kimorris27 merged commit bcc519c into master Jan 15, 2025
22 checks passed
@kimorris27 kimorris27 deleted the rajdeepc2792/ARO-13916 branch January 15, 2025 21:28
ehvs pushed a commit that referenced this pull request Jan 23, 2025
…4037)

* ARO-13916 fix new operator identity addition flow for miwi cluster update

* ARO-13916 add the federateIdentityCredentials step back to update

* ARO-13916 populate client/object IDs after dynamic validation

* ARO-13916 update dynamic validation unit test cases

* ARO-13916 persist user assigned identities with client and object id after dynamic validation
ehvs pushed a commit that referenced this pull request Jan 23, 2025
…4037)

* ARO-13916 fix new operator identity addition flow for miwi cluster update

* ARO-13916 add the federateIdentityCredentials step back to update

* ARO-13916 populate client/object IDs after dynamic validation

* ARO-13916 update dynamic validation unit test cases

* ARO-13916 persist user assigned identities with client and object id after dynamic validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chainsaw Pull requests or issues owned by Team Chainsaw ready-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants