Repository navigation
Labels
priority/p3-lowPriority P3: a small improvementscope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/bugType bug: the code does not do what it must
Description
devops k8s teardown-stack stops at its first step, before it removes anything, when an object it deletes after the Helm releases has no CRD in the cluster.
Evidence
_delete_post_helm_paths(src/devops_cli/commands/k8s/stack_lifecycle.py) runskubectl delete -f <file> --ignore-not-foundthrough_run_cmdwith the defaultcheck=True.--ignore-not-founddoes not cover a missing CRD: against an API server that serves noargoproj.iogroup,kubectl delete -f k8s/argo-workflows/workflowtemplate-version.yaml --ignore-not-foundexits 1 withno matches for kind "WorkflowTemplate" ... ensure CRDs are installed first.- feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 registers that WorkflowTemplate in
_POST_HELM_BY_STACK["infra"], next to thellmServiceMonitor entry from fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367, which behaves the same way. On a cluster where the CRD never arrived (an infra stack deployed before the chart, or a deploy that failed beforeargo-workflowsinstalled),teardown-stack --stack infra(orall) raises at step 1 and removes no manifest, Helm release or namespace. The deploy side swallows the matching failure (check=False), so a missing CRD is silent there. - The path does not run on a cluster Argo CD manages:
teardown-stackrefuses there.
Proposed remedy
Skip a post-Helm path whose kind the cluster does not serve, by asking the cluster for that kind (the file's apiVersion and kind against kubectl api-resources), instead of catching the error. Report the skipped path, and report a deploy-side apply that failed for the same reason.
Metadata
Metadata
Assignees
Labels
priority/p3-lowPriority P3: a small improvementscope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsIn Review
Activity
dan-petty commentedon Oct 24, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The issue causes teardown-stack to fail and not clean up resources properly, affecting operations.Fixing this allows proper stack teardown when CRDs are missing, improving system reliability.Requires checking API resources before deletion and skipping paths, which adds logic complexity.Both items relate to Argo Workflows and post-Helm deletes, but the candidate fixes teardown-stack while #1535 adds WorkflowTemplate to the post-Helm list.fix(k8s): skip post-Helm deletes whose CRD is not installed
fix(k8s): skip post-Helm deletes whose CRD is not installed
chore(main): release 0.6.4 (#2303)