Skip to content

feat: simplify GitLab CI template selection via annotation-based ConfigMap lookup#261

Merged
MykolaMarusenko merged 1 commit intomasterfrom
refactor-gitlabci-configuration-approach
Feb 18, 2026
Merged

feat: simplify GitLab CI template selection via annotation-based ConfigMap lookup#261
MykolaMarusenko merged 1 commit intomasterfrom
refactor-gitlabci-configuration-approach

Conversation

@SergK
Copy link
Member

@SergK SergK commented Feb 17, 2026

Replace fragile auto-discovery (gitlab-ci-{lang}-{buildtool} naming convention with fallback) with explicit user choice. Users now select a template ConfigMap at onboarding via the app.edp.epam.com/gitlab-ci-template annotation on the Codebase CR. The portal will discover available templates by listing ConfigMaps with the app.edp.epam.com/ci-template=gitlab label.

Decision rationale:

  • Auto-discovery failed for edge cases (java17 vs java21 ambiguity)
  • Explicit selection gives users clear control and transparency
  • Removes fragile naming convention coupling
  • Enables future extensibility (per-team, per-language defaults)
  • Only {{.CodebaseName}} substitution kept; Lang/BuildTool removed to prevent template surprises and keep user content literal

…igMap lookup

Replace fragile auto-discovery (gitlab-ci-{lang}-{buildtool} naming convention with
fallback) with explicit user choice. Users now select a template ConfigMap at
onboarding via the app.edp.epam.com/gitlab-ci-template annotation on the Codebase CR.
The portal will discover available templates by listing ConfigMaps with the
app.edp.epam.com/ci-template=gitlab label.

Decision rationale:
- Auto-discovery failed for edge cases (java17 vs java21 ambiguity)
- Explicit selection gives users clear control and transparency
- Removes fragile naming convention coupling
- Enables future extensibility (per-team, per-language defaults)
- Only {{.CodebaseName}} substitution kept; Lang/BuildTool removed to prevent
  template surprises and keep user content literal

Signed-off-by: Sergiy Kulanov <sergiy_kulanov@epam.com>
@SergK SergK requested a review from a team as a code owner February 17, 2026 21:15
@SergK SergK requested a review from zmotso February 18, 2026 07:58
@MykolaMarusenko MykolaMarusenko merged commit 4f04701 into master Feb 18, 2026
3 checks passed
@MykolaMarusenko MykolaMarusenko deleted the refactor-gitlabci-configuration-approach branch February 18, 2026 09:18
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.

3 participants

Comments