Skip to content

🧹 remove admission controller#1336

Merged
chris-rock merged 5 commits into
mainfrom
chris-rock/remove-admission-controller
Jan 26, 2026
Merged

🧹 remove admission controller#1336
chris-rock merged 5 commits into
mainfrom
chris-rock/remove-admission-controller

Conversation

@chris-rock
Copy link
Copy Markdown
Member

Why Was Admission Scanning Removed?

The admission controller was removed to simplify the operator and reduce operational complexity:

  1. TLS Certificate Management: The admission webhook required managing TLS certificates, either through cert-manager or OpenShift's service serving certificates. This added significant operational burden.

  2. Pipeline-Based Scanning Is More Effective: Policy enforcement belongs in the CI/CD pipeline, before workloads are deployed. This provides faster feedback to developers and prevents policy violations earlier in the development cycle.

  3. Reduced Attack Surface: Removing the webhook reduces the operator's attack surface and eliminates a potential point of failure in the Kubernetes API server request path.

@chris-rock chris-rock force-pushed the chris-rock/remove-admission-controller branch from d91cb72 to 50b9a79 Compare January 22, 2026 09:33
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 22, 2026

Test Results

  5 files  +  3   48 suites  +46   34m 3s ⏱️ + 33m 44s
259 tests +258  259 ✅ +259  0 💤 ±0  0 ❌  - 1 
274 runs  +272  274 ✅ +274  0 💤 ±0  0 ❌  - 2 

Results for commit 1561316. ± Comparison against base commit 6665c85.

♻️ This comment has been updated with latest results.

@github-actions

This comment has been minimized.

@tas50
Copy link
Copy Markdown
Member

tas50 commented Jan 23, 2026

If we're going to remove this we need to think through how this would work since the integration includes the setup

@chris-rock
Copy link
Copy Markdown
Member Author

We just remove the flag in the integration, has not been used anyway.

@chris-rock chris-rock force-pushed the chris-rock/remove-admission-controller branch from e633c7e to be905c1 Compare January 23, 2026 19:20
@chris-rock chris-rock force-pushed the chris-rock/remove-admission-controller branch from 258f757 to 5c90930 Compare January 26, 2026 06:07
- Add DeprecatedAdmission and DeprecatedCertificateProvisioning types to CRD
  to accept existing configs with admission settings without errors
- Add cleanupOrphanedAdmissionResources() to automatically remove leftover
  admission resources (webhook, deployment, service, secret)
- Update migration guide with automatic cleanup documentation

This ensures smooth upgrades from versions that had admission webhooks enabled.
The deprecated admission field is ignored but accepted, and any orphaned
resources are automatically cleaned up.
@chris-rock chris-rock force-pushed the chris-rock/remove-admission-controller branch from 5c90930 to 1561316 Compare January 26, 2026 06:29
Copy link
Copy Markdown
Member

@imilchev imilchev left a comment

Choose a reason for hiding this comment

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

LGTM!

@chris-rock chris-rock merged commit df81e34 into main Jan 26, 2026
22 checks passed
@chris-rock chris-rock deleted the chris-rock/remove-admission-controller branch January 26, 2026 14:10
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants