Commit Graph

867 Commits

Author SHA1 Message Date
Zhimin Xiang a43659c656 Add metrics for Knative Certificate creation count (#976) 2020-01-06 15:57:49 -08:00
Ignacio (Nacho) Cano daef119f73 adding knative_broker metrics (#944) 2020-01-06 15:21:49 -08:00
Joyce Liu 4f9e59084b Return GKECluster info in PCO (#975)
Returns gkeOps in create, get prow-cluster-operation actions to fetch the Cluster info that's just created/fetched without reading the metadata file when running in Go
2020-01-06 14:43:50 -08:00
Zhimin Xiang ffc4109d16 Bump k8s vendor to 1.16.4 (#972) 2020-01-06 13:17:50 -08:00
Zhimin Xiang daee70aa95 bump the default minimum version to 1.15 (#971) 2020-01-06 11:48:49 -08:00
capri-xiyue fa1c639c93 Add helper methods in conditon_set (#965)
* added isUnknown in condition_set

* added IsFalse for condition set

* added GetHappyCondition

* modified comments

* modified the code based on cr

* renamed the method and removed isXXX() methods

* modified comments
2020-01-06 08:00:49 -08:00
Antoine Cotten ce9dfe90d1 Fix sharedmain log messages format (#974) 2020-01-06 07:53:49 -08:00
Joyce Liu 169ef0797c Added GKE release channel support in cluster creation in cluster manager lib (#968)
* Added release channel support in cluster creation in cluster manager lib
* updated k8s beta dependency to pick up release channel API

* added unit test for the missing coverage in request_test.go
2020-01-02 11:27:42 -08:00
Matt Moore ead56ad1f3 Format markdown (#967)
Produced via:
  `prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github)`
/assign n3wscott
/cc n3wscott
2019-12-30 10:37:37 -08:00
Joyce Liu 400dfb9ff9 updated boskos client based on the latest API in k8s (#945)
* updated boskos client based on the latest API in k8s

* Added clarification comments and cleanup dead code

* Apply suggestions from code review

Co-Authored-By: Victor Agababov <vagababov@gmail.com>

* Updated test error messages in boskos_test.go

* clarification on parameters

* removed accidentally modified client/istio changes

* Fixed unit test for AcquireGKEProject

* Apply suggestions from code review

Co-Authored-By: Victor Agababov <vagababov@gmail.com>

* simplified NewClient + annotated NewClient in boskos_test.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>
2019-12-29 20:19:35 -08:00
Lv Jiawei 00c3fda1d6 Update test README.md (#966)
Add flags and its explaination.
2019-12-27 11:11:32 -08:00
Victor Agababov 587055b113 Fix an annoying nit (#964)
Allocate as many as you're asked -- not just 1.

/assign mattmoor
2019-12-26 16:36:30 -08:00
Shaoxuan Zhang bb8b596645 Add error checker functions. (#961) 2019-12-26 14:46:30 -08:00
Chi Zhang 84bccfd045 Add fake cred file to make client_test.go independent of gcloud (#963)
* add fake cred file to make the test independent of gcloud

* address comments
2019-12-26 13:16:29 -08:00
Victor Agababov e73c8084c2 Fix a typo in the comment (#962) 2019-12-23 14:38:26 -08:00
Matt Moore a7fa10c6db golang format tools (#960)
Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -type f -name '*.go' -print)`
  `goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party)`
/assign n3wscott
/cc n3wscott
2019-12-23 09:40:40 -08:00
Chi Zhang 9fda5bd59a For GKE clusters used in performance tests, always enable Workload Identity (#954)
* always enable workload identity for perf test cluster creation

* fix unit tests

* add comments
2019-12-20 19:25:35 -08:00
Chi Zhang 0094d3a892 RecreateClusters function also create new clusters if they do not exist (#950)
* recreate-clusters also create new clusters

* fix unit tests
2019-12-17 18:27:04 -08:00
Markus Thömmes e08acb9512 Remove all occurrences of github.com/pkg/errors. (#888) 2019-12-17 10:41:03 -08:00
Matt Moore b26ddf762b This should be done directly in Serving, not in knative/pkg. (#946) 2019-12-16 13:19:02 -08:00
coryrc 9d8b936ca0 Switch *testing.T uses to equivalent interface + structured logging (#935)
Working to introduce structured logging to our tests. See #907

This work allows these test functions to be called by objects other
than *testing.T. The t.Error() calls are made compatible with
structured logging (wrapping Zap sugared logger calls) or code using
testing.T.
2019-12-13 10:22:54 -08:00
Slavomir Kaslev f890690397 De-race webhook integration tests (#938)
Webhook integration tests occasionally fail with on testgrid, e.g.
  https://prow.knative.dev/view/gcs/knative-prow/logs/ci-knative-pkg-continuous/1204193472353931264
  https://prow.knative.dev/view/gcs/knative-prow/logs/ci-knative-pkg-continuous/1203166664988823552

Fix this by waiting for all goroutines to finish before each test ends.
2019-12-13 06:59:54 -08:00
Slavomir Kaslev 37e855f81e Update istio.io/client-go version to 1.4.1 (#930)
Update istio.io/client-go and drop our patch for it since it has been upstreamed.
2019-12-13 06:49:54 -08:00
Matt Moore a55e24e80c Remove temporary logic to allow shared paths in webhook. (#943)
* Remove temporary logic to allow shared paths in webhook.

* Update webhook/webhook.go

Co-Authored-By: Victor Agababov <vagababov@gmail.com>
2019-12-12 11:14:52 -08:00
Markus Thömmes bebd5557fe Turn websocket's handshake timeout down again. (#941) 2019-12-11 07:02:49 -08:00
Zhimin Xiang 9d7b063951 add metrics for recording knative certificate issuance latencies (#940) 2019-12-10 21:09:48 -08:00
Ignacio (Nacho) Cano d5d6ec4697 setting other test data (#933) 2019-12-10 10:44:47 -08:00
Matt Moore c9679c8353 Auto-update dependencies (#939)
Produced via:
  `dep ensure -update knative.dev/test-infra`
/assign n3wscott
2019-12-10 09:36:47 -08:00
Zhimin Xiang 9681cde37b Add Knative Certificate related metrics into Knative Revision metrics (#932)
* add Knative Certificate related metrics into Knative Revision metrics

* fix typo
2019-12-09 21:50:46 -08:00
Joyce Liu 138ab0d10d Propagate the error in prow-cluster-operation actions instead of log.Fatalf (#931)
* Propagate the error in prow-cluster-operation actions instead of log.Fatalf

* log error in the same manner in prow-cluster-operation main
2019-12-09 20:45:46 -08:00
Chi Zhang 0c69403587 remove emit metrics flag (#929) 2019-12-09 07:01:45 -08:00
Victor Agababov 731f943e4f Fix the childname where trimming caused a dash. (#928)
If suffix name itself contained dashes, when we append the trimmed suffix
we might end up on the dash, which is a non valid k8s name.
So fix that.

/assign mattmoor
2019-12-08 14:12:44 -08:00
Victor Agababov 37bd04dc3e Move generic packages from serving to pkg. (#927)
* Move generic packages from serving to pkg.

I was asked to move this to do some re-use in Eventing.

/cc @chizh
/assign mattmoor @tcnghia

* fix the compile error
2019-12-06 17:57:40 -08:00
Matt Moore eec28e7bbd Auto-update dependencies (#924)
Produced via:
  `dep ensure -update knative.dev/test-infra`
/assign n3wscott
2019-12-05 09:55:38 -08:00
Joyce Liu da3d090aa9 modify boskos in cluster manager to make the boskos resource type customizable (#922) 2019-12-03 16:45:36 -08:00
Yanwei Guo 94a34e416c Upgrade OpenCensus Stackdriver exporter (#865)
* upgrade

* change unit tests

* upgrade os sd again

* change unit tests

* add comment

* add comment

* address comments
2019-12-03 14:12:37 -08:00
Matt Moore 3444316bde Format markdown (#919)
Produced via:
  `prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github)`
/assign n3wscott
2019-12-03 09:47:35 -08:00
Matt Moore 12b4f0010d Auto-update dependencies (#920)
Produced via:
  `dep ensure -update knative.dev/test-infra`
/assign n3wscott
2019-12-03 09:33:35 -08:00
Joyce Liu c259ed6f2e Moved cluster name check to later so --get can use cluster name in kubeconfig (#918) 2019-12-02 15:50:35 -08:00
Matt Moore 891c2876dd Implement a base library for implementing "Pod Spec"-able bindings. (#915)
This PR adds facilities to make it easier to create both components of a Binding
over "Pod Spec"-able resources.  Rather than rehashing it all here, please look
at `./pkg/webhook/psbinding/README.md` for more details.
2019-12-02 08:58:34 -08:00
Ville Aikas 944655d6cc fix comment, followup to 911 (#912)
* fix comment, followup to 911

* Update webhook/testing/listers.go

Co-Authored-By: Victor Agababov <vagababov@gmail.com>
2019-11-28 13:49:22 -08:00
Victor Agababov 8eb13fa842 Some cleanups in the URI tests (#914)
As referenced in the previous PRs

/assign @vaikas mattmoor
2019-11-28 13:42:22 -08:00
Matt Moore 20ef0b737b This has three small table testing changes. (#911)
I'm splitting this off of another change that needed them, the three changes are:

1. Give the PostConditions callbacks in TableRow access to the Reconciler
  resource.  It turns out this is incredibly useful to have the `TableRow`
  program an admission controller and then test that programming by calling
  `Admit()`.

1. Surface the test resources in our webhook "listers", and add the testing
  scheme.

1. Change the `objKey` to only use reflection as a fallback.  The existing logic
  doesn't work properly when a mix of real resources and unstructured.Unstructured
  is used for the same resource.
2019-11-28 11:10:22 -08:00
Matt Moore 1490c68a0c Run ./hack/update-codegen.sh (#910) 2019-11-28 11:03:22 -08:00
Ville Aikas cac31abb7f Change URIFromDestinationV1 to return apis.URL instead of string (#909) 2019-11-27 13:13:22 -08:00
Matt Moore 7fbd5952bb Auto-update dependencies (#908)
Produced via:
  `dep ensure -update knative.dev/test-infra`
/assign n3wscott
2019-11-27 07:54:22 -08:00
Francesco Guardiani 00cee157bd Added test utilities methods (#902)
* Added WaitForPodState to wait a state of a single pod

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Added WaitForServiceEndpoints

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Changes from review

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Change from review

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2019-11-27 07:13:21 -08:00
Victor Agababov 06d6b25dd6 Remove panics from the test and use t.Fatalf instead (#906) 2019-11-26 15:21:21 -08:00
grac3gao 46cfce8d99 Add check in informer to make controllers work when process invalid resources (#880)
* #2047 sources-controller can't recover from faulty sink (in eventing)

* #2047 sources-controller can't recover from faulty sink (in eventing)

* add unit test

* change after review

* change after review-2

Co-Authored-By: Victor Agababov <vagababov@gmail.com>
2019-11-26 14:16:21 -08:00
Ville Aikas 9a81fcece3 Resolvev1destination (#905)
* support v1.Destination

* rebase

* remove leftover crud from rebase

* address pr feedback

* moar feedback from pr
2019-11-26 14:00:21 -08:00