feat: Add template node to pod name. Fixes #1319#6712
feat: Add template node to pod name. Fixes #1319#6712alexec merged 15 commits intoargoproj:masterfrom
Conversation
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #6712 +/- ##
==========================================
+ Coverage 48.57% 48.67% +0.10%
==========================================
Files 262 264 +2
Lines 18991 19080 +89
==========================================
+ Hits 9224 9287 +63
- Misses 8739 8750 +11
- Partials 1028 1043 +15
Continue to review full report at Codecov.
|
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
docs/environment-variables.md
Outdated
| | `RETRY_BACKOFF_STEPS` | `int` | `5` | The retry backoff steps when retrying API calls. | | ||
| | `RETRY_HOST_NAME_LABEL_KEY` | `string` | `kubernetes.io/hostname` | The label key for host name used when retrying templates. | | ||
| | `TRANSIENT_ERROR_PATTERN` | `string` | `""` | The regular expression that represents additional patterns for transient errors. | | ||
| | `USE_LEGACY_POD_NAMES` | `bool` | `false` | Whether to have pod names contain the template name (false) or be the node id (true). | |
There was a problem hiding this comment.
how about POD_NAMES=v1 default is v2
| testNodePodExists(t, woc) | ||
| } | ||
|
|
||
| func testNodePodExists(t *testing.T, woc *wfOperationCtx) { |
workflow/controller/workflowpod.go
Outdated
| }, | ||
| Annotations: map[string]string{ | ||
| common.AnnotationKeyNodeName: nodeName, | ||
| common.AnnotationKeyNodeID: nodeID, // TODO - test annotation is applied |
workflow/util/util.go
Outdated
| } | ||
|
|
||
| // PodName return a deterministic pod name | ||
| func PodName(workflowName, nodeName, templateName, nodeID string) string { |
There was a problem hiding this comment.
please put this func into own file
workflow/util/util_test.go
Outdated
| } | ||
| } | ||
|
|
||
| func TestPodName(t *testing.T) { |
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
|
LGTM. Passing to @sarabala1979 for him to review. |
|
@sarabala1979 I'm going to assume you're lack of reply means you are not able to review this. I'll merge. |
Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com> Signed-off-by: kriti-sc <kathuriakriti1@gmail.com>
Signed-off-by: kriti-sc <kathuriakriti1@gmail.com>
|
I am using v3.2.8 and not seeing this behaviour. |
This PR is a continuation of Alex's PoC #6647 that fixes #1319. It:
USE_LEGACY_POD_NAMESis set to trueSample terminal output: