comment out
Some checks failed
Tests / Run on Ubuntu (push) Successful in 1m20s
Lint / Run on Ubuntu (push) Failing after 3m39s

This commit is contained in:
Chris Richardson
2025-07-02 21:42:55 -04:00
parent 6f9570cb73
commit 1020814623
3 changed files with 6 additions and 9 deletions

View File

@@ -11,7 +11,6 @@ jobs:
name: Build docker image
runs-on: ubuntu-20.04
needs: [lint, test, test-e2e]
steps:
- name: Clone the code
uses: actions/checkout@v4

View File

@@ -27,9 +27,9 @@ func CreateFileLogger(fileName string, logLevel zapcore.LevelEnabler) logr.Logge
consoleEncoder := zapcore.NewConsoleEncoder(config)
writer := zapcore.AddSync(&lumberjack.Logger{
Filename: fileName,
MaxSize: 1000, //MB
MaxSize: 1000, // MB
MaxBackups: 3,
MaxAge: 90, //days
MaxAge: 90, // days
Compress: false,
})

View File

@@ -21,7 +21,6 @@ import (
"flag"
"os"
"path/filepath"
// Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)
// to ensure that exec-entrypoint and run can make use of them.
"go.uber.org/zap"
@@ -32,13 +31,12 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/certwatcher"
"sigs.k8s.io/controller-runtime/pkg/healthz"
//"sigs.k8s.io/controller-runtime/pkg/log/zap"
// "sigs.k8s.io/controller-runtime/pkg/log/zap"
locustiov1alpha1 "git.lilpenguins.com/crichardson/locust-operator/api/v1alpha1"
"git.lilpenguins.com/crichardson/locust-operator/internal/controller"
"sigs.k8s.io/controller-runtime/pkg/metrics/filters"
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
"sigs.k8s.io/controller-runtime/pkg/webhook"
locustiov1alpha1 "git.lilpenguins.com/crichardson/locust-operator/api/v1alpha1"
"git.lilpenguins.com/crichardson/locust-operator/internal/controller"
// +kubebuilder:scaffold:imports
)
@@ -93,7 +91,7 @@ func main() {
logger := CreateFileLogger(logFilePath, zap.DebugLevel)
//ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts)))
// ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts)))
ctrl.SetLogger(logger)
// if the enable-http2 flag is false (the default), http/2 should be disabled