Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NewDefaultLogger (0.19 sec)

  1. operator/pkg/helmreconciler/prune_test.go

    			assert.NoError(t, err)
    			h := &HelmReconciler{
    				client:     cl,
    				kubeClient: kube.NewFakeClientWithVersion("24"),
    				opts: &Options{
    					ProgressLog: progress.NewLog(),
    					Log:         clog.NewDefaultLogger(),
    				},
    				iop:           iop,
    				countLock:     &sync.Mutex{},
    				prunedKindSet: map[schema.GroupKind]struct{}{},
    			}
    			if i == 0 {
    				h1 = h
    			}
    			manifestMap, err := h.RenderCharts()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 15 12:13:37 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. operator/pkg/util/clog/clog.go

    		s = log.RegisterScope(log.DefaultScopeName, log.DefaultScopeName)
    	}
    	return &ConsoleLogger{
    		stdOut: stdOut,
    		stdErr: stdErr,
    		scope:  s,
    	}
    }
    
    // NewDefaultLogger creates a new logger that outputs to stdout/stderr at default scope.
    func NewDefaultLogger() *ConsoleLogger {
    	return NewConsoleLogger(os.Stdout, os.Stderr, nil)
    }
    
    func (l *ConsoleLogger) LogAndPrint(v ...any) {
    	if len(v) == 0 {
    		return
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. operator/cmd/mesh/manifest_shared_test.go

    		}
    	}
    	return nil
    }
    
    func fakeControllerReconcile(inFile string, chartSource chartSourceType, opts *helmreconciler.Options) (*ObjectSet, error) {
    	c := kube.NewFakeClientWithVersion("25")
    	l := clog.NewDefaultLogger()
    	_, iop, err := manifest.GenerateConfig(
    		[]string{inFileAbsolutePath(inFile)},
    		[]string{"installPackagePath=" + string(chartSource)},
    		false, c, l)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 20 22:39:28 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. operator/pkg/verifier/verifier.go

    	filenames []string, controlPlaneOpts clioptions.ControlPlaneOptions,
    	options ...StatusVerifierOptions,
    ) (*StatusVerifier, error) {
    	verifier := StatusVerifier{
    		logger:           clog.NewDefaultLogger(),
    		successMarker:    "✅",
    		failureMarker:    "❌",
    		istioNamespace:   istioNamespace,
    		manifestsPath:    manifestsPath,
    		filenames:        filenames,
    		controlPlaneOpts: controlPlaneOpts,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. operator/pkg/controller/istiocontrolplane/istiocontrolplane_controller.go

    		operatorFailedToConfigure.Log(scope).Errorf("failed to apply IstioOperator resources. Error %s", err)
    		return reconcile.Result{}, err
    	}
    	helmReconcilerOptions := &helmreconciler.Options{
    		Log:         clog.NewDefaultLogger(),
    		ProgressLog: progress.NewLog(),
    	}
    	if r.options != nil {
    		helmReconcilerOptions.Force = r.options.Force
    	}
    	exists := revtag.PreviousInstallExists(context.Background(), r.kubeClient.Kube())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. operator/cmd/mesh/manifest-generate_test.go

    		Force:     false,
    		SkipPrune: false,
    		Log:       clog.NewDefaultLogger(),
    	})
    	assert.NoError(t, err)
    
    	// Install a default revision should not cause any error
    	objs, err := fakeControllerReconcile("empty", tmpCharts, &helmreconciler.Options{
    		Force:     false,
    		SkipPrune: false,
    		Log:       clog.NewDefaultLogger(),
    	})
    	assert.NoError(t, err)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 18:05:06 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  7. operator/pkg/helmreconciler/reconciler.go

    	ProgressLog *progress.Log
    	// Force ignores validation errors
    	Force bool
    	// SkipPrune will skip pruning
    	SkipPrune bool
    }
    
    var defaultOptions = &Options{
    	Log:         clog.NewDefaultLogger(),
    	ProgressLog: progress.NewLog(),
    }
    
    // NewHelmReconciler creates a HelmReconciler and returns a ptr to it
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 22 08:32:23 UTC 2024
    - 22K bytes
    - Viewed (0)
Back to top