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

[BUG] PodTemplate not found #1051

Open
1 task
lifehacking opened this issue Jul 10, 2024 · 2 comments
Open
1 task

[BUG] PodTemplate not found #1051

lifehacking opened this issue Jul 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@lifehacking
Copy link

Version of Eraser

v1.3.0 v1.3.1

Expected Behavior

{
"level": "error",
"ts": 1720611468.0140839,
"msg": "Reconciler error",
"controller": "imagejob-controller",
"object": {
"name": "imagejob-v6nfd"
},
"namespace": "",
"name": "imagejob-v6nfd",
"reconcileID": "7cc076fc-9d84-40ab-ade2-fea930aa5a6d",
"error": "reconcile new: PodTemplate "imagejob-v6nfd" not found",
"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.1/pkg/internal/controller/controller.go:329\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.1/pkg/internal/controller/controller.go:274\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.1/pkg/internal/controller/controller.go:235"
} {
"level": "info",
"ts": 1720611468.0144374,
"logger": "controller",
"msg": "creating imagejob",
"process": "imagelist-controller",
"job": "imagejob-v6nfd"
}

Actual Behavior

No response

Steps To Reproduce

k8s version:1.26
earser:helm deploy,v1.3.0 v1.3.1

kubectl apply -f test.yaml

apiVersion: eraser.sh/v1
kind: ImageList
metadata:
name: imagelist
spec:
images:
- query.com/eraser/alpine:3.7.3

kubectl describe ImageList imagelist

Name: imagelist
Namespace:
Labels:
Annotations:
API Version: eraser.sh/v1
Kind: ImageList
Metadata:
Creation Timestamp: 2024-07-10T11:34:05Z
Generation: 1
Managed Fields:
API Version: eraser.sh/v1
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
...
Resource Version: 214567030
UID: 6cea9078-c050-4d1b-a4b7-79280f94dee2
Spec:
Images:
query.com/eraser/alpine:3.7.3
Status:
Failed: 0
Skipped: 0
Success: 4
Timestamp: 2024-07-10T11:34:10Z
Events:

Are you willing to submit PRs to contribute to this bug fix?

  • Yes, I am willing to implement it.
@lifehacking lifehacking added the bug Something isn't working label Jul 10, 2024
@ashnamehrotra
Copy link
Contributor

@lifehacking would you be able to share your test.yaml file and the helm deploy command used to install?

@lifehacking
Copy link
Author

apiVersion: eraser.sh/v1
kind: ImageList
metadata:
name: imagelist
spec:
images:

  • query.com/eraser/alpine:3.7.3

test.yaml

apiVersion: eraser.sh/v1
kind: ImageList
metadata:
name: imagelist
spec:
images:

  • query.com/eraser/alpine:3.7.3

helm deploy

helm upgrade --install -n eraser eraser ./eraser

./eraser from helm chart unzip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants