From 26826f8a53dbb11ea6c316c5e304c382adb5ec18 Mon Sep 17 00:00:00 2001 From: Andy Anderson Date: Tue, 10 Mar 2026 17:32:57 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20Add=20argo:=20Add=20option=20to?= =?UTF-8?q?=20create=20one-off=20job=20from=20cron=20job=20mission?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...n-to-create-one-off-job-from-cron-job.json | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 solutions/cncf-generated/argo/argo-4116-add-option-to-create-one-off-job-from-cron-job.json diff --git a/solutions/cncf-generated/argo/argo-4116-add-option-to-create-one-off-job-from-cron-job.json b/solutions/cncf-generated/argo/argo-4116-add-option-to-create-one-off-job-from-cron-job.json new file mode 100644 index 00000000..527ddc72 --- /dev/null +++ b/solutions/cncf-generated/argo/argo-4116-add-option-to-create-one-off-job-from-cron-job.json @@ -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 -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": [] + } +}