Open
Description
Describe the bug
Unable to spawn manual jobs from cronjobs. When I click spawn I get back a green notification with 201 in the network tab yet nothing is created..
To Reproduce
Steps to reproduce the bug: (See gif)
- Navigate to cronjobs
- Select a cronjob
- Click spawn
- No error, I get back a 201 but nothing is created
Environment
- Installation type: in-cluster
- Headlamp Version: 0.31.1
Are you able to fix this issue?
No
Additional Context
I noticed in the network tab this is the request url. Is default correct here?
https://headlamp.com/clusters/main/apis/batch/v1/namespaces/default/jobs
Payload
{
"metadata": {
"creationTimestamp": null,
"namespace": "default",
"name": "rundeck-execution-log-cleanup-manual-spawn-mc0izr5i-1tb69",
"annotations": {
"cronjob.kubernetes.io/instantiate": "manual"
},
"ownerReferences": [
{
"apiVersion": "batch/v1",
"blockOwnerDeletion": true,
"controller": true,
"kind": "CronJob",
"name": "rundeck-execution-log-cleanup",
"uid": "75350968-018a-47c6-9a3b-dbdf08c94557"
}
]
},
"spec": {
"template": {
"metadata": {
"creationTimestamp": null
},
"spec": {
"volumes": [
{
"name": "rundeck-logs",
"persistentVolumeClaim": {
"claimName": "rundeck-logs"
}
}
],
"containers": [
{
"name": "log-cleanup",
"image": "busybox:1.37.0",
"command": [
"/bin/sh",
"-c",
"find /home/rundeck/var/logs/rundeck -type f -mtime +$(LOG_RETENTION_DAYS) -exec rm -f {} \\;"
],
"env": [
{
"name": "LOG_RETENTION_DAYS",
"value": "90"
}
],
"resources": {
"limits": {
"cpu": "100m",
"memory": "128Mi"
},
"requests": {
"cpu": "50m",
"memory": "64Mi"
}
},
"volumeMounts": [
{
"name": "rundeck-logs",
"mountPath": "/home/rundeck/var/logs/rundeck"
}
],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"securityContext": {
"runAsUser": 1000,
"allowPrivilegeEscalation": false
}
}
],
"restartPolicy": "OnFailure",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"securityContext": {},
"schedulerName": "default-scheduler"
}
}
},
"kind": "Job",
"apiVersion": "batch/v1"
}
Response
{
"kind": "Job",
"apiVersion": "batch/v1",
"metadata": {
"name": "rundeck-execution-log-cleanup-manual-spawn-mc0izr5i-1tb69",
"namespace": "default",
"uid": "3eaa77e2-99a5-47db-9e40-ca722cc92b20",
"resourceVersion": "235224306",
"generation": 1,
"creationTimestamp": "2025-06-17T12:55:06Z",
"labels": {
"batch.kubernetes.io/controller-uid": "3eaa77e2-99a5-47db-9e40-ca722cc92b20",
"batch.kubernetes.io/job-name": "rundeck-execution-log-cleanup-manual-spawn-mc0izr5i-1tb69",
"controller-uid": "3eaa77e2-99a5-47db-9e40-ca722cc92b20",
"job-name": "rundeck-execution-log-cleanup-manual-spawn-mc0izr5i-1tb69"
},
"annotations": {
"cronjob.kubernetes.io/instantiate": "manual"
},
"ownerReferences": [
{
"apiVersion": "batch/v1",
"kind": "CronJob",
"name": "rundeck-execution-log-cleanup",
"uid": "75350968-018a-47c6-9a3b-dbdf08c94557",
"controller": true,
"blockOwnerDeletion": true
}
],
"managedFields": [
{
"manager": "unknown",
"operation": "Update",
"apiVersion": "batch/v1",
"time": "2025-06-17T12:55:06Z",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:metadata": {
"f:annotations": {
".": {},
"f:cronjob.kubernetes.io/instantiate": {}
},
"f:ownerReferences": {
".": {},
"k:{\"uid\":\"75350968-018a-47c6-9a3b-dbdf08c94557\"}": {}
}
},
"f:spec": {
"f:backoffLimit": {},
"f:completionMode": {},
"f:completions": {},
"f:manualSelector": {},
"f:parallelism": {},
"f:podReplacementPolicy": {},
"f:suspend": {},
"f:template": {
"f:spec": {
"f:containers": {
"k:{\"name\":\"log-cleanup\"}": {
".": {},
"f:command": {},
"f:env": {
".": {},
"k:{\"name\":\"LOG_RETENTION_DAYS\"}": {
".": {},
"f:name": {},
"f:value": {}
}
},
"f:image": {},
"f:imagePullPolicy": {},
"f:name": {},
"f:resources": {
".": {},
"f:limits": {
".": {},
"f:cpu": {},
"f:memory": {}
},
"f:requests": {
".": {},
"f:cpu": {},
"f:memory": {}
}
},
"f:securityContext": {
".": {},
"f:allowPrivilegeEscalation": {},
"f:runAsUser": {}
},
"f:terminationMessagePath": {},
"f:terminationMessagePolicy": {},
"f:volumeMounts": {
".": {},
"k:{\"mountPath\":\"/home/rundeck/var/logs/rundeck\"}": {
".": {},
"f:mountPath": {},
"f:name": {}
}
}
}
},
"f:dnsPolicy": {},
"f:restartPolicy": {},
"f:schedulerName": {},
"f:securityContext": {},
"f:terminationGracePeriodSeconds": {},
"f:volumes": {
".": {},
"k:{\"name\":\"rundeck-logs\"}": {
".": {},
"f:name": {},
"f:persistentVolumeClaim": {
".": {},
"f:claimName": {}
}
}
}
}
}
}
}
}
]
},
"spec": {
"parallelism": 1,
"completions": 1,
"backoffLimit": 6,
"selector": {
"matchLabels": {
"batch.kubernetes.io/controller-uid": "3eaa77e2-99a5-47db-9e40-ca722cc92b20"
}
},
"manualSelector": false,
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"batch.kubernetes.io/controller-uid": "3eaa77e2-99a5-47db-9e40-ca722cc92b20",
"batch.kubernetes.io/job-name": "rundeck-execution-log-cleanup-manual-spawn-mc0izr5i-1tb69",
"controller-uid": "3eaa77e2-99a5-47db-9e40-ca722cc92b20",
"job-name": "rundeck-execution-log-cleanup-manual-spawn-mc0izr5i-1tb69"
}
},
"spec": {
"volumes": [
{
"name": "rundeck-logs",
"persistentVolumeClaim": {
"claimName": "rundeck-logs"
}
}
],
"containers": [
{
"name": "log-cleanup",
"image": "busybox:1.37.0",
"command": [
"/bin/sh",
"-c",
"find /home/rundeck/var/logs/rundeck -type f -mtime +$(LOG_RETENTION_DAYS) -exec rm -f {} \\;"
],
"env": [
{
"name": "LOG_RETENTION_DAYS",
"value": "90"
}
],
"resources": {
"limits": {
"cpu": "100m",
"memory": "128Mi"
},
"requests": {
"cpu": "50m",
"memory": "64Mi"
}
},
"volumeMounts": [
{
"name": "rundeck-logs",
"mountPath": "/home/rundeck/var/logs/rundeck"
}
],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"securityContext": {
"runAsUser": 1000,
"allowPrivilegeEscalation": false
}
}
],
"restartPolicy": "OnFailure",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"securityContext": {},
"schedulerName": "default-scheduler"
}
},
"completionMode": "NonIndexed",
"suspend": false,
"podReplacementPolicy": "TerminatingOrFailed"
},
"status": {}
}
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Queued