Skip to content

feat: delete session Ingress on hibernation - #1190

Open
sgaist wants to merge 7 commits into
mainfrom
feat/delete-ingress-when-hibernated
Open

feat: delete session Ingress on hibernation#1190
sgaist wants to merge 7 commits into
mainfrom
feat/delete-ingress-when-hibernated

Conversation

@sgaist

@sgaist sgaist commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Describe your changes

This PR implements the removal of hibernated session Ingress.

Once the session is reactivated, the Ingress will be recreated.

Links and tickets

Fixes #1036


/deploy

sgaist added 4 commits July 23, 2026 20:39
There is no reason to keep it alive while the session
is unreachable anyway.

It will be recreated when the session resumes.
Sometimes the awakening the session fails because the
update clashes with changes that have happened through
the operator. Simply update and retry.
Only one of them makes sense at a time. This reduces
the number of reconciliation happening.
@sgaist
sgaist requested review from a team and olevski as code owners July 24, 2026 11:59
@sgaist
sgaist requested a review from leafty July 24, 2026 14:14
olevski
olevski previously approved these changes Jul 24, 2026

@leafty leafty left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should deploy and test before merging.

@RenkuBot

Copy link
Copy Markdown
Contributor

You can access the deployment of this PR at https://renku-ci-am-1190.dev.renku.ch

@leafty leafty left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may need to update the rbac here:

2026-07-30T13:45:26Z	ERROR	Reconciler error	{"controller": "amaltheasession", "controllerGroup": "amalthea.dev", "controllerKind": "AmaltheaSession", "AmaltheaSession": {"name":"flora-thieba-b5c436075d08","namespace":"renku-ci-am-1190"}, "namespace": "renku-ci-am-1190", "name": "flora-thieba-b5c436075d08", "reconcileID": "0b7948c8-081f-4671-be9d-2cc25ebccc1a", "error": "error in reconciling children Ingress: ingresses.networking.k8s.io \"flora-thieba-b5c436075d08\" is forbidden: User \"system:serviceaccount:renku-ci-am-1190:renku-ci-am-1190-amalthea-sessions-controller-manager\" cannot delete resource \"ingresses\" in API group \"networking.k8s.io\" in the namespace \"renku-ci-am-1190\""}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:353
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:300
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.1
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:202

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

Successfully merging this pull request may close these issues.

Remove the ingress when a session is paused

4 participants