CNTRLPLANE-3423: feat: have CVO inject the centralized TLS configuration into the operator's config#359
Conversation
…ator's config Also, have the operator restart whenever the config changes.
WalkthroughThe PR enables automatic TLS injection and file-watch-based process termination in the service-ca-operator. A ConfigMap annotation marks the operator config for TLS injection, and deployment args configure the operator to terminate and restart when those injected files or the config change. ChangesTLS Injection and File-Watch Setup
🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 12 | ❌ 3❌ Failed checks (3 warnings)
✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@ingvagabund: This pull request references CNTRLPLANE-3423 which is a valid jira issue. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
Actionable comments posted: 0 |
|
@ingvagabund: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/approve |
{
"apiVersion": "v1",
"data": {
"operator-config.yaml": "apiVersion: operator.openshift.io/v1alpha1\nkind: GenericOperatorConfig\nservingInfo:\n cipherSuites:\n - TLS_AES_128_GCM_SHA256\n - TLS_AES_256_GCM_SHA384\n - TLS_CHACHA20_POLY1305_SHA256\n - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256\n - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384\n - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256\n - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\n - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\n - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256\n minTLSVersion: VersionTLS12\n"
},
"kind": "ConfigMap",
"metadata": {
"annotations": {
"config.openshift.io/inject-tls": "true",
"include.release.openshift.io/hypershift": "true",
"include.release.openshift.io/ibm-cloud-managed": "true",
"include.release.openshift.io/self-managed-high-availability": "true",
"include.release.openshift.io/single-node-developer": "true"
},
"creationTimestamp": "2026-05-28T23:28:07Z",
"name": "service-ca-operator-config",
"namespace": "openshift-service-ca-operator",
"ownerReferences": [
{
"apiVersion": "config.openshift.io/v1",
"controller": true,
"kind": "ClusterVersion",
"name": "version",
"uid": "59dc4be5-781d-49b4-bde5-5c6abb5797fc"
}
],
"resourceVersion": "1647",
"uid": "c87b5362-b170-4931-88db-78e3dff12236"
}
},TLS injected |
| - args: | ||
| - --config=/var/run/configmaps/config/operator-config.yaml | ||
| - --terminate-on-files=/var/run/configmaps/config/operator-config.yaml | ||
| - --terminate-on-files=/var/run/secrets/serving-cert/tls.crt |
There was a problem hiding this comment.
What's up with these certs ? Are we fixing a bug in here as well ?
There was a problem hiding this comment.
Consistency with other operators. Yet, I can drop it.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ricardomaraschini The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Also, have the operator restart whenever the config changes.
wip-docs: openshift/enhancements#2020
Summary by CodeRabbit