Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion deploy/clowdapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ objects:
clowder.redhat.com/expected-image-tag: ${IMAGE_TAG}
labels:
app: patchman
generateName: db-migration-
name: db-migration-${IMAGE_TAG}-${CJI_UID}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

issue (bug_risk): Including IMAGE_TAG in the resource name risks invalid characters or excessive length for Kubernetes object names.

Kubernetes names must be DNS-1123 compliant and ≤253 chars, but IMAGE_TAG values often contain :// (e.g. quay.io/...:1.2.3), which would make this name invalid and long tags could exceed the limit. Please either sanitize/slugify IMAGE_TAG before using it here (e.g. drop the repo part and replace invalid chars) or derive a shorter, valid identifier (e.g. a hash).

spec:
appName: patchman
runOnNotReady: true
Expand Down Expand Up @@ -772,6 +772,10 @@ parameters:

# DB migration
- {name: DB_MIGRATION_DISABLED, value: 'false'} # Disable db-migration job execution
- name: CJI_UID
description: Unique db-migration CJI name suffix
generate: expression
from: '[a-z0-9]{6}'
# VMaaS sync
- {name: VMAAS_SYNC_SCHEDULE, value: '*/5 * * * *'} # Cronjob schedule definition
- {name: VMAAS_SYNC_SUSPEND, value: 'false'} # Disable cronjob execution
Expand Down
Loading