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

Template Controller Pod throws exception when ObjectTemplate removed from K8sCustom Resources during Reconciliation #3

Open
MarkCupitt opened this issue Mar 3, 2023 · 0 comments

Comments

@MarkCupitt
Copy link

Operating system
Ubuntu 22.04

Kluctl Version
latest

Kubernetes Version
V26

kubectl Version
2.19.2

Bug description
Delete ObjectTemplate from Cluster

Steps to reproduce
APply an ObjectTemplate, then Delete it

Not a Severe bug

Also, Template controller deployed in debug mode currently

Relevant log output

2023-03-03T08:30:00Z	DEBUG	Starting reconcile	{"controller": "objecttemplate", "controllerGroup": "templates.kluctl.io", "controllerKind": "ObjectTemplate", "ObjectTemplate": {"name":"postgres-secret-transformer-roundcube","namespace":"mailserver"}, "namespace": "mailserver", "name": "postgres-secret-transformer-roundcube", "reconcileID": "22f73e51-aebb-4600-ae29-0608a9f37807"}
2023-03-03T08:30:00Z	ERROR	Get failed	{"controller": "objecttemplate", "controllerGroup": "templates.kluctl.io", "controllerKind": "ObjectTemplate", "ObjectTemplate": {"name":"postgres-secret-transformer-roundcube","namespace":"mailserver"}, "namespace": "mailserver", "name": "postgres-secret-transformer-roundcube", "reconcileID": "22f73e51-aebb-4600-ae29-0608a9f37807", "error": "ObjectTemplate.templates.kluctl.io \"postgres-secret-transformer-roundcube\" not found"}
github.com/kluctl/template-controller/controllers.(*ObjectTemplateReconciler).Reconcile
	/home/runner/work/template-controller/template-controller/controllers/objecttemplate_controller.go:72
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
	/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.0/pkg/internal/controller/controller.go:122
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
	/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.0/pkg/internal/controller/controller.go:323
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.0/pkg/internal/controller/controller.go:274
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.0/pkg/internal/controller/controller.go:235
2023-03-03T08:30:00Z	DEBUG	Finished reconcile	{"controller": "objecttemplate", "controllerGroup": "templates.kluctl.io", "controllerKind": "ObjectTemplate", "ObjectTemplate": {"name":"postgres-secret-transformer-roundcube","namespace":"mailserver"}, "namespace": "mailserver", "name": "postgres-secret-transformer-roundcube", "reconcileID": "22f73e51-aebb-4600-ae29-0608a9f37807", "err": null}
2023-03-03T08:30:19Z	DEBUG	Starting reconcile	{"controller": "objecttemplate", "controllerGroup": "te
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

1 participant