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

ui: getPodName is using v1 by default #11015

Closed
3 tasks done
or-shachar opened this issue Apr 30, 2023 · 1 comment · Fixed by #11016
Closed
3 tasks done

ui: getPodName is using v1 by default #11015

or-shachar opened this issue Apr 30, 2023 · 1 comment · Fixed by #11016
Labels

Comments

@or-shachar
Copy link
Contributor

Pre-requisites

  • I have double-checked my configuration
  • I can confirm the issues exists when I tested with :latest
  • I'd like to contribute the fix myself (see contributing guide)

What happened/what you expected to happen?

I noticed that for some workflows the podName is wrongfully set as the nodeID (which is the v1 format).

This resulted in bad log streaming for running templates. (I thought it was related to #10124 but I think it's a pure UI issue).

Looking at the ts code I saw this condition:

if (version === POD_NAME_V2 && templateName !== '') {

The version here is taken straight from the direct annotation of the workflow:

I think that after cc9d14c we should change the condition so that v2 would be used by default also for UI.

Version

v3.4.5

Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.

{
  "metadata": {
    "name": "fantastic-rhino",
    "namespace": "argo-workflows",
    "labels": {
      "example": "true"
    }
  },
  "spec": {
    "arguments": {
      "parameters": [
        {
          "name": "message",
          "value": "hello argo"
        }
      ]
    },
    "entrypoint": "argosay",
    "templates": [
      {
        "name": "argosay",
        "inputs": {
          "parameters": [
            {
              "name": "message",
              "value": "{{workflow.parameters.message}}"
            }
          ]
        },
        "container": {
          "name": "main",
          "image": "argoproj/argosay:v2",
          "command": [
            "/argosay"
          ],
          "args": [
            "echo",
            "{{inputs.parameters.message}}"
          ]
        }
      }
    ],
    "ttlStrategy": {
      "secondsAfterCompletion": 300
    },
    "podGC": {
      "strategy": "OnPodCompletion"
    }
  }
}

Logs from the workflow controller

Irrelevant

Logs from in your workflow's wait container

Irrelevant
@juliev0
Copy link
Contributor

juliev0 commented May 4, 2023

@JPZ13 can you take a look?

@juliev0 juliev0 added the P3 Low priority label May 4, 2023
terrytangyuan pushed a commit that referenced this issue May 12, 2023
terrytangyuan pushed a commit that referenced this issue May 25, 2023
JPZ13 pushed a commit to pipekit/argo-workflows that referenced this issue Jul 4, 2023
dpadhiar pushed a commit to dpadhiar/argo-workflows that referenced this issue May 9, 2024
) (argoproj#11016)

Signed-off-by: or-shachar <or.shachar@wiz.io>
Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants