projectcalico / calico

Cloud native networking and network security
https://docs.tigera.io/calico/latest/about/
Apache License 2.0
6.04k stars 1.35k forks source link

[Release v3.29] Improve robustness of data store initialisation when creating tiers #9454

Closed mazdakn closed 2 weeks ago

mazdakn commented 2 weeks ago

Description

Make sure initialising data store is not stopped because of the failure in creating default and adminnetworkpolicy tiers. Calico node and typha do not have create permission, and as such attempts to create those tiers result in unauthorised errors which in the end result in:

This PR fixes the issue in two ways:

The PR also enables deploying typha as part of kind cluster. Having it enabled, would have allowed detecting the issue earlier.

Related issues/PRs

GH issue: https://github.com/projectcalico/calico/issues/9442 https://github.com/projectcalico/calico/issues/9444 Cherry pick of https://github.com/projectcalico/calico/pull/9446

Todos

Release Note

Do not fail data store initialisation when unauthorised error happen while creating default and adminnetworkpolicy tiers. Those tiers eventually get created by another component. 

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

Every PR needs one release-note-* label.

Other optional labels: