-
Notifications
You must be signed in to change notification settings - Fork 836
docs: explain why audit runs as singleton #4216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Added detailed explanation to audit documentation about why the audit component runs as a singleton and when multiple replicas can be used. Updated both main docs and all 15 versioned documentation files. Co-authored-by: sozercan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds documentation explaining why the Gatekeeper audit component runs as a singleton. The addition clarifies that the singleton design prevents conflicting writes to Constraint CRs and provides guidance on when multiple replicas might be acceptable.
Key Changes:
- Added a new subsection "Why Audit Runs as a Singleton" under the "Running Audit" section
- Documentation explains the technical reason for the singleton design (conflicting writes to Constraint CRs)
- Includes guidance on running multiple replicas when only consuming logs
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/audit.md | Added singleton explanation to the current documentation version |
| website/versioned_docs/version-v3.20.x/audit.md | Added singleton explanation to v3.20.x documentation |
| website/versioned_docs/version-v3.19.x/audit.md | Added singleton explanation to v3.19.x documentation |
| website/versioned_docs/version-v3.18.x/audit.md | Added singleton explanation to v3.18.x documentation |
| website/versioned_docs/version-v3.17.x/audit.md | Added singleton explanation to v3.17.x documentation |
| website/versioned_docs/version-v3.16.x/audit.md | Added singleton explanation to v3.16.x documentation |
| website/versioned_docs/version-v3.15.x/audit.md | Added singleton explanation to v3.15.x documentation |
| website/versioned_docs/version-v3.14.x/audit.md | Added singleton explanation to v3.14.x documentation |
| website/versioned_docs/version-v3.13.x/audit.md | Added singleton explanation to v3.13.x documentation |
| website/versioned_docs/version-v3.12.x/audit.md | Added singleton explanation to v3.12.x documentation |
| website/versioned_docs/version-v3.11.x/audit.md | Added singleton explanation to v3.11.x documentation |
| website/versioned_docs/version-v3.10.x/audit.md | Added singleton explanation to v3.10.x documentation |
| website/versioned_docs/version-v3.9.x/audit.md | Added singleton explanation to v3.9.x documentation |
| website/versioned_docs/version-v3.8.x/audit.md | Added singleton explanation to v3.8.x documentation |
| website/versioned_docs/version-v3.7.x/audit.md | Added singleton explanation to v3.7.x documentation |
| website/versioned_docs/version-v3.6.x/audit.md | Added singleton explanation and restructured existing content for v3.6.x documentation |
|
@copilot add this too Gatekeeper audit component is also responsible for generating CRDs and VAP resources from ConstraintTemplate. Increasing audit replicas may result in writing conflicts for CRDs and VAP resources as well. |
…tion Added information about audit component's responsibility for generating CRDs and VAP resources from ConstraintTemplate, and that increasing replicas may cause conflicts for these resources as well. Co-authored-by: sozercan <[email protected]>
|
@copilot CRD generation and vap generation was moved to singleton audit in release 3.18, so only update versioned docs of 3.18, 3.19, and 3.20. Do not update any older docs since the support window is n-2. Keep the changes in website/docs as is. |
CRD and VAP generation was moved to singleton audit in release 3.18. Reverted CRD/VAP conflict information from versions 3.6.x through 3.17.x as these versions did not have this functionality. Kept the information in v3.18.x, v3.19.x, v3.20.x and main docs. Co-authored-by: JaydipGabani <[email protected]>
Removed CRD/VAP information from versions 3.6.x through 3.17.x. The CRD/VAP conflict information now only appears in v3.18.x, v3.19.x, v3.20.x and the main docs. Commit: a2eb673 |
|
@copilot add that you can't also generate VAP with multiple replicas so users should turn off that if they want multiple replicas |
Added note that users must disable VAP generation when running multiple audit replicas to avoid conflicts. Updated main docs and v3.18.x-v3.20.x versioned docs. Co-authored-by: sozercan <[email protected]>
The audit documentation lacked explanation for why the component must run as a singleton, causing confusion about replica configuration.
Changes
Added "Why Audit Runs as a Singleton" subsection explaining:
--constraint-violations-limit=0for multi-replica setupsUpdated 16 files: main docs + all versioned docs (v3.6.x through v3.20.x)
Location
Section added under "Running Audit" in
website/docs/audit.mdand allwebsite/versioned_docs/version-*/audit.mdfiles.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.