Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SplitOrFail (0.16 sec)

  1. pkg/test/framework/components/echo/config/source.go

    	// MustYAML calls GetYAML and panics if an error occurs.
    	MustYAML() string
    
    	// Split this source into individual CRDs.
    	Split() ([]Source, error)
    
    	// SplitOrFail calls Split and fails if an error occurs.
    	SplitOrFail(t test.Failer) []Source
    
    	// MustSplit calls Split and panics if an error occurs.
    	MustSplit() []Source
    
    	// Params returns a copy of the parameters for this Source.
    	Params() param.Params
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/config/builder.go

    func (b *Builder) Source(sources ...Source) *Builder {
    	b.t.Helper()
    	out := b.Copy()
    
    	for _, s := range sources {
    		// Split the source so that we process a single CRD at a time.
    		for _, s := range s.SplitOrFail(b.t) {
    			// If the caller set namespaces with literal strings, replace with namespace.Instance objects.
    			s = replaceNamespaceStrings(s)
    
    			tpl := s.TemplateOrFail(out.t)
    			need := tpl.MissingParams(s.Params())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 23:42:29 UTC 2022
    - 7.6K bytes
    - Viewed (0)
Back to top