Integration test for reinitialize-pods #309
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(Note this will fail until linkerd/linkerd2#11699 lands)
The
integration-cni-plugin.yml
workflow (formerly known ascni-plugin-integration.yml
) has been expanded to run the new recipereinitialize-pods-integration
, which performs the following steps:linkerd-reinitialize-pods
crate andcni-plugin
. TheDockerfile-cni-plugin
file has been refactored to have two main targetsruntime
andruntime-test
, the latter picking thelinkerd-reinitialize-pods
that has just been built locally.v1.27.6-k3s1
(version required for Calico to work)./reinitialize-pods/integration/run.sh
script which:linkerd-cni
and wait for it to become readypause
DaemonSetThe
linkerd-cni
instance has been configured to include an extra initContainer that will delay its start for 15s. Since we waited for it to become ready, this doesn't affect the initial install. But then a new node is added to the cluster, and this delay allows for the newpause
DaemonSet replica to start before the full CNI config is ready, so we can observe its failure to come up. Once the newlinkerd-cni
replica becomes ready we observe how thepause
failed replica is replaced by a new healthy one.