Skip to content

Retrieve TLS config from apiserver for OpenShift 5.0 - #2188

Open
dkwon17 wants to merge 3 commits into
eclipse-che:mainfrom
dkwon17:tls-adherence
Open

Retrieve TLS config from apiserver for OpenShift 5.0#2188
dkwon17 wants to merge 3 commits into
eclipse-che:mainfrom
dkwon17:tls-adherence

Conversation

@dkwon17

@dkwon17 dkwon17 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Configures operator webhook and metric server to apply the cluster TLS profile when tlsAdherence is set to StrictAllComponents. Watcher restarts the operator on profile or adherence policy changes.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

How to test this PR?

I have personally tested this functionality on a OCP 5.0 cluster with techpreview enabled, with this operator image: quay.io/dkwon17/che-operator:tls-adherence.

  1. Deploy the operator:

OpenShift

oc create namespace devworkspace-controller
oc apply --server-side -f https://raw.githubusercontent.com/devfile/devworkspace-operator/refs/heads/main/deploy/deployment/openshift/combined.yaml

OPERATOR_IMAGE=quay.io/dkwon17/che-operator:tls-adherence
sed 's|quay.io/eclipse/che-operator:next|'${OPERATOR_IMAGE}'|g' deploy/deployment/openshift/combined.yaml | oc apply --server-side -f  -
oc apply --server-side -f deploy/deployment/openshift/org_v2_checluster.yaml
oc wait checluster eclipse-che -n eclipse-che --for=jsonpath='.status.chePhase'=Active   --timeout=120s

For testing, I have followed this markdown: https://gist.github.com/dkwon17/71e6ede0f1f94f9fba8f57a21aa1e41d

on Minikube

./build/scripts/minikube-tests/test-operator-from-sources.sh

Common Test Scenarios

  • Deploy Eclipse Che
  • Start an empty workspace
  • Open terminal and build/run an image
  • Stop a workspace
  • Check operator logs for reconciliation errors or infinite reconciliation loops

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

Configure operator webhook and metrics servers to apply the cluster TLS
profile when tlsAdherence is set to StrictAllComponents. Watcher restarts
the operator on profile or adherence policy changes.

Signed-off-by: David Kwon <dakwon@redhat.com>
Assisted-by: Claude Sonnet 4.6
@openshift-ci

openshift-ci Bot commented Aug 31, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci

openshift-ci Bot commented Aug 31, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dkwon17

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: David Kwon <dakwon@redhat.com>
Signed-off-by: David Kwon <dakwon@redhat.com>
@dkwon17
dkwon17 marked this pull request as ready for review September 4, 2026 21:46
@openshift-ci

openshift-ci Bot commented Sep 4, 2026

Copy link
Copy Markdown

@dkwon17: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/v19-devworkspace-happy-path c83a63a link true /test v19-devworkspace-happy-path
ci/prow/v19-upgrade-stable-to-next c83a63a link true /test v19-upgrade-stable-to-next

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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.

1 participant