Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"version": "kc-mission-v1",
"name": "argo-workflows-1319-add-taskname-to-the-workflow-pod-s-name",
"missionClass": "solution",
"author": "KubeStellar Bot",
"authorGithub": "kubestellar",
"mission": {
"title": "argo-workflows: Add taskname to the workflow pod's name",
"description": "Add taskname to the workflow pod's name. Requested by 33+ users.",
"type": "feature",
"status": "completed",
"steps": [
{
"title": "Check current argo-workflows deployment",
"description": "Verify your argo-workflows version and configuration:\n```bash\nkubectl get pods -n argo-workflows -l app.kubernetes.io/name=argo-workflows\nhelm list -n argo-workflows 2>/dev/null || echo \"Not installed via Helm\"\n```\nThis feature requires a working argo-workflows installation."
},
{
"title": "Review argo-workflows configuration",
"description": "Inspect the relevant argo-workflows configuration:\n```bash\nkubectl get all -n argo-workflows -l app.kubernetes.io/name=argo-workflows\nkubectl get configmap -n argo-workflows -l app.kubernetes.io/part-of=argo-workflows\n```\nCurrently, workflow pods get random hashed names that make it hard to identify which task a pod is running. Adding the task name to the pod name makes tracking and debugging much easier."
},
{
"title": "Apply the fix for Add taskname to the workflow pod's name",
"description": "Enable task name inclusion in pod names. After this change, pod names include the task name for easier identification:\n```bash\n# Before: pods have random hashed names\n# wf-install-1938236639\n# After: pods include the task name\n# wf-install-db-init-3464818\n# wf-install-setup-host-3672310916\nkubectl get pods -n argo-workflows -l workflows.argoproj.io/workflow\n```"
},
{
"title": "Verify the feature works",
"description": "Test that the new capability is working as expected:\n```bash\nkubectl get pods -n argo-workflows -l app.kubernetes.io/name=argo-workflows\nkubectl get events -n argo-workflows --sort-by='.lastTimestamp' | tail -10\n```\nConfirm the feature described in \"Add taskname to the workflow pod's name\" is functioning correctly."
}
],
"resolution": {
"summary": "Added the task name to the workflow pod name, making it easier to identify which pod is performing which task. Pod names now follow the pattern: workflow-name-task-name-hash.",
"codeSnippets": [
"NAME READY STATUS RESTARTS AGE\nwf-install-1938236639 0/1 Completed 0 16s\nwf-install-3464818 0/2 Completed 0 23s\nwf-install-3672310916 0/2 Completed 0 23s\nwf-install-376633117 0/2 Completed 0 23s",
"NAME READY STATUS RESTARTS AGE\nwf-install-1938236639 0/1 Completed 0 16s\nwf-install-db-init-3464818 0/2 Completed 0 23s\nwf-install-setup-host-3672310916 0/2 Completed 0 23s\nwf-install-send-email-376633117 0/2 Completed 0 23s",
"[workflow-controller-6d9959f4b7-kgqp5] time=\"2020-10-21T17:39:45Z\" level=info msg=\"Created pod: steps-c92g4[0].hello1 (steps-c92g4-146450447)\" namespace=workflows workflow=steps-c92g4"
]
}
},
"metadata": {
"tags": [
"argo-workflows",
"graduated",
"app-definition",
"feature"
],
"cncfProjects": [
"argo-workflows"
],
"targetResourceKinds": [
"Pod"
],
"difficulty": "intermediate",
"issueTypes": [
"feature"
],
"maturity": "graduated",
"sourceUrls": {
"issue": "https://github.com/argoproj/argo-workflows/issues/1319",
"repo": "https://github.com/argoproj/argo-workflows",
"pr": "https://github.com/argoproj/argo-workflows/pull/1320"
},
"reactions": 33,
"comments": 10,
"synthesizedBy": "copilot"
},
"prerequisites": {
"kubernetes": ">=1.24",
"tools": [
"kubectl",
"argo"
],
"description": "A running Kubernetes cluster with argo-workflows installed or the issue environment reproducible."
},
"security": {
"scannedAt": "2026-03-12T06:20:00.008Z",
"scannerVersion": "cncf-gen-3.0.0",
"sanitized": true,
"findings": []
}
}
Loading