mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
fix(kubernetes): remove cilium dependency from coredns HelmRelease (#5331)
## What this PR does Closes #5315 Removes `spec.dependsOn` on Cilium from the tenant `coredns` `HelmRelease` (`packages/apps/kubernetes/templates/helmreleases/coredns.yaml`). When Hubble Relay is enabled at tenant cluster creation, `hubble-relay` waits on DNS resolution for `hubble-peer.cozy-cilium.svc.cluster.local` before the Cilium `HelmRelease` becomes Ready. Because CoreDNS previously declared `dependsOn` on Cilium, Flux blocked CoreDNS installation until Cilium was ready, creating a circular deadlock. Allowing both `HelmRelease` resources to reconcile concurrently lets CoreDNS retry (`spec.install.remediation.retries: -1`) until Cilium brings up cluster networking, unblocking CoreDNS and Hubble Relay. ### Downstream repositories - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: ### Release note ```release-note fix(kubernetes): remove cilium dependency from coredns HelmRelease to prevent a circular startup deadlock when Hubble Relay is enabled ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Updates** * CoreDNS no longer waits for the release-specific Cilium HelmRelease dependency before being managed. Its configured values remain unchanged, and installation and upgrade remediation behavior is covered by automated checks. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
2 files changed
+30
-3
No files matched your search
@@ -35,7 +35,4 @@ spec:
|
||||
retries: -1
|
||||
values:
|
||||
{{- toYaml (deepCopy .Values.addons.coredns.valuesOverride | mergeOverwrite (fromYaml (include "cozystack.defaultCoreDNSValues" .))) | nindent 4 }}
|
||||
dependsOn:
|
||||
- name: {{ .Release.Name }}-cilium
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
@@ -0,0 +1,30 @@
|
||||
suite: CoreDNS HelmRelease dependency tests
|
||||
templates:
|
||||
- templates/helmreleases/coredns.yaml
|
||||
values:
|
||||
- values-ci.yaml
|
||||
tests:
|
||||
# When Hubble Relay is enabled at cluster creation, hubble-relay resolves
|
||||
# hubble-peer.cozy-cilium.svc.cluster.local before the Cilium HelmRelease can
|
||||
# report Ready. CoreDNS must not declare dependsOn on Cilium, otherwise both
|
||||
# HelmReleases deadlock; without a CNI CoreDNS pods stay Pending and retry
|
||||
# until Cilium comes up.
|
||||
- it: does not depend on the Cilium HelmRelease so cluster DNS can bootstrap alongside CNI
|
||||
set:
|
||||
addons:
|
||||
cilium:
|
||||
valuesOverride:
|
||||
cilium:
|
||||
hubble:
|
||||
enabled: true
|
||||
relay:
|
||||
enabled: true
|
||||
asserts:
|
||||
- isNull:
|
||||
path: spec.dependsOn
|
||||
- equal:
|
||||
path: spec.install.remediation.retries
|
||||
value: -1
|
||||
- equal:
|
||||
path: spec.upgrade.remediation.retries
|
||||
value: -1
|
||||
Reference in new issue
Block a user