Skip to content

Commit

Permalink
Merge pull request #22 from ibuildthecloud/master
Browse files Browse the repository at this point in the history
 Allow webhook to run when mcm is disabled
  • Loading branch information
ibuildthecloud authored Jun 16, 2021
2 parents 30c05dd + 918498f commit b9f77d5
Show file tree
Hide file tree
Showing 8 changed files with 475 additions and 220 deletions.
2 changes: 2 additions & 0 deletions charts/rancher-webhook/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
value: "{{.Values.stamp}}"
- name: ENABLE_CAPI
value: "{{.Values.capi.enabled}}"
- name: ENABLE_MCM
value: "{{.Values.mcm.enabled}}"
- name: NAMESPACE
valueFrom:
fieldRef:
Expand Down
3 changes: 3 additions & 0 deletions charts/rancher-webhook/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ global:

capi:
enabled: false

mcm:
enabled: true
76 changes: 38 additions & 38 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,48 @@ module github.com/rancher/webhook
go 1.14

replace (
k8s.io/api => k8s.io/api v0.20.2
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.20.2
k8s.io/apimachinery => k8s.io/apimachinery v0.20.2
k8s.io/apiserver => k8s.io/apiserver v0.20.2
k8s.io/cli-runtime => k8s.io/cli-runtime v0.20.2
k8s.io/client-go => github.com/rancher/client-go v0.20.2-rancher.1
k8s.io/cloud-provider => k8s.io/cloud-provider v0.20.2
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.20.2
k8s.io/code-generator => k8s.io/code-generator v0.20.2
k8s.io/component-base => k8s.io/component-base v0.20.2
k8s.io/component-helpers => k8s.io/component-helpers v0.20.2
k8s.io/controller-manager => k8s.io/controller-manager v0.20.2
k8s.io/cri-api => k8s.io/cri-api v0.20.2
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.20.2
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.20.2
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.20.2
k8s.io/kube-proxy => k8s.io/kube-proxy v0.20.2
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.20.2
k8s.io/kubectl => k8s.io/kubectl v0.20.2
k8s.io/kubelet => k8s.io/kubelet v0.20.2
k8s.io/kubernetes => k8s.io/kubernetes v1.20.2
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.20.2
k8s.io/metrics => k8s.io/metrics v0.20.2
k8s.io/mount-utils => k8s.io/mount-utils v0.20.2
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.20.2
k8s.io/api => k8s.io/api v0.21.0
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.21.0
k8s.io/apimachinery => k8s.io/apimachinery v0.21.0
k8s.io/apiserver => k8s.io/apiserver v0.21.0
k8s.io/cli-runtime => k8s.io/cli-runtime v0.21.0
k8s.io/client-go => github.com/rancher/client-go v0.21.0-rancher.1
k8s.io/cloud-provider => k8s.io/cloud-provider v0.21.0
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.21.0
k8s.io/code-generator => k8s.io/code-generator v0.21.0
k8s.io/component-base => k8s.io/component-base v0.21.0
k8s.io/component-helpers => k8s.io/component-helpers v0.21.0
k8s.io/controller-manager => k8s.io/controller-manager v0.21.0
k8s.io/cri-api => k8s.io/cri-api v0.21.0
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.21.0
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.21.0
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.21.0
k8s.io/kube-proxy => k8s.io/kube-proxy v0.21.0
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.21.0
k8s.io/kubectl => k8s.io/kubectl v0.21.0
k8s.io/kubelet => k8s.io/kubelet v0.21.0
k8s.io/kubernetes => k8s.io/kubernetes v1.21.0
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.21.0
k8s.io/metrics => k8s.io/metrics v0.21.0
k8s.io/mount-utils => k8s.io/mount-utils v0.21.0
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.21.0
)

require (
github.com/gorilla/mux v1.8.0
github.com/rancher/dynamiclistener v0.2.1-0.20201110045217-9b1b7d3132e8
github.com/rancher/lasso v0.0.0-20210218221607-54c79222a9ad
github.com/rancher/lasso/controller-runtime v0.0.0-20210219163000-fcdfcec12969
github.com/rancher/rancher/pkg/apis v0.0.0-20210219041911-44129f287e3c
github.com/rancher/wrangler v0.7.3-0.20210219161540-ef7fe9ce2443
github.com/sirupsen/logrus v1.6.0
k8s.io/api v0.20.2
k8s.io/apiextensions-apiserver v0.20.2
k8s.io/apimachinery v0.20.2
k8s.io/apiserver v0.20.2
github.com/rancher/lasso v0.0.0-20210408231703-9ddd9378d08d
github.com/rancher/lasso/controller-runtime v0.0.0-20210408231703-9ddd9378d08d
github.com/rancher/rancher/pkg/apis v0.0.0-20210503205929-f695b78a6108
github.com/rancher/wrangler v0.8.1-0.20210429171250-3bef7a4bfeef
github.com/sirupsen/logrus v1.7.0
k8s.io/api v0.21.0
k8s.io/apiextensions-apiserver v0.21.0
k8s.io/apimachinery v0.21.0
k8s.io/apiserver v0.21.0
k8s.io/client-go v12.0.0+incompatible
k8s.io/kubernetes v1.20.2
k8s.io/utils v0.0.0-20210111153108-fddb29f9d009
sigs.k8s.io/cluster-api v0.3.11-0.20210219155426-bc756c4e7ed0
sigs.k8s.io/controller-runtime v0.8.2
k8s.io/kubernetes v1.21.0
k8s.io/utils v0.0.0-20210305010621-2afb4311ab10
sigs.k8s.io/cluster-api v0.3.11-0.20210430180359-45b6080c2764
sigs.k8s.io/controller-runtime v0.9.0-beta.0
)
Loading

0 comments on commit b9f77d5

Please sign in to comment.