This repository was archived by the owner on Jun 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
add webhook validation #1158
Merged
Merged
add webhook validation #1158
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c755afb
add webhook validation
ayj a8684a2
address kyessenov review comments
ayj 7c9d66f
Merge branch 'master' of github.com:istio/pilot into crd-validation-w…
ayj c455fc9
fix linter errors for generated certs
ayj a667bba
Merge branch 'master' of github.com:istio/pilot into crd-validation-w…
ayj 75e41c5
add domainSuffix to admission controller
ayj 0d7416d
`make fmt` and `bin/gazelle`
ayj 7fc01cd
Merge branch 'master' of github.com:istio/pilot into crd-validation-w…
ayj 352cf6f
fix bin/check.sh
ayj c004ad2
Merge branch 'master' of github.com:istio/pilot into crd-validation-w…
ayj 9e9333c
integrate webhook in pilot-discovery and add workaround script
ayj 6cd8d28
quiet aligncheck linter error
ayj 1e4c547
revert ResyncPeriod for discovery
ayj 9c20d75
nits
ayj 6725b92
Merge branch 'master' of github.com:istio/pilot into crd-validation-w…
ayj ce28204
Merge branch 'master' of github.com:istio/pilot into crd-validation-w…
ayj 8fe2be3
Merge branch 'master' of github.com:istio/pilot into crd-validation-w…
ayj 793a42a
fix bad merge
ayj 2035394
Merge branch 'master' of github.com:istio/pilot into crd-validation-w…
ayj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = ["admit.go"], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//adapter/config/crd:go_default_library", | ||
"//model:go_default_library", | ||
"@com_github_ghodss_yaml//:go_default_library", | ||
"@com_github_golang_glog//:go_default_library", | ||
"@io_k8s_api//admission/v1alpha1:go_default_library", | ||
"@io_k8s_api//admissionregistration/v1alpha1:go_default_library", | ||
"@io_k8s_api//core/v1:go_default_library", | ||
"@io_k8s_apimachinery//pkg/api/errors:go_default_library", | ||
"@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library", | ||
"@io_k8s_apimachinery//pkg/fields:go_default_library", | ||
"@io_k8s_apiserver//pkg/admission:go_default_library", | ||
"@io_k8s_client_go//kubernetes:go_default_library", | ||
"@io_k8s_client_go//kubernetes/typed/admissionregistration/v1alpha1:go_default_library", | ||
"@io_k8s_client_go//tools/cache:go_default_library", | ||
], | ||
) | ||
|
||
go_test( | ||
name = "go_default_test", | ||
size = "small", | ||
srcs = ["admit_test.go"], | ||
data = glob(["testdata/**"]), | ||
library = ":go_default_library", | ||
deps = [ | ||
"//adapter/config/crd:go_default_library", | ||
"//model:go_default_library", | ||
"//model/test:go_default_library", | ||
"//platform/kube:go_default_library", | ||
"//platform/kube/admit/testcerts:go_default_library", | ||
"//test/mock:go_default_library", | ||
"@io_k8s_api//admission/v1alpha1:go_default_library", | ||
"@io_k8s_api//admissionregistration/v1alpha1:go_default_library", | ||
"@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library", | ||
"@io_k8s_apimachinery//pkg/runtime:go_default_library", | ||
"@io_k8s_apiserver//pkg/admission:go_default_library", | ||
"@io_k8s_client_go//kubernetes:go_default_library", | ||
"@io_k8s_client_go//kubernetes/fake:go_default_library", | ||
], | ||
) |
Oops, something went wrong.
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.
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.
good fix!