Skip to content

Commit

Permalink
Merge pull request #16 from pusher/default-ignored-paths
Browse files Browse the repository at this point in the history
Ignore kubectl last applied annotation by default
  • Loading branch information
mthssdrbrg authored Jul 2, 2019
2 parents 5e76f77 + 127a8d5 commit e808ee4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/quack/quack.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ func (ah *AdmissionHook) Initialize(kubeClientConfig *restclient.Config, stopCh
}
ah.client = client

// Add lastAppliedConfigPath to ignored paths, unless it's already present
if !contains(ah.IgnoredPaths, lastAppliedConfigPath) {
ah.IgnoredPaths = append(ah.IgnoredPaths, lastAppliedConfigPath)
}

glog.Info("Webhook Initialization Complete.")
return nil
}
Expand Down

0 comments on commit e808ee4

Please sign in to comment.