Skip to content

feat: add tektonDisabled field and ciTool enum validation for multi-CI#260

Merged
MykolaMarusenko merged 1 commit intomasterfrom
extend-logic-for-gitlab-ci
Feb 16, 2026
Merged

feat: add tektonDisabled field and ciTool enum validation for multi-CI#260
MykolaMarusenko merged 1 commit intomasterfrom
extend-logic-for-gitlab-ci

Conversation

@SergK
Copy link
Member

@SergK SergK commented Feb 16, 2026

Multi-CI support (Gitlab):

  • Add TektonDisabled boolean to GitServerSpec to gate EventListener/Ingress/Route creation. Allows GitServers to opt-out of Tekton infrastructure when using native CI systems (GitLab CI, GitHub Actions) or externally-managed webhooks.

  • Add enum validation (tekton|gitlab) to Codebase.Spec.CiTool. Prevents silent misconfiguration where invalid CI tool values would pass validation but provide no CI execution. Backward compatible: enum only validates on create/update, existing CRs remain valid until modified.

  • Skip Tekton pipeline name generation in CodebaseBranch.setDefaultValues when ciTool=gitlab, since GitLab CI uses .gitlab-ci.yml instead of Tekton pipelines. Avoids unnecessary API calls and generated pipeline names that would be unused.

  • Bump Tekton Triggers API version from v1alpha1 to v1beta1, aligning with operator's v0.34.0 dependency. v1alpha1 was removed in v0.28.0; v1beta1 is the stable API. No EventListener spec changes needed.

…I support

- Add TektonDisabled boolean to GitServerSpec to gate EventListener/Ingress/Route
  creation. Allows GitServers to opt-out of Tekton infrastructure when using native
  CI systems (GitLab CI, GitHub Actions) or externally-managed webhooks.

- Add enum validation (tekton|gitlab) to Codebase.Spec.CiTool. Prevents silent
  misconfiguration where invalid CI tool values would pass validation but provide
  no CI execution. Backward compatible: enum only validates on create/update,
  existing CRs remain valid until modified.

- Skip Tekton pipeline name generation in CodebaseBranch.setDefaultValues when
  ciTool=gitlab, since GitLab CI uses .gitlab-ci.yml instead of Tekton pipelines.
  Avoids unnecessary API calls and generated pipeline names that would be unused.

- Bump Tekton Triggers API version from v1alpha1 to v1beta1, aligning with
  operator's v0.34.0 dependency. v1alpha1 was removed in v0.28.0; v1beta1 is
  the stable API. No EventListener spec changes needed.

Signed-off-by: Sergiy Kulanov <sergiy_kulanov@epam.com>
@SergK SergK requested a review from a team as a code owner February 16, 2026 07:41
@SergK SergK requested a review from zmotso February 16, 2026 08:01
@MykolaMarusenko MykolaMarusenko merged commit ac1000a into master Feb 16, 2026
4 checks passed
@MykolaMarusenko MykolaMarusenko deleted the extend-logic-for-gitlab-ci branch February 16, 2026 09:01
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