Skip to content

Commit

Permalink
add webhook flag
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-riefolo committed Oct 9, 2019
1 parent c6b8c30 commit be25807
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/default/manager_webhook_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
containers:
- name: manager
ports:
- containerPort: 443
- containerPort: 9443
name: webhook-server
protocol: TCP
volumeMounts:
Expand Down
8 changes: 8 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func main() {
awsClusterConcurrency int
awsMachineConcurrency int
syncPeriod time.Duration
webhookPort int
)

flag.StringVar(
Expand Down Expand Up @@ -108,6 +109,12 @@ func main() {
"The minimum interval at which watched resources are reconciled (e.g. 15m)",
)

flag.IntVar(&webhookPort,
"webhook-port",
9443,
"Webhook server port",
)

flag.Parse()

if watchNamespace != "" {
Expand Down Expand Up @@ -135,6 +142,7 @@ func main() {
SyncPeriod: &syncPeriod,
Namespace: watchNamespace,
EventBroadcaster: broadcaster,
Port: webhookPort,
})
if err != nil {
setupLog.Error(err, "unable to start manager")
Expand Down

0 comments on commit be25807

Please sign in to comment.