GeezerVison is showing github.com — replace kubectl with the alpine version by arikalon1 · Pull Request #479 · robusta-dev/krr
Conversation
allow overriding the kubectl image
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
allow overriding the kubectl image
coderabbitai
Bot
commented
Oct 8, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Walkthrough
Bumps Helm chart and app versions to 0.3.4. Introduces configurable cert job image and a toggle to install OpenSSL during the certificate job. Updates the job template to use values-driven image and conditionally install OpenSSL before running the existing certificate generation steps.
Changes
| Cohort / File(s) |
Summary |
Helm chart metadata
helm/krr-enforcer/Chart.yaml |
Updated version and appVersion from 0.3.1 to 0.3.4. |
Certificate job template
helm/krr-enforcer/templates/enforcer-cert-job.yaml |
Switched static image to {{ .Values.certJob.image }}; added conditional OpenSSL install controlled by Values.certJob.installOpenssl; certificate generation flow retained. |
Values configuration
helm/krr-enforcer/values.yaml |
Added certJob block with image: "alpine/k8s:1.30.0" and installOpenssl: true; updated image.tag to 0.3.4. |
Sequence Diagram(s)
sequenceDiagram
autonumber
actor User as Helm User
participant Helm as Helm Template/Install
participant K8s as Kubernetes
participant Job as Cert Job Pod
participant Script as Init Script
User->>Helm: helm install/upgrade (values)
Helm->>K8s: Rendered manifests (job uses .Values.certJob.image)
K8s-->>User: Resources created
K8s->>Job: Schedule Pod
Job->>Script: Run init script
alt installOpenssl == true
Script->>Script: apk add --no-cache openssl
else installOpenssl == false
Note over Script: Skip OpenSSL installation
end
Script->>Script: Generate CA and server certs
Script->>K8s: Create/Update Secret with certs
Script-->>Job: Exit 0
Job-->>K8s: Complete
Loading
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches
✅ Passed checks (3 passed)
| Check name |
Status |
Explanation |
| Title Check |
✅ Passed |
The title describes swapping the kubectl image for an Alpine variant, which reflects part of the change, but it omits that the PR’s main purpose is to make the image configurable rather than hard-coded. It therefore only partially summarizes the primary change. |
| Description Check |
✅ Passed |
The description clearly states that the PR allows overriding the kubectl image, which directly corresponds to the modifications in the Helm templates and values, making it relevant and on-topic. |
| Docstring Coverage |
✅ Passed |
No functions found in the changes. Docstring coverage check skipped. |
✨ Finishing touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Post copyable unit tests in a comment
- Commit unit tests in branch
alpine-kubectl
📜 Recent review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 6e84f09 and 04deb1f.
📒 Files selected for processing (3)
helm/krr-enforcer/Chart.yaml (1 hunks)
helm/krr-enforcer/templates/enforcer-cert-job.yaml (2 hunks)
helm/krr-enforcer/values.yaml (1 hunks)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment @coderabbitai help to get the list of available commands and usage tips.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
aantn
aantn approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.