Skip to content

Commit

Permalink
fix: change the sequence of injections
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <[email protected]>
  • Loading branch information
olexii4 committed May 11, 2023
1 parent 8130177 commit cf049b4
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -757,19 +757,16 @@ export const actionCreators: ActionCreators = {
}
}

// inject the 'podman login' and kube config to the OpenShift internal registry
if (
phase === DevWorkspaceStatus.RUNNING &&
phase !== prevPhase &&
devworkspaceId !== undefined
) {
try {
await podmanLogin(workspace.metadata.namespace, devworkspaceId);
} catch (e) {
console.error(e);
}
try {
// inject the kube config to the OpenShift internal registry
await injectKubeConfig(workspace.metadata.namespace, devworkspaceId);
// inject the 'podman login' to the OpenShift internal registry
await podmanLogin(workspace.metadata.namespace, devworkspaceId);
} catch (e) {
console.error(e);
}
Expand Down

0 comments on commit cf049b4

Please sign in to comment.