Skip to content

chore: remove TektonConfig patching - #1046

Merged
pdettori merged 2 commits into
rossoctl:mainfrom
Ygnas:tekton
Mar 19, 2026
Merged

pdettori merged 2 commits into
rossoctl:mainfrom
Ygnas:tekton

Conversation

@Ygnas

@Ygnas Ygnas commented Mar 18, 2026 •

Copy link
Copy Markdown
Contributor

TektonConfig patching (SCC defaults, set-security-context, pruner) is now handled by kagenti-operator's TektonConfigReconciler. The installer only needs to wait for TektonConfig to be Ready before proceeding with the OpenShift Builds operator (Shipwright) deployment.

Some auto formatting happened as well not sure if that should stay.
The patching was moved to the operator already was just waiting for the new operator release.

Summary

Related issue(s)

(Optional) Testing Instructions

Fixes #

@pdettori

Copy link
Copy Markdown
Member

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Mar 18, 2026
@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @pdettori
Commit: 12fc6e226fafb744f35860547f8de9671b61bae9
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: 12fc6e226fafb744f35860547f8de9671b61bae9
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Mar 18, 2026
@github-actions

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: 62ba0f2

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

Ygnas added 2 commits March 18, 2026 21:03
TektonConfig patching (SCC defaults, set-security-context, pruner) is
now handled by kagenti-operator's TektonConfigReconciler. The installer
only needs to wait for TektonConfig to be Ready before proceeding with
the OpenShift Builds operator (Shipwright) deployment.

Signed-off-by: Ignas Baranauskas <[email protected]>
The TektonConfig wait was running before the kagenti chart was deployed,
but since the TektonConfig patching is now handled by kagenti-operator's
TektonConfigReconciler, the operator needs to be running first. Move the
wait block to after the kagenti chart install, where `wait: true`
ensures
the operator deployment is Ready before the TektonConfig wait begins.

Signed-off-by: Ignas Baranauskas <[email protected]>
@Ygnas Ygnas changed the title chore: bump kagenti-operator to 0.2.0-alpha.22 and remove TektonConfig patching chore: remove TektonConfig patching Mar 18, 2026

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

Clean, well-scoped removal. The installer correctly delegates TektonConfig patching to the operator and moves the readiness wait to after the kagenti chart install (so the operator is running before the wait begins). Diagnostics rescue block is preserved verbatim. YAML indentation fixes are correct Ansible style.

Areas reviewed: Ansible/YAML, commit conventions, CI, sequencing logic
Commits: 2 commits, both signed off ✅
CI: All checks passing, including full Deploy & Test ✅


Nit — PR description cleanup: the ## Summary section is empty and the template boilerplate (big PR title requirements block) is still in the body.

Suggestion — operator version dependency: the new wait block implicitly assumes the deployed operator version includes TektonConfigReconciler. Worth a comment like:

# Requires kagenti-operator >= 0.2.0-alpha.X (TektonConfigReconciler)

Makes the implicit dependency explicit for future upgrades/rollbacks.

@pdettori
pdettori merged commit 9a01a29 into rossoctl:main Mar 19, 2026
19 checks passed
Ladas added a commit to Ladas/kagenti that referenced this pull request Mar 19, 2026
PR rossoctl#1046 moved TektonConfig SCC patching to the kagenti-operator's
TektonConfigReconciler. However, on fresh HyperShift clusters the
operator reconciler doesn't patch fast enough — TektonConfig stays
in Unknown state and Shipwright never deploys (no pods in
openshift-pipelines namespace).

Restore the minimal SCC patch (default: pipelines-scc, set-security-
context: true) as a workaround before the Shipwright wait step.

TODO: Remove once the operator reconciler is confirmed reliable.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants