mirror of https://github.com/linkerd/linkerd2.git
20 lines
467 B
Go
20 lines
467 B
Go
package proxyinjector
|
|
|
|
import (
|
|
"github.com/linkerd/linkerd2/controller/k8s"
|
|
injector "github.com/linkerd/linkerd2/controller/proxy-injector"
|
|
"github.com/linkerd/linkerd2/controller/webhook"
|
|
)
|
|
|
|
// Main executes the proxy-injector subcommand
|
|
func Main(args []string) {
|
|
webhook.Launch(
|
|
[]k8s.APIResource{k8s.NS, k8s.Deploy, k8s.RC, k8s.RS, k8s.Job, k8s.DS, k8s.SS, k8s.Pod},
|
|
9995,
|
|
injector.Inject,
|
|
"linkerd-proxy-injector",
|
|
"proxy-injector",
|
|
args,
|
|
)
|
|
}
|