Skip to content
Closed
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-4116-add-option-to-create-one-off-job-from-cron-job",
"missionClass": "solution",
"author": "KubeStellar Bot",
"authorGithub": "kubestellar",
"mission": {
"title": "argo: Add option to create one-off job from cron job",
"description": "Add option to create one-off job from cron job. This issue affects 163+ users.",
"type": "feature",
"status": "completed",
"steps": [
{
"title": "Identify argo feature symptoms",
"description": "Check for the issue in your argo deployment:\n```bash\nkubectl get pods -n argo -l app=argo\nkubectl logs -l app.kubernetes.io/name=argo -n argo --tail=100 | grep -i error\n```\nLook for errors related to: Add option to create one-off job from cron job"
},
{
"title": "Check current Deployment configuration",
"description": "Inspect the relevant argo resources:\n```bash\nkubectl get deployment -A\nkubectl describe deployment <name> -n argo\n```\nAdd a button to create a one-off job from a cron job."
},
{
"title": "Apply the fix for Add option to create one-off job from cron job",
"description": "@muenchdo @genslein \nBasically, the result of performing a \"kubectl create job --from=cronjob/foo foo\" is : k8s creating a job resource immediately.\nThe job manifest is yet another k8s resource.\n\nMy suggestion: handling the imperative \"kubectl create\" result as a declarative representation of this\n```yaml\napiVersion: batch/v1\r\nkind: CronJob\r\nmetadata:\r\n ...\n```"
},
{
"title": "Confirm Add option to create one-off job from cron job is resolved",
"description": "Verify the fix by checking that the original error no longer occurs:\n```bash\nkubectl logs -l app.kubernetes.io/name=argo -n argo --tail=50 --since=5m\nkubectl get events -n argo --sort-by='.lastTimestamp' | tail -10\n```\nConfirm that the issue symptoms are gone."
}
],
"resolution": {
"summary": "The root cause is: @muenchdo @genslein \nBasically, the result of performing a \"kubectl create job --from=cronjob/foo foo\" is : k8s creating a job resource immediately.\nThe job manifest is yet another k8s resource.\n\nMy suggestion: handling the imperative \"kubectl create\" result as a declarative representation of this one-time job resource and dealing with it in a regular GitOps way.\n\nCan the following work for.",
"codeSnippets": [
"apiVersion: batch/v1\r\nkind: CronJob\r\nmetadata:\r\n ...",
"apiVersion: batch/v1\r\nkind: Job\r\nmetadata:\r\n ...",
"{\r\n \"error\": \"rpc error: code = NotFound desc = the server could not find the requested resource\",\r\n \"grpc.code\": \"NotFound\",\r\n \"grpc.method\": \"RunResourceAction\",\r\n \"grpc.service\": \"application.ApplicationService\",\r\n \"grpc.start_time\": \"2022-12-01T14:03:32Z\",\r\n \"grpc.time_ms\": 35.879,\r\n \"level\": \"info\",\r\n \"msg\": \"finished unary call with code NotFound\",\r\n \"span.kind\": \"server\",\r\n \"system\": \"grpc\",\r\n \"time\": \"2022-12-01T14:03:32Z\"\r\n}"
]
}
},
"metadata": {
"tags": [
"argo",
"graduated",
"app-definition",
"feature"
],
"cncfProjects": [
"argo"
],
"targetResourceKinds": [
"Deployment",
"Cronjob",
"Job"
],
"difficulty": "advanced",
"issueTypes": [
"feature"
],
"maturity": "graduated",
"sourceUrls": {
"issue": "https://github.com/argoproj/argo-cd/issues/4116",
"repo": "https://github.com/argoproj/argo-cd"
},
"reactions": 163,
"comments": 52,
"synthesizedBy": "copilot"
},
"prerequisites": {
"kubernetes": ">=1.24",
"tools": [
"kubectl"
],
"description": "A running Kubernetes cluster with argo installed or the issue environment reproducible."
},
"security": {
"scannedAt": "2026-03-10T21:32:57.354Z",
"scannerVersion": "cncf-gen-3.0.0",
"sanitized": true,
"findings": []
}
}
Loading