-
Notifications
You must be signed in to change notification settings - Fork 294
Add gsm-config ConfigMap to prowgen #4903
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: main
Are you sure you want to change the base?
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
WalkthroughThis PR adds Google Secret Manager (GSM) configuration support to the prowgen package. It introduces three constants for GSM ConfigMap naming and mount paths, creates a new PodSpecMutator to mount gsm-config ConfigMaps and apply configuration parameters, integrates this mutator into multi-stage test job builders when secrets store CSI driver is enabled, and adds unit tests with corresponding fixtures. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to 📒 Files selected for processing (6)
🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🧬 Code graph analysis (2)pkg/prowgen/podspec.go (1)
pkg/prowgen/jobbase.go (1)
🔇 Additional comments (6)
✏️ Tip: You can disable this entire section by setting Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.5.0)Command failed Comment |
|
@psalajova: The following tests failed, say
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. |
Prucek
left a comment
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.
/hold
Feel free to unhold whenever you are ready
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Prucek, psalajova 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 |
These changes enable ci-operator to access the gsm-config.yaml mapping file when the Secrets Store CSI Driver is enabled (gsm-config.yaml defines how GSM secrets are bundled and consumed for the Vault to GSM migration).
Changes
pkg/prowgen/podspec.gothat mounts the gsm-config ConfigMap at /etc/gsm-config and adds the--gsm-configflagImpact
This will only affect jobs with
enable_secrets_store_csi_driver: truein their.config.prowgenfile. Generated pods will include:--gsm-config=/etc/gsm-config/gsm-config.yamlDependencies