Skip to content

feat: add renku-ci-cleanup chart#13

Open
wesjdj wants to merge 18 commits into
mainfrom
add-ci-deployment-cleanup
Open

feat: add renku-ci-cleanup chart#13
wesjdj wants to merge 18 commits into
mainfrom
add-ci-deployment-cleanup

Conversation

@wesjdj

@wesjdj wesjdj commented Jul 15, 2025

Copy link
Copy Markdown

Adds automated cleanup of old CI deployments via a Kubernetes CronJob.

Added in-cluster config support to rdu, and --yes flag to skip confirmation prompts. Both changes make rdu easier for the CronJob to use.

@wesjdj wesjdj force-pushed the add-ci-deployment-cleanup branch from 7653acf to 232e567 Compare July 15, 2025 11:15
@wesjdj wesjdj marked this pull request as ready for review July 15, 2025 11:59
@wesjdj wesjdj requested a review from leafty July 15, 2025 11:59

@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.

Some minor comments here:

Comment thread .github/workflows/docker-build.yml Outdated
Comment thread ci-deployment-cleanup/helm-chart/templates/configmap.yaml
@leafty

leafty commented Aug 6, 2025

Copy link
Copy Markdown
Member

@wesjdj feel free to merge this

if [ "$ENFORCE_NAME_PATTERNS" = "true" ]; then
for pattern in $NAMESPACE_PATTERNS; do
debug_log "Testing pattern: $pattern"
if [[ "$namespace" =~ $pattern ]]; then

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.

this doesn't work for lookahead regex patterns like ^renku-ci-(?!cleanup).* so we should make sure not to use those

@wesjdj wesjdj requested a review from leafty December 8, 2025 09:56
@olevski

olevski commented Jun 15, 2026

Copy link
Copy Markdown
Member

We dont have to use this here or address this at all. Just fyi that all ci deployment namespaces now have the label renku.io/ci-deployment: "true" . So you could use that instead of a regex. But I don't want to complicate things, please feel free to ignore this.

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.

4 participants