defenseunicorns / uds-package-gitlab

🏭 UDS GitLab Zarf Package
GNU Affero General Public License v3.0
8 stars 3 forks source link

Package wait is too late #152

Closed blancharda closed 1 month ago

blancharda commented 5 months ago

Overview

The common/zarf.yaml package definition defines a wait action to ensure the uds package object has been properly handled by pepr. However, the action runs after the gitlab application chart is applied, which in rare edge cases could create a race.

I propose we split the charts into separate components to ensure the uds-package has been handled and is Ready prior to applying the gitlab chart.

mjnagel commented 5 months ago

Would love to better understand the scenarios in which this is problematic. I am tracking a few things that are "dependencies" of the GitLab deployment (and more broadly of any chart deployments using Package CRs):

Is there a specific example you could give of a problem caused by this timing? Just want to better understand what specific problem is arising here. We have definitely discussed a few different paths forward here:

Edit: Should also note additional details around network policies...pepr will apply them first in the flow of the Package reconciliation. After that it will istio-inject the namespace and cycle any pods that pre-existed injection (ensuring that no pre-netpol connections can be maintained).

Racer159 commented 1 month ago

Closing this issue as "won't fix" - it has the potential for some minor issues but would require being driven by uds-core changes most likely that would have their own tradeoffs.