-
Notifications
You must be signed in to change notification settings - Fork 136
[cilium] Update Cilium to v1.18.5 #1769
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
Conversation
Add SED_INPLACE variable to common-envs.mk that detects the OS and uses the appropriate sed in-place syntax: `sed -i ''` on macOS (Darwin) and `sed -i` on Linux. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
Update Cilium from v1.17.8 to v1.18.5. Breaking changes addressed: - Remove deprecated enableRuntimeDeviceDetection option from values-kubeovn.yaml (now default behavior in 1.18) - Use SED_INPLACE variable for macOS compatibility in Makefile Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
📝 WalkthroughWalkthroughThis pull request updates the Cilium Helm chart from version 1.17 to 1.18.5, introducing new configuration options for Kubernetes service discovery (k8sServiceHostRef), client exponential backoff, identity management modes, and kvstore configurations; enhancing security contexts, Envoy timeouts, pod disruption budgets, and ServiceMonitor scrapeTimeouts; and restructuring clustermesh conditional logic to remove external workloads dependencies. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
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 |
Summary of ChangesHello @lexfrei, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on a significant upgrade of the Cilium network plugin to version 1.18.5. The update incorporates various new features, removes deprecated configurations, and ensures compatibility with the latest kernel requirements. Additionally, it includes minor build script adjustments for cross-platform consistency. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request updates Cilium from v1.17.8 to v1.18.5, which is a significant feature release. The changes are comprehensive, covering updates to the Helm chart, configuration values, Kubernetes resource definitions, and container images to align with the new version. Key changes include the removal of deprecated options like enableRuntimeDeviceDetection and externalWorkloads, and the introduction of many new features and configuration parameters such as improved BGP control plane options, Gateway API support enhancements, and more granular security context settings. The addition of a SED_INPLACE variable in the Makefile is a nice touch for improving macOS compatibility. The Helm templates have been updated to support new features, provide better validation, and improve user experience with features like reusing existing TLS secrets to avoid regeneration. Overall, this is a well-executed and thorough update.
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.
Actionable comments posted: 5
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
packages/system/cilium/charts/cilium/templates/spire/agent/daemonset.yaml (1)
1-141: Do not directly edit vendored upstream Helm charts; changes will be lost on the next chart update.The file is located in the vendored Cilium chart directory (
packages/system/cilium/charts/cilium/). TheMakefileshows that theupdatetarget removes the entirecharts/directory and re-pulls the upstream Cilium chart usinghelm pull. Any direct edits to this file will be discarded on the nextmake update.Instead, apply customizations through:
- Overlays or kustomize patches in the umbrella chart templates
- Values overrides in
packages/system/cilium/values.yaml- Chart-level patches or hooks in
packages/system/cilium/templates/packages/system/cilium/charts/cilium/templates/cilium-preflight/deployment.yaml (1)
67-81: Fix indentation and clarify mutually exclusive conditions in Kubernetes service host configuration.Line 76 has inconsistent indentation (extra spaces before
{{-). Additionally, while there's a validation check invalidate.yamlthat prevents bothk8sServiceHostRefandk8sServiceHostfrom being set simultaneously, the template structure should still be made mutually exclusive for clarity. Change the secondiftoelse ifto ensure only one block renders:{{- if and .Values.k8sServiceHostRef.name .Values.k8sServiceHostRef.key }} - name: KUBERNETES_SERVICE_HOST valueFrom: configMapKeyRef: name: {{ .Values.k8sServiceHostRef.name }} key: {{ .Values.k8sServiceHostRef.key }} - name: KUBERNETES_SERVICE_PORT value: {{ include "k8sServicePort" . }} - {{- end }} - {{- if .Values.k8sServiceHost }} + {{- else if .Values.k8sServiceHost }} - name: KUBERNETES_SERVICE_HOST value: {{ include "k8sServiceHost" . }} - name: KUBERNETES_SERVICE_PORT value: {{ include "k8sServicePort" . }} {{- end }}Note: This pattern appears in multiple cilium templates (daemonset, operator, agent). Ensure changes are applied consistently across all templates or via proper chart vendoring mechanism.
♻️ Duplicate comments (1)
packages/system/cilium/charts/cilium/templates/hubble/tls-helm/relay-client-secret.yaml (1)
6-13: Verify these changes are from upstream Cilium 1.18.5.This file implements the same certificate preservation pattern as
server-secret.yaml. Please confirm this change is from the upstream Cilium 1.18 chart update and not a local modification to the vendored chart. The same operational considerations regarding thelookupfunction apply here.Also applies to: 32-33
🧹 Nitpick comments (3)
packages/system/cilium/charts/cilium/templates/cilium-flowlog-configmap.yaml (1)
16-16: Consider addressing the TODO comment.The TODO mentions removing the default once v1.18 is released. Since this PR updates to v1.18.5, the condition has been met. The TODO references three actions:
- Remove the default fallback behavior
- Remove the warning in warnings.txt
- Add failure validation in validate.yaml
Would you like me to help locate these related files and draft the cleanup changes?
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/server-secret.yaml (1)
1-1: Note redundantandnesting in condition.The condition uses
and (and ...)which is logically redundant. While functionally correct, it could be simplified to a singleandoperator with all conditions.🔎 Optional simplification
-{{- if and (and .Values.clustermesh.useAPIServer (eq .Values.clustermesh.apiserver.kvstoremesh.kvstoreMode "internal")) .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "certmanager") }} +{{- if and .Values.clustermesh.useAPIServer (eq .Values.clustermesh.apiserver.kvstoremesh.kvstoreMode "internal") .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "certmanager") }}However, if this template originates from upstream Cilium v1.18.5, preserve the upstream formatting to maintain consistency with future upgrades.
packages/system/cilium/charts/cilium/templates/cilium-secrets-namespace.yaml (1)
23-26: Consider conditionally rendering annotations block.The annotations block is always rendered, even when
secretsNamespaceAnnotationsis empty. While not incorrect, it produces cleaner YAML when conditionally rendered.🔎 Proposed improvement
+ {{- with $.Values.secretsNamespaceAnnotations }} annotations: - {{- with $.Values.secretsNamespaceAnnotations }} {{- toYaml . | nindent 4 }} - {{- end }} + {{- end }}However, since this is a vendored upstream chart, avoid modifying it directly. If this pattern is needed, consider raising it upstream or applying it via a post-renderer.
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (82)
packages/system/cilium/Makefilepackages/system/cilium/charts/cilium/Chart.yamlpackages/system/cilium/charts/cilium/README.mdpackages/system/cilium/charts/cilium/files/cilium-agent/dashboards/cilium-dashboard.jsonpackages/system/cilium/charts/cilium/files/cilium-envoy/configmap/bootstrap-config.yamlpackages/system/cilium/charts/cilium/templates/NOTES.txtpackages/system/cilium/charts/cilium/templates/_helpers.tplpackages/system/cilium/charts/cilium/templates/cilium-agent/clusterrole.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/daemonset.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/role.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/rolebinding.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/cilium-ca-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-configmap.yamlpackages/system/cilium/charts/cilium/templates/cilium-envoy/configmap.yamlpackages/system/cilium/charts/cilium/templates/cilium-envoy/daemonset.yamlpackages/system/cilium/charts/cilium/templates/cilium-envoy/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/cilium-flowlog-configmap.yamlpackages/system/cilium/charts/cilium/templates/cilium-ingress-service.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/clusterrole.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/deployment.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/rolebinding.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/clusterrole.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/clusterrolebinding.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/daemonset.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/deployment.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/cilium-secrets-namespace.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/clusterrole.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/clusterrolebinding.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/deployment.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/metrics-service.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/service.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/serviceaccount.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/admin-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/client-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/local-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/remote-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/server-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/_job-spec.tplpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/cronjob.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/job.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/role.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/rolebinding.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/serviceaccount.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/admin-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/client-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/local-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/remote-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/server-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/admin-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/client-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/remote-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/server-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/users-configmap.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-config/_helpers.tplpackages/system/cilium/charts/cilium/templates/clustermesh-config/clustermesh-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-config/kvstoremesh-secret.yamlpackages/system/cilium/charts/cilium/templates/hubble-relay/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/hubble-relay/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/hubble-ui/_nginx.tplpackages/system/cilium/charts/cilium/templates/hubble-ui/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/hubble-ui/service.yamlpackages/system/cilium/charts/cilium/templates/hubble/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/hubble/tls-cronjob/_job-spec.tplpackages/system/cilium/charts/cilium/templates/hubble/tls-helm/relay-client-secret.yamlpackages/system/cilium/charts/cilium/templates/hubble/tls-helm/server-secret.yamlpackages/system/cilium/charts/cilium/templates/hubble/tls-provided/metrics-server-secret.yamlpackages/system/cilium/charts/cilium/templates/spire/agent/daemonset.yamlpackages/system/cilium/charts/cilium/templates/spire/server/statefulset.yamlpackages/system/cilium/charts/cilium/templates/validate.yamlpackages/system/cilium/charts/cilium/templates/warnings.txtpackages/system/cilium/charts/cilium/values.schema.jsonpackages/system/cilium/charts/cilium/values.yamlpackages/system/cilium/charts/cilium/values.yaml.tmplpackages/system/cilium/images/cilium/Dockerfilepackages/system/cilium/values-kubeovn.yamlscripts/common-envs.mk
💤 Files with no reviewable changes (4)
- packages/system/cilium/values-kubeovn.yaml
- packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/client-secret.yaml
- packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/client-secret.yaml
- packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/client-secret.yaml
🧰 Additional context used
📓 Path-based instructions (3)
packages/system/**
📄 CodeRabbit inference engine (AGENTS.md)
Use Helm Chart umbrella pattern with vendored upstream charts in
charts/directory
Files:
packages/system/cilium/Makefilepackages/system/cilium/charts/cilium/templates/hubble-ui/_nginx.tplpackages/system/cilium/charts/cilium/templates/spire/agent/daemonset.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/hubble-ui/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/admin-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/serviceaccount.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/service.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/server-secret.yamlpackages/system/cilium/charts/cilium/files/cilium-envoy/configmap/bootstrap-config.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/cilium-envoy/configmap.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/remote-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-config/clustermesh-secret.yamlpackages/system/cilium/charts/cilium/templates/_helpers.tplpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/remote-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-envoy/daemonset.yamlpackages/system/cilium/charts/cilium/templates/hubble-relay/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/NOTES.txtpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/cronjob.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-config/kvstoremesh-secret.yamlpackages/system/cilium/charts/cilium/templates/hubble-relay/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/cilium-envoy/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/clusterrolebinding.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/hubble/tls-cronjob/_job-spec.tplpackages/system/cilium/charts/cilium/templates/clustermesh-config/_helpers.tplpackages/system/cilium/charts/cilium/templates/hubble/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/hubble/tls-helm/relay-client-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/role.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/deployment.yamlpackages/system/cilium/charts/cilium/templates/spire/server/statefulset.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/rolebinding.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/_job-spec.tplpackages/system/cilium/charts/cilium/templates/validate.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/server-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-secrets-namespace.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/admin-secret.yamlpackages/system/cilium/images/cilium/Dockerfilepackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/remote-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/local-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/daemonset.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/rolebinding.yamlpackages/system/cilium/charts/cilium/templates/hubble-ui/service.yamlpackages/system/cilium/charts/cilium/templates/warnings.txtpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/users-configmap.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/clusterrolebinding.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/metrics-service.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/role.yamlpackages/system/cilium/charts/cilium/templates/cilium-ca-secret.yamlpackages/system/cilium/charts/cilium/templates/hubble/tls-provided/metrics-server-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/server-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-configmap.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/serviceaccount.yamlpackages/system/cilium/charts/cilium/templates/hubble/tls-helm/server-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/clusterrole.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/clusterrole.yamlpackages/system/cilium/charts/cilium/README.mdpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/rolebinding.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/daemonset.yamlpackages/system/cilium/charts/cilium/templates/cilium-flowlog-configmap.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/job.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/deployment.yamlpackages/system/cilium/charts/cilium/values.schema.jsonpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/admin-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/local-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-ingress-service.yamlpackages/system/cilium/charts/cilium/Chart.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/clusterrole.yamlpackages/system/cilium/charts/cilium/values.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/deployment.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/clusterrole.yamlpackages/system/cilium/charts/cilium/values.yaml.tmpl
**/*.yaml
📄 CodeRabbit inference engine (AGENTS.md)
Do NOT directly edit upstream Helm charts in vendored charts directory; use proper chart vendoring mechanisms
Files:
packages/system/cilium/charts/cilium/templates/spire/agent/daemonset.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/hubble-ui/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/admin-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/serviceaccount.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/service.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/server-secret.yamlpackages/system/cilium/charts/cilium/files/cilium-envoy/configmap/bootstrap-config.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/cilium-envoy/configmap.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/remote-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-config/clustermesh-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/remote-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-envoy/daemonset.yamlpackages/system/cilium/charts/cilium/templates/hubble-relay/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/cronjob.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-config/kvstoremesh-secret.yamlpackages/system/cilium/charts/cilium/templates/hubble-relay/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/cilium-envoy/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/clusterrolebinding.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/hubble/servicemonitor.yamlpackages/system/cilium/charts/cilium/templates/hubble/tls-helm/relay-client-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/role.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/deployment.yamlpackages/system/cilium/charts/cilium/templates/spire/server/statefulset.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/rolebinding.yamlpackages/system/cilium/charts/cilium/templates/validate.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/server-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-secrets-namespace.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/admin-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/remote-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/local-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/daemonset.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/rolebinding.yamlpackages/system/cilium/charts/cilium/templates/hubble-ui/service.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/users-configmap.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/clusterrolebinding.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/metrics-service.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/role.yamlpackages/system/cilium/charts/cilium/templates/cilium-ca-secret.yamlpackages/system/cilium/charts/cilium/templates/hubble/tls-provided/metrics-server-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/server-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-configmap.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/poddisruptionbudget.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/serviceaccount.yamlpackages/system/cilium/charts/cilium/templates/hubble/tls-helm/server-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/clusterrole.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/clusterrole.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/rolebinding.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/daemonset.yamlpackages/system/cilium/charts/cilium/templates/cilium-flowlog-configmap.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/job.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/deployment.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/admin-secret.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/local-secret.yamlpackages/system/cilium/charts/cilium/templates/cilium-ingress-service.yamlpackages/system/cilium/charts/cilium/Chart.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/clusterrole.yamlpackages/system/cilium/charts/cilium/values.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/deployment.yamlpackages/system/cilium/charts/cilium/templates/cilium-operator/clusterrole.yaml
**/*.md
📄 CodeRabbit inference engine (AGENTS.md)
Git commits should follow
[component] Descriptionformat and include--signoffflag
Files:
packages/system/cilium/charts/cilium/README.md
🧠 Learnings (4)
📚 Learning: 2025-12-25T09:45:26.524Z
Learnt from: CR
Repo: cozystack/cozystack PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-25T09:45:26.524Z
Learning: Applies to **/*.yaml : Do NOT directly edit upstream Helm charts in vendored charts directory; use proper chart vendoring mechanisms
Applied to files:
packages/system/cilium/Makefilepackages/system/cilium/charts/cilium/templates/warnings.txtpackages/system/cilium/charts/cilium/Chart.yaml
📚 Learning: 2025-07-23T09:15:09.658Z
Learnt from: lllamnyp
Repo: cozystack/cozystack PR: 1233
File: packages/system/hetzner-robotlb/charts/robotlb/templates/deployment.yaml:33-35
Timestamp: 2025-07-23T09:15:09.658Z
Learning: The `./charts/robotlb/` directory in the hetzner-robotlb package contains vendored code, and the team generally avoids modifying vendored code to maintain clean separation from upstream dependencies.
Applied to files:
packages/system/cilium/Makefile
📚 Learning: 2025-07-11T06:28:13.696Z
Learnt from: lllamnyp
Repo: cozystack/cozystack PR: 1160
File: packages/system/hetzner-robotlb/charts/robotlb/templates/role.yaml:6-8
Timestamp: 2025-07-11T06:28:13.696Z
Learning: In Helm templates, the `{{-` directive chomps all leading whitespace including newlines back to the previous content, so `{{- toYaml .Values.something | nindent 2 }}` will render correctly even with apparent indentation issues. However, for better style, it's cleaner to put the template directive on the same line as the parent key (e.g., `rules: {{- toYaml .Values.serviceAccount.permissions | nindent 2 }}`).
Applied to files:
packages/system/cilium/charts/cilium/templates/spire/agent/daemonset.yamlpackages/system/cilium/charts/cilium/templates/cilium-secrets-namespace.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/daemonset.yamlpackages/system/cilium/charts/cilium/templates/cilium-agent/role.yamlpackages/system/cilium/charts/cilium/templates/clustermesh-apiserver/clusterrole.yamlpackages/system/cilium/charts/cilium/templates/cilium-preflight/deployment.yaml
📚 Learning: 2025-07-10T12:14:27.197Z
Learnt from: lllamnyp
Repo: cozystack/cozystack PR: 1161
File: packages/apps/virtual-machine/templates/dashboard-resourcemap.yaml:6-12
Timestamp: 2025-07-10T12:14:27.197Z
Learning: Kubernetes RBAC rules with resourceNames work correctly for list/watch verbs. When resourceNames is specified in an RBAC rule, it properly restricts access to only those named resources, even for list and watch operations. Examples: `kubectl get resource resourcename -w` watches for changes on a single resource, and `kubectl get resource --field-selector .metadata.name=resourcename` lists a specific resource. The Kubernetes API server correctly distinguishes such requests from their less specific counterparts.
Applied to files:
packages/system/cilium/charts/cilium/templates/cilium-operator/clusterrole.yaml
🪛 markdownlint-cli2 (0.18.1)
packages/system/cilium/charts/cilium/README.md
180-180: Bare URL used
(MD034, no-bare-urls)
181-181: Bare URL used
(MD034, no-bare-urls)
242-242: Bare URL used
(MD034, no-bare-urls)
244-244: Bare URL used
(MD034, no-bare-urls)
421-421: Bare URL used
(MD034, no-bare-urls)
495-495: Bare URL used
(MD034, no-bare-urls)
541-541: Bare URL used
(MD034, no-bare-urls)
543-543: Bare URL used
(MD034, no-bare-urls)
555-555: Bare URL used
(MD034, no-bare-urls)
721-721: Bare URL used
(MD034, no-bare-urls)
798-798: Bare URL used
(MD034, no-bare-urls)
800-800: Bare URL used
(MD034, no-bare-urls)
812-812: Bare URL used
(MD034, no-bare-urls)
821-821: Bare URL used
(MD034, no-bare-urls)
827-827: Bare URL used
(MD034, no-bare-urls)
850-850: Bare URL used
(MD034, no-bare-urls)
852-852: Bare URL used
(MD034, no-bare-urls)
861-861: Bare URL used
(MD034, no-bare-urls)
865-865: Bare URL used
(MD034, no-bare-urls)
🪛 YAMLlint (1.37.1)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/admin-secret.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/serviceaccount.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/service.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/server-secret.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/remote-secret.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/remote-secret.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/cronjob.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/clusterrolebinding.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/role.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/deployment.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/validate.yaml
[error] 3-3: syntax error: expected '', but found '{'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/server-secret.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/admin-secret.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-provided/remote-secret.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-certmanager/local-secret.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/cilium-preflight/daemonset.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/server-secret.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/cilium-configmap.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/poddisruptionbudget.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/serviceaccount.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/clusterrole.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/rolebinding.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/job.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/admin-secret.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/tls-helm/local-secret.yaml
[error] 1-1: syntax error: expected the node content, but found '-'
(syntax)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Build
packages/system/cilium/charts/cilium/templates/cilium-preflight/clusterrole.yaml
Show resolved
Hide resolved
packages/system/cilium/charts/cilium/templates/cilium-preflight/daemonset.yaml
Show resolved
Hide resolved
packages/system/cilium/charts/cilium/templates/clustermesh-apiserver/deployment.yaml
Show resolved
Hide resolved
kvaps
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.
LGTM
## What this PR does - Update Cilium from v1.17.8 to v1.18.5 - Add `SED_INPLACE` variable to `scripts/common-envs.mk` for macOS compatibility - Remove deprecated `enableRuntimeDeviceDetection` option (now default behavior in 1.18) Cilium 1.18 requires Linux kernel 5.10+ (compatible with Talos). References: - [Cilium 1.18 Upgrade Guide](https://docs.cilium.io/en/stable/operations/upgrade/) - [Cilium 1.18 Release Blog](https://isovalent.com/blog/post/cilium-1-18/) ### Release note ```release-note [cilium] Update Cilium to v1.18.5 ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added configurable Kubernetes service discovery with ConfigMap-based endpoint source * Introduced exponential backoff settings for Kubernetes API client connections * Added metrics sampling interval configuration for internal agent metrics * Implemented identity management mode options for endpoint slices and DNS proxy pre-allocation * Enhanced Prometheus scrape timeout configuration across monitoring components * **Improvements** * Upgraded core components to v1.18.5 * Strengthened security defaults by disabling privilege escalation across pods * Added startup and liveness probe configurations for improved health monitoring * Extended network policy correlation capabilities in Hubble <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
## What this PR does - Update Cilium from v1.17.8 to v1.18.5 - Add `SED_INPLACE` variable to `scripts/common-envs.mk` for macOS compatibility - Remove deprecated `enableRuntimeDeviceDetection` option (now default behavior in 1.18) Cilium 1.18 requires Linux kernel 5.10+ (compatible with Talos). References: - [Cilium 1.18 Upgrade Guide](https://docs.cilium.io/en/stable/operations/upgrade/) - [Cilium 1.18 Release Blog](https://isovalent.com/blog/post/cilium-1-18/) ### Release note ```release-note [cilium] Update Cilium to v1.18.5 ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added configurable Kubernetes service discovery with ConfigMap-based endpoint source * Introduced exponential backoff settings for Kubernetes API client connections * Added metrics sampling interval configuration for internal agent metrics * Implemented identity management mode options for endpoint slices and DNS proxy pre-allocation * Enhanced Prometheus scrape timeout configuration across monitoring components * **Improvements** * Upgraded core components to v1.18.5 * Strengthened security defaults by disabling privilege escalation across pods * Added startup and liveness probe configurations for improved health monitoring * Extended network policy correlation capabilities in Hubble <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
## What this PR does - Update Cilium from v1.17.8 to v1.18.5 - Add `SED_INPLACE` variable to `scripts/common-envs.mk` for macOS compatibility - Remove deprecated `enableRuntimeDeviceDetection` option (now default behavior in 1.18) Cilium 1.18 requires Linux kernel 5.10+ (compatible with Talos). References: - [Cilium 1.18 Upgrade Guide](https://docs.cilium.io/en/stable/operations/upgrade/) - [Cilium 1.18 Release Blog](https://isovalent.com/blog/post/cilium-1-18/) ### Release note ```release-note [cilium] Update Cilium to v1.18.5 ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added configurable Kubernetes service discovery with ConfigMap-based endpoint source * Introduced exponential backoff settings for Kubernetes API client connections * Added metrics sampling interval configuration for internal agent metrics * Implemented identity management mode options for endpoint slices and DNS proxy pre-allocation * Enhanced Prometheus scrape timeout configuration across monitoring components * **Improvements** * Upgraded core components to v1.18.5 * Strengthened security defaults by disabling privilege escalation across pods * Added startup and liveness probe configurations for improved health monitoring * Extended network policy correlation capabilities in Hubble <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
What this PR does
SED_INPLACEvariable toscripts/common-envs.mkfor macOS compatibilityenableRuntimeDeviceDetectionoption (now default behavior in 1.18)Cilium 1.18 requires Linux kernel 5.10+ (compatible with Talos).
References:
Release note
Summary by CodeRabbit
Release Notes
New Features
Improvements
✏️ Tip: You can customize this high-level summary in your review settings.