Skip to content

Conversation

@JoseSzycho
Copy link
Contributor

Description:

This PR adds two new controllers for the Documentation API group:

DocumentController

Reconciles the Document resource status, including updating its LatestRevisionRef and setting the Ready condition based on the associated DocumentRevision objects. This ensures each document always reflects its most current revision, or clears the reference if no revisions are present.

DocumentRevisionController

Reconciles the DocumentRevision resource status by computing and storing a SHA-256 hash of the revision content. Once the resource has been successfully processed, the Ready condition is set to True. The content hash allows for detecting changes and ensures idempotency.

Both controllers are covered by dedicated unit tests validating their core reconciliation logic and edge case handling.

…ment and DocumentRevision resources

This commit introduces the DocumentController, which manages the reconciliation of Document objects and their associated DocumentRevisions. It includes logic to update the document's status based on the presence of revisions, ensuring the LatestRevisionRef is correctly set. Additionally, unit tests for the DocumentController's reconciliation process are added to verify functionality.
…it tests

This commit introduces the DocumentRevisionController, which manages the reconciliation of DocumentRevision resources. It includes logic to calculate and persist a content hash, ensuring that updates to the document's content do not change the hash if the document is already reconciled. Additionally, unit tests are added to verify the reconciliation behavior of the controller.
@JoseSzycho JoseSzycho requested a review from scotwells October 15, 2025 13:17
@joggrbot
Copy link
Contributor

joggrbot bot commented Oct 15, 2025

📝 Documentation Analysis

All docs are up to date! 🎉


✅ Latest commit analyzed: 3225f25 | Powered by Joggr

…djust owner references during updates"

This reverts commit 75fb8a3.
…ple configurations

This commit introduces two new Custom Resource Definitions (CRDs): PlatformAccessApproval and PlatformInvitation. The PlatformAccessApproval CRD allows for managing access approvals for users, while the PlatformInvitation CRD facilitates inviting users to the platform. Sample configurations for both CRDs are included, along with necessary updates to the kustomization file to include these new resources.
…latformInvitation CRDs with sample configurations"

This reverts commit 269f325.
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.

2 participants