Skip to content

Commit

Permalink
do not start validation controller if validation is disabled (istio#1…
Browse files Browse the repository at this point in the history
…6612)

Signed-off-by: Shriram Rajagopalan <[email protected]>
  • Loading branch information
rshriram authored and istio-testing committed Aug 28, 2019
1 parent c07c0eb commit 8a39280
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions galley/pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ func New(a *settings.Args) *Server {
readiness := components.NewProbe(&a.Readiness)
s.host.Add(readiness)

validation := components.NewValidation(a.KubeConfig, a.ValidationArgs, liveness.Controller(), readiness.Controller())
s.host.Add(validation)
if a.ValidationArgs != nil && a.ValidationArgs.EnableValidation {
validation := components.NewValidation(a.KubeConfig, a.ValidationArgs, liveness.Controller(), readiness.Controller())
s.host.Add(validation)
}

if a.EnableServer {
if a.UseOldProcessor {
Expand Down

0 comments on commit 8a39280

Please sign in to comment.