-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix: Match cli display pod names with k8s. Fixes #7646 #7653
Conversation
Signed-off-by: J.P. Zivalich <jp@pipekit.io>
Signed-off-by: J.P. Zivalich <jp@pipekit.io>
Signed-off-by: J.P. Zivalich <jp@pipekit.io>
Signed-off-by: J.P. Zivalich <jp@pipekit.io>
test/e2e/fixtures/then.go
Outdated
@@ -86,9 +87,15 @@ func (t *Then) ExpectWorkflowNode(selector func(status wfv1.NodeStatus) bool, f | |||
if n != nil { | |||
_, _ = fmt.Println("Found node", "id="+n.ID, "type="+n.Type) | |||
if n.Type == wfv1.NodeTypePod { | |||
version := util.PodNameV1 | |||
annotations := metadata.GetAnnotations() | |||
if annotations[common.AnnotationKeyPodNameVersion] == util.PodNameV2.String() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reuse GetWorkflowPodNameVersion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about it but didn't have a workflow object. Would you recommend building one using the metadata variable, or just leaving as is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think creating a workflow object would be better to reduce code redundancy and make it easier later when we start removing v1 pod name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. I'll make the switch
Signed-off-by: J.P. Zivalich <jp@pipekit.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* fix: Match cli display pod names with k8s. Fixes #7646 Signed-off-by: J.P. Zivalich <jp@pipekit.io> * fix: Remove stray console statement Signed-off-by: J.P. Zivalich <jp@pipekit.io> * fix: Factor out pod name version in pod names fn Signed-off-by: J.P. Zivalich <jp@pipekit.io> * refactor: Use GetPodNameVersion in tests Signed-off-by: J.P. Zivalich <jp@pipekit.io> * refactor: Use wf object in test fixture Signed-off-by: J.P. Zivalich <jp@pipekit.io>
This PR:
POD_NAMES
environment variable isn't presentSigned-off-by: J.P. Zivalich jp@pipekit.io