diff --git a/.github/workflows/go-ci.yml b/.github/workflows/go-ci.yml index c4ae20e..4dc1b90 100644 --- a/.github/workflows/go-ci.yml +++ b/.github/workflows/go-ci.yml @@ -22,6 +22,13 @@ jobs: with: go-version: '1.23' + # Only run in this linux based runner + - name: Check Formatting + run: | + if [ "$(gofmt -l . | grep -v 'event/.*_test.go' | wc -l)" -gt 0 ]; then + gofmt -l . | grep -v 'event/.*_test.go' + exit 1 + fi # cache simple-responder to save the build time - name: Restore Simple Responder id: restore-simple-responder diff --git a/llama-swap.go b/llama-swap.go index 91ad71b..3bdcef1 100644 --- a/llama-swap.go +++ b/llama-swap.go @@ -133,7 +133,7 @@ func main() { ReloadingState: proxy.ReloadingStateStart, }) } else if changeEvent.Name == filepath.Join(configDir, "..data") && changeEvent.Has(fsnotify.Create) { - // the change for k8s configmap + // the change for k8s configmap event.Emit(proxy.ConfigFileChangedEvent{ ReloadingState: proxy.ReloadingStateStart, })