Skip to content

Commit

Permalink
adding a new admission plugin to handle api bindings and all validati…
Browse files Browse the repository at this point in the history
…ng webhooks

* adding a test case for validating webhook
* add a generic kcp webhook dispatcher for validationg and mutating webhooks.
* Adding e2e tests for new plugins
* admission/webhooks: add index by workspace for bindings
* Adding indexer to the generic webhook struct
  • Loading branch information
Shawn Hurley committed Apr 29, 2022
1 parent 8f1889c commit edf8953
Show file tree
Hide file tree
Showing 10 changed files with 1,661 additions and 72 deletions.
52 changes: 26 additions & 26 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,30 @@ require (
)

replace (
k8s.io/api => github.com/kcp-dev/kubernetes/staging/src/k8s.io/api v0.0.0-20220412170948-9b23827cdd1b
k8s.io/apiextensions-apiserver => github.com/kcp-dev/kubernetes/staging/src/k8s.io/apiextensions-apiserver v0.0.0-20220412170948-9b23827cdd1b
k8s.io/apimachinery => github.com/kcp-dev/kubernetes/staging/src/k8s.io/apimachinery v0.0.0-20220412170948-9b23827cdd1b
k8s.io/apiserver => github.com/kcp-dev/kubernetes/staging/src/k8s.io/apiserver v0.0.0-20220412170948-9b23827cdd1b
k8s.io/cli-runtime => github.com/kcp-dev/kubernetes/staging/src/k8s.io/cli-runtime v0.0.0-20220412170948-9b23827cdd1b
k8s.io/client-go => github.com/kcp-dev/kubernetes/staging/src/k8s.io/client-go v0.0.0-20220412170948-9b23827cdd1b
k8s.io/cloud-provider => github.com/kcp-dev/kubernetes/staging/src/k8s.io/cloud-provider v0.0.0-20220412170948-9b23827cdd1b
k8s.io/cluster-bootstrap => github.com/kcp-dev/kubernetes/staging/src/k8s.io/cluster-bootstrap v0.0.0-20220412170948-9b23827cdd1b
k8s.io/code-generator => github.com/kcp-dev/kubernetes/staging/src/k8s.io/code-generator v0.0.0-20220412170948-9b23827cdd1b
k8s.io/component-base => github.com/kcp-dev/kubernetes/staging/src/k8s.io/component-base v0.0.0-20220412170948-9b23827cdd1b
k8s.io/component-helpers => github.com/kcp-dev/kubernetes/staging/src/k8s.io/component-helpers v0.0.0-20220412170948-9b23827cdd1b
k8s.io/controller-manager => github.com/kcp-dev/kubernetes/staging/src/k8s.io/controller-manager v0.0.0-20220412170948-9b23827cdd1b
k8s.io/cri-api => github.com/kcp-dev/kubernetes/staging/src/k8s.io/cri-api v0.0.0-20220412170948-9b23827cdd1b
k8s.io/csi-translation-lib => github.com/kcp-dev/kubernetes/staging/src/k8s.io/csi-translation-lib v0.0.0-20220412170948-9b23827cdd1b
k8s.io/kube-aggregator => github.com/kcp-dev/kubernetes/staging/src/k8s.io/kube-aggregator v0.0.0-20220412170948-9b23827cdd1b
k8s.io/kube-controller-manager => github.com/kcp-dev/kubernetes/staging/src/k8s.io/kube-controller-manager v0.0.0-20220412170948-9b23827cdd1b
k8s.io/kube-proxy => github.com/kcp-dev/kubernetes/staging/src/k8s.io/kube-proxy v0.0.0-20220412170948-9b23827cdd1b
k8s.io/kube-scheduler => github.com/kcp-dev/kubernetes/staging/src/k8s.io/kube-scheduler v0.0.0-20220412170948-9b23827cdd1b
k8s.io/kubectl => github.com/kcp-dev/kubernetes/staging/src/k8s.io/kubectl v0.0.0-20220412170948-9b23827cdd1b
k8s.io/kubelet => github.com/kcp-dev/kubernetes/staging/src/k8s.io/kubelet v0.0.0-20220412170948-9b23827cdd1b
k8s.io/kubernetes => github.com/kcp-dev/kubernetes v0.0.0-20220412170948-9b23827cdd1b
k8s.io/legacy-cloud-providers => github.com/kcp-dev/kubernetes/staging/src/k8s.io/legacy-cloud-providers v0.0.0-20220412170948-9b23827cdd1b
k8s.io/metrics => github.com/kcp-dev/kubernetes/staging/src/k8s.io/metrics v0.0.0-20220412170948-9b23827cdd1b
k8s.io/mount-utils => github.com/kcp-dev/kubernetes/staging/src/k8s.io/mount-utils v0.0.0-20220412170948-9b23827cdd1b
k8s.io/pod-security-admission => github.com/kcp-dev/kubernetes/staging/src/k8s.io/pod-security-admission v0.0.0-20220412170948-9b23827cdd1b
k8s.io/sample-apiserver => github.com/kcp-dev/kubernetes/staging/src/k8s.io/sample-apiserver v0.0.0-20220412170948-9b23827cdd1b
k8s.io/api => github.com/sttts/kubernetes/staging/src/k8s.io/api v0.0.0-20220427164015-329d68c4e92d
k8s.io/apiextensions-apiserver => github.com/sttts/kubernetes/staging/src/k8s.io/apiextensions-apiserver v0.0.0-20220427164015-329d68c4e92d
k8s.io/apimachinery => github.com/sttts/kubernetes/staging/src/k8s.io/apimachinery v0.0.0-20220427164015-329d68c4e92d
k8s.io/apiserver => github.com/sttts/kubernetes/staging/src/k8s.io/apiserver v0.0.0-20220427164015-329d68c4e92d
k8s.io/cli-runtime => github.com/sttts/kubernetes/staging/src/k8s.io/cli-runtime v0.0.0-20220427164015-329d68c4e92d
k8s.io/client-go => github.com/sttts/kubernetes/staging/src/k8s.io/client-go v0.0.0-20220427164015-329d68c4e92d
k8s.io/cloud-provider => github.com/sttts/kubernetes/staging/src/k8s.io/cloud-provider v0.0.0-20220427164015-329d68c4e92d
k8s.io/cluster-bootstrap => github.com/sttts/kubernetes/staging/src/k8s.io/cluster-bootstrap v0.0.0-20220427164015-329d68c4e92d
k8s.io/code-generator => github.com/sttts/kubernetes/staging/src/k8s.io/code-generator v0.0.0-20220427164015-329d68c4e92d
k8s.io/component-base => github.com/sttts/kubernetes/staging/src/k8s.io/component-base v0.0.0-20220427164015-329d68c4e92d
k8s.io/component-helpers => github.com/sttts/kubernetes/staging/src/k8s.io/component-helpers v0.0.0-20220427164015-329d68c4e92d
k8s.io/controller-manager => github.com/sttts/kubernetes/staging/src/k8s.io/controller-manager v0.0.0-20220427164015-329d68c4e92d
k8s.io/cri-api => github.com/sttts/kubernetes/staging/src/k8s.io/cri-api v0.0.0-20220427164015-329d68c4e92d
k8s.io/csi-translation-lib => github.com/sttts/kubernetes/staging/src/k8s.io/csi-translation-lib v0.0.0-20220427164015-329d68c4e92d
k8s.io/kube-aggregator => github.com/sttts/kubernetes/staging/src/k8s.io/kube-aggregator v0.0.0-20220427164015-329d68c4e92d
k8s.io/kube-controller-manager => github.com/sttts/kubernetes/staging/src/k8s.io/kube-controller-manager v0.0.0-20220427164015-329d68c4e92d
k8s.io/kube-proxy => github.com/sttts/kubernetes/staging/src/k8s.io/kube-proxy v0.0.0-20220427164015-329d68c4e92d
k8s.io/kube-scheduler => github.com/sttts/kubernetes/staging/src/k8s.io/kube-scheduler v0.0.0-20220427164015-329d68c4e92d
k8s.io/kubectl => github.com/sttts/kubernetes/staging/src/k8s.io/kubectl v0.0.0-20220427164015-329d68c4e92d
k8s.io/kubelet => github.com/sttts/kubernetes/staging/src/k8s.io/kubelet v0.0.0-20220427164015-329d68c4e92d
k8s.io/kubernetes => github.com/sttts/kubernetes v0.0.0-20220427164015-329d68c4e92d
k8s.io/legacy-cloud-providers => github.com/sttts/kubernetes/staging/src/k8s.io/legacy-cloud-providers v0.0.0-20220427164015-329d68c4e92d
k8s.io/metrics => github.com/sttts/kubernetes/staging/src/k8s.io/metrics v0.0.0-20220427164015-329d68c4e92d
k8s.io/mount-utils => github.com/sttts/kubernetes/staging/src/k8s.io/mount-utils v0.0.0-20220427164015-329d68c4e92d
k8s.io/pod-security-admission => github.com/sttts/kubernetes/staging/src/k8s.io/pod-security-admission v0.0.0-20220427164015-329d68c4e92d
k8s.io/sample-apiserver => github.com/sttts/kubernetes/staging/src/k8s.io/sample-apiserver v0.0.0-20220427164015-329d68c4e92d
)
Loading

0 comments on commit edf8953

Please sign in to comment.