CM-830: Add TrustManager API type definitions - #484
CM-830: Add TrustManager API type definitions#484openshift-app-platform-shift[bot] wants to merge 1 commit into
Conversation
Introduces the TrustManager CRD (trustmanagers.operator.openshift.io/v1alpha1) to support deploying and managing the trust-manager operand via cert-manager-operator. This adds: - TrustManager API types with spec/status fields for configuring trust-manager operand behavior (log level/format, trust namespace, secret targets, default CA package, filtering expired certificates, scheduling) - TrustManager FeatureGate (Alpha/TechPreview, default disabled) - Singleton enforcement via XValidation (name must be "cluster") - Immutability on trustNamespace via XValidation - Cross-field CEL validation on SecretTargetsConfig - Integration test suite (.testsuite.yaml) covering create and update scenarios - Generated deepcopy, CRD manifest, clientset, informers, listers, and apply configurations Ref: openshift/enhancements#1914 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@openshift-app-platform-shift[bot]: This pull request references CM-830 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: openshift-app-platform-shift[bot] The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @openshift-app-platform-shift[bot]. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Summary
TrustManagerCRD (trustmanagers.operator.openshift.io/v1alpha1) for deploying and managing the trust-manager operand via cert-manager-operatorTrustManagerFeatureGate (Alpha/TechPreview, default disabled) to operator feature gate configuration.testsuite.yaml) covering create/update validation scenariosDetails
This PR implements the API types defined in Enhancement Proposal #1914 for integrating trust-manager with cert-manager-operator.
New Types
TrustManagercluster)TrustManagerSpectrustManagerConfig(required) andcontrollerConfig(optional)TrustManagerConfigSecretTargetsConfigDefaultCAPackageConfigTrustManagerControllerConfigTrustManagerStatusValidation Rules
metadata.name == 'cluster'trustNamespaceis immutable once setauthorizedSecretsrequired whensecretTargets.policyisCustom, forbidden otherwiseFilterExpiredCertificatesPolicy,SecretTargetsPolicy,DefaultCAPackagePolicy)logLevel(1-5),trustNamespacelength (1-63), tolerations (max 50), nodeSelector (max 50)Test plan
go build ./api/...passesgo vet ./api/...passesmake generate && make manifestsproduces no drift🤖 Generated with Claude Code