Repository navigation
helm changes - #22
helm changes#22
Conversation
Reviewer's Guide by SourceryThis pull request introduces several changes to the Helm charts, notably restructuring the values file and enhancing security measures within the deployment configurations. Class diagram showing the updated Helm chart structureclassDiagram
class Values {
+String appName
+String pubgrade_url
}
class PubgradeWebserver {
+String serviceAccountName
+int replicaCount
+String imagePullPolicy
+String image
+int port
+String portType
+Volume volume
+Ingress ingress
+SecurityContext securityContext
}
class MongoDB {
+String image
+String name
+int replicaCount
+int port
+String portType
+Volume volume
+SecurityContext securityContext
}
class BuildCompleteUpdater {
+int replicaCount
+String image
+String imagePullPolicy
}
Values -- PubgradeWebserver
Values -- MongoDB
Values -- BuildCompleteUpdater
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey @lvarin - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider making the nodePort configurable through values.yaml instead of hardcoding it to 30008 in the service template
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟡 Security: 1 issue found
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| containers: | ||
| - name: mongodb | ||
| image: mongo:3.6 | ||
| image: {{ .Values.pubgrade_mongodb.image }} |
There was a problem hiding this comment.
🚨 issue (security): MongoDB 3.6 is quite outdated and may have security vulnerabilities
Consider upgrading to a more recent version of MongoDB (e.g., 4.4 or later) to ensure better security and performance.
| targetPort: 8080 | ||
| - port: {{ .Values.pubgrade_webserver.port }} | ||
| targetPort: {{ .Values.pubgrade_webserver.port }} | ||
| nodePort: 30008 |
There was a problem hiding this comment.
suggestion: Consider templating the nodePort value
Other port configurations are templated, but nodePort is hardcoded. Consider making this configurable through values.yaml for consistency and flexibility.
Suggested implementation:
nodePort: {{ .Values.pubgrade_webserver.nodePort }}
You'll need to add the nodePort configuration to your values.yaml file. Add this under the pubgrade_webserver section:
pubgrade_webserver:
# ... existing values ...
nodePort: 30008 # Default value matching the previous hardcoded valueThis allows users to override the nodePort value while maintaining the same default behavior.
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
Checklist:
Summary by Sourcery
Update Helm chart for pubgrade.
Build:
Deployment: