-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for deployment cancellation and error surface when admission webhook blocks pod skaffold is waiting on #8624
feat: add support for deployment cancellation and error surface when admission webhook blocks pod skaffold is waiting on #8624
Conversation
b98e114
to
d0a4569
Compare
Codecov Report
@@ Coverage Diff @@
## main #8624 +/- ##
==========================================
- Coverage 70.48% 64.21% -6.28%
==========================================
Files 515 613 +98
Lines 23150 30725 +7575
==========================================
+ Hits 16317 19729 +3412
- Misses 5776 9516 +3740
- Partials 1057 1480 +423
... and 393 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
24fc1f0
to
eb8e9bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we don't need this file? The integration test is using the examples/kustomize
. Same will be for the other files in the integration/testdata/helm-
folders.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, missed this. Updated now
// TestBinAuthZWithDeploy targets the integration-tests-binauthz cluster on k8s-skaffold which has '--binauthz-evaluation-mode=PROJECT_SINGLETON_POLICY_ENFORCE' set | ||
func TestBinAuthZWithDeploy(t *testing.T) { | ||
MarkIntegrationTest(t, NeedsGcp) | ||
if os.Getenv("GKE_CLUSTER_NAME") != binauthzClusterName { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to do a change in Kokoro to make this work, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you're correct - currently this won't run in kokoro (but won't affect the test negatively). Plan is to make the kokoro change to add this cluster and possible modify the test harness as well to only run this test in that cluster
…admission webhook blocks pod skaffold is waiting on
fixes #8610
Manually tested against GKE cluster w/ binauthz enabled following the guide here:
https://cloud.google.com/architecture/binary-auth-with-cloud-build-and-gke
Before this change:
After this change: