def get_from_string(cls, string_phase):
        """
        Convert string value obtained from k8s API to PodPhase enum value
        :param string_phase: str, phase value from Kubernetes API
        :return: PodPhase
        """

        if string_phase == 'Pending':
            return cls.PENDING
        elif string_phase == 'Running':
            return cls.RUNNING
        elif string_phase == 'Succeeded':
            return cls.SUCCEEDED
        elif string_phase == 'Failed':
            return cls.FAILED
        elif string_phase == 'Unknown':
            return cls.UNKNOWN

        return cls.UNKNOWN