You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-12-01 22:51:45 +02:00
Fix Linting Errors (#1835)
* initial commit: add groups to azure Signed-off-by: andrewphamade@gmail.com <andrewphamade@gmail.com> * fix deprecations and linting errors Signed-off-by: Andrew Hamade <andrewphamade@gmail.com> * remove groups testing from azure provider Signed-off-by: Andrew Hamade <andrewphamade@gmail.com> * fix test error Signed-off-by: Andrew Hamade <andrewphamade@gmail.com> * verify-generate Signed-off-by: Andrew Hamade <andrewphamade@gmail.com> Signed-off-by: andrewphamade@gmail.com <andrewphamade@gmail.com> Signed-off-by: Andrew Hamade <andrewphamade@gmail.com>
This commit is contained in:
@@ -44,8 +44,8 @@ func WatchFileForUpdates(filename string, done <-chan bool, action func()) error
|
||||
|
||||
// Filter file operations based on the events sent by the watcher.
|
||||
// Execute the action() function when the following conditions are met:
|
||||
// - the real path of the file was changed (Kubernetes ConfigMap/Secret)
|
||||
// - the file is modified or created
|
||||
// - the real path of the file was changed (Kubernetes ConfigMap/Secret)
|
||||
// - the file is modified or created
|
||||
func filterEvent(watcher *fsnotify.Watcher, event fsnotify.Event, filename string, action func()) {
|
||||
switch filepath.Clean(event.Name) == filename {
|
||||
// In Kubernetes the file path is a symlink, so we should take action
|
||||
|
||||
Reference in New Issue
Block a user