Saw a job that the controller did not create or forgot

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Hi
I have a cronjob

`apiVersion: batch/v1`
`kind: CronJob`
`metadata:`
`  name: app-hpa`
`  namespace: prod`
`spec:`
`  schedule: "30 03 * * *"`
`  jobTemplate:`
`    spec:`
`      template:`
`        spec:`
`          serviceAccountName: scale-sa`
`          containers:`
`          - name: update-hpa`
`            image: bitnami/kubectl:latest`
`            command:`
`            - /bin/sh`
`            - -c`
`            - |`
`              kubectl patch hpa app-hpa -p '{"spec":{"minReplicas":2}}'`
`          restartPolicy: OnFailure`

i am having error
Saw a job that the controller did not create or forgot
Kubernetes version:
v1.29.7-eks-2f46c53
Cloud being used: (put bare-metal if not on a public cloud)
AWS
Installation method:
Host OS:
NAME=“Amazon Linux”
VERSION=“2”
ID=“amzn”
ID_LIKE=“centos rhel fedora”
VERSION_ID=“2”
PRETTY_NAME=“Amazon Linux 2”
ANSI_COLOR=“0;33”
CPE_NAME=“cpe:2.3:o:amazon:amazon_linux:2”
HOME_URL=“https://amazonlinux.com/
SUPPORT_END=“2025-06-30”
CNI and version:
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.

I got the answer, it was just a warning not an error, the controller just did not recognize the manual trigger. Job executed successfully.

1 Like

:slight_smile: thanks for letting us know