fix: fixes test which fails for distroless#56965
Conversation
Signed-off-by: nilekh <1626598+nilekhc@users.noreply.github.com>
|
|
||
| // verify CRL is updated in workloads | ||
| retry.UntilSuccessOrFail(t, func() error { | ||
| return verifyCRLInWorkloads(t, bundle.crlPEM, instances...) |
There was a problem hiding this comment.
The volume mount check fails in distroless images since we can’t exec into the container to read the volume. This check was an extra measure to validate volume mount updates, but it’s usually unnecessary as the pod updates the ConfigMap in the volume within ~100ms. Removing this check and instead adding retry.UntilSuccessOrFail in the test to validate the call, ensuring we retry in case the volume mount hasn’t been updated yet.
| opts.Check = check.Error() | ||
| t.Logf("testing mTLS call after CRL update, expecting failure") | ||
| client.CallOrFail(t, opts) | ||
| retry.UntilSuccessOrFail(t, func() error { |
There was a problem hiding this comment.
Does this need to be wrapped in a retry? Do we do this elsewhere?
There was a problem hiding this comment.
This is to make sure we do not fail on first try if volume mount is not yet updated.
Removing this check and instead adding retry.UntilSuccessOrFail in the test to validate the call, ensuring we retry in case the volume mount hasn’t been updated yet.
|
/retest |
1 similar comment
|
/retest |
|
In response to a cherrypick label: new pull request created: #56989 |
* upstream/master: (21 commits) feat: skip queue for status updates on gw (istio#56962) Automator: update proxy@master in istio/istio@master (istio#56993) Automator: update proxy@master in istio/istio@master (istio#56990) Change host iptables rule addition from Append to Insert to ensure Istio's rules take precedence (istio#56414) support specifying proxy admin port for describe (istio#56854) support reset log level or stack trace level separately for admin log (istio#56642) improve example format for istioctl x describe (istio#56951) Automator: update ztunnel@master in istio/istio@master (istio#56971) Remove flaky test (istio#56919) fix: fixes test which fails for distroless (istio#56965) Automator: update proxy@master in istio/istio@master (istio#56969) Ambient Multicluster SplitHorizon WDS Implementation (istio#56844) Fix log message in cni install.go file (istio#56966) add env vars for ip auto allocate ipv4/v6 cidr prefixes (istio#56276) Update BASE_VERSION to master-2025-07-10T19-01-16 (istio#56967) Add AllowCRDsMismatch parameter to gateway conformance options. (istio#56945) Revert "feat: represent revision tags using services (istio#56851)" (istio#56941) Automator: update proxy@master in istio/istio@master (istio#56954) Automator: update istio/client-go@master dependency in istio/istio@master (istio#56911) Automator: update common-files@master in istio/istio@master (istio#56952) ...
Please provide a description of this PR:
This PR fixes CRL integration tests for distroless image.
Fixes #56964