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

Init containers always show status as "Error" when in terminated state #1778

Closed
jda258 opened this issue Mar 7, 2024 · 1 comment
Closed
Labels
bug Something isn't working frontend Issues related to the frontend

Comments

@jda258
Copy link

jda258 commented Mar 7, 2024

There probably needs to be a conditional that only sets the state to error if the return code is not 0.

label = t('translation|Error');

@illume illume added bug Something isn't working frontend Issues related to the frontend labels Jul 8, 2024
@illume
Copy link
Contributor

illume commented Jul 8, 2024

This was fixed May 29 in this PR:

      } else if (!!state.terminated) {
        stateDetails = state.terminated;
        if (state.terminated.exitCode === 0) {
          statusType = '';
          label = state.terminated.reason;
        } else {
          statusType = 'error';
          label = t('translation|Error');
        }
      }

@illume illume closed this as completed Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Issues related to the frontend
Projects
Development

Successfully merging a pull request may close this issue.

2 participants