Conversation
添加下面env后,可用于覆盖前端页面文件
- name: _JAVA_OPTIONS
value: >-
-Dspring.web.resources.static-locations=file:./static/,classpath:/static/
📝 WalkthroughWalkthroughA lifecycle configuration block is added to the container specification in the Kubernetes deployment template by injecting a lifecycle section sourced from Helm values into the existing resources configuration block. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Comment |
|
结合-Dspring.web.resources.static-locations=file:./static/,classpath:/static/ 和 lifecycle.postStart 可以实现不改代码覆盖前端网页 |
|
感谢你的贡献!支持 lifecycle 配置是一个很有用的功能 👍 我看了一下代码,有几点建议: 1. 建议添加条件判断 当前实现在未配置 {{- with .Values.lifecycle }}
lifecycle:
{{- toYaml . | nindent 12 }}
{{- end }}这样只有在配置了 lifecycle 时才会渲染这部分内容。 2. 缺少 values.yaml 配置 建议在 # Lifecycle hooks for the portal container
# lifecycle:
# postStart:
# exec:
# command: ["/bin/sh", "-c", "echo Container started"]
# preStop:
# exec:
# command: ["/bin/sh", "-c", "sleep 15"]
lifecycle: {}3. PR 描述建议优化 PR 描述中提到的
4. 文档补充 如果方便的话,可以考虑在 README 或相关文档中补充 lifecycle 的配置说明和使用示例。 如果你能补充以上内容(至少是第 1、2 点),我们就可以合并这个 PR 了。再次感谢! |
添加下面env后,可用于覆盖前端页面文件
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.