Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get the notification for failed jobs #6

Open
aashishgoyal246 opened this issue Apr 7, 2020 · 1 comment
Open

Unable to get the notification for failed jobs #6

aashishgoyal246 opened this issue Apr 7, 2020 · 1 comment

Comments

@aashishgoyal246
Copy link

aashishgoyal246 commented Apr 7, 2020

I am getting the slack message only for the succeeded jobs not failed one. For failed one I am giving the wrong image name so that I will get notified that - (jobname) failed as @sukeesh gave in message/message.go file. I am attaching the yml file also what I am doing. Please help me in it.

Thanks.

apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: hello
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: hello
image: my-image # this image doesn't exist
args:
- /bin/sh
- -c
- date; echo Hello from the k8s cluster
restartPolicy: Never

@sukeesh
Copy link
Owner

sukeesh commented Apr 8, 2020

@aashishgoyal246
Can you please paste the output of this?

$ kubectl get jobs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants