Bug Description:
The Import Cluster wizard does not dynamically update when OCM credentials are added or deleted. If a credential is removed or added from an external source while the wizard is open, the list of available credentials and the selected namespace/credential dropdowns are not refreshed accordingly. This can lead to situations where deleted credentials remain selected or unavailable credentials are shown.
Expected Behavior:
- When OCM credentials are deleted:
- If the currently selected credential no longer exists, the wizard should either reset the credential field to an empty state or select the first available credential in the current namespace (if any).
- If the namespace no longer contains any credentials, the namespace field should be cleared, and the credential dropdown should reset.
- When new OCM credentials are added:
- The wizard should automatically update the credential list to reflect the newly available credentials in the appropriate namespace.