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 name: Build docker image
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
needs: [lint, test, test-e2e]
steps: steps:
- name: Clone the code - name: Clone the code
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

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

View File

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