public Integer doCall() throws Exception {
        if (name == null && label == null && filePath == null) {
            printer().println("Name or label selector must be set");
            return 1;
        }

        if (label == null) {
            String projectName;
            if (name != null) {
                projectName = KubernetesHelper.sanitize(name);
            } else {
                projectName = KubernetesHelper.sanitize(FileUtil.onlyName(SourceScheme.onlyName(filePath)));
            }

            label = "%s=%s".formatted(BaseTrait.INTEGRATION_LABEL, projectName);
        }

        String[] parts = label.split("=", 2);
        if (parts.length != 2) {
            printer().println("--label selector must be in syntax: key=value");
        }

        boolean shouldResume = true;
        int resumeCount = 0;
        while (shouldResume) {
            shouldResume = watchLogs(parts[0], parts[1], container, resumeCount);
            resumeCount++;
        }

        return 0;
    }
@Test
    public void shouldHandlePodNotFound() throws Exception {
        PodLogs command = createCommand();
        command.name = "mickey-mouse";
        command.maxWaitAttempts = 2; // total timeout of 4 seconds
        command.doCall();

        Assertions.assertTrue(
                printer.getOutput().contains("Pod for label camel.apache.org/integration=mickey-mouse not available"));
    }