Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
feat: remove addmission webhooks
Browse files Browse the repository at this point in the history
address #99

BREAKING CHANGE:
- remove admission webhooks from default YAML installation
- remove '--disable-admission-webhook'and '--admission-webhook-addr' from brain
  • Loading branch information
Frank Mai authored and guangbochen committed Jun 15, 2020
1 parent 36f5a7a commit 519e33e
Show file tree
Hide file tree
Showing 17 changed files with 3 additions and 1,224 deletions.
100 changes: 0 additions & 100 deletions api/v1alpha1/devicelink_webhook.go

This file was deleted.

8 changes: 2 additions & 6 deletions cmd/brain/options/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@ import (
)

type Options struct {
AdmissionWebhookAddr int
DisableAdmissionWebhook bool
MetricsAddr int
EnableLeaderElection bool
MetricsAddr int
EnableLeaderElection bool
}

func (in *Options) Flags(fsName string) (nfs cliflag.NamedFlagSets) {
fs := nfs.FlagSet(fsName)
fs.IntVar(&in.AdmissionWebhookAddr, "admission-webhook-addr", in.AdmissionWebhookAddr, "The port is used for serving admission server.")
fs.BoolVar(&in.DisableAdmissionWebhook, "disable-admission-webhook", in.DisableAdmissionWebhook, "Disable admission webhook for controller.")
fs.IntVar(&in.MetricsAddr, "metrics-addr", in.MetricsAddr, "The port is used for serving prometheus metrics")
fs.BoolVar(&in.EnableLeaderElection, "enable-leader-election", in.EnableLeaderElection, "Enable leader election for controller. Enabling this will ensure there is only one active controller manager.")
return
Expand Down
1 change: 0 additions & 1 deletion deploy/e2e/all_in_one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@ spec:
- args:
- brain
- --enable-leader-election
- --disable-admission-webhook
image: cnrancher/octopus:master
imagePullPolicy: Always
name: octopus
Expand Down
Loading

0 comments on commit 519e33e

Please sign in to comment.