Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for convertToWasmPluginWrapper (0.29 sec)

  1. pilot/pkg/model/push_context_test.go

    				extensions.PluginPhase_AUTHN: {
    					convertToWasmPluginWrapper(wasmPlugins["authn-med-prio-all"]),
    					convertToWasmPluginWrapper(wasmPlugins["authn-low-prio-all-network"]),
    					convertToWasmPluginWrapper(wasmPlugins["authn-low-prio-all"]),
    					convertToWasmPluginWrapper(wasmPlugins["global-authn-low-prio-ingress"]),
    				},
    			},
    		},
    		{
    			name: "testns-2",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  2. pilot/pkg/model/extensions.go

    		return true
    	}
    	for _, ps := range portSelectors {
    		if ps.GetNumber() != 0 && ps.GetNumber() == uint32(port) {
    			return true
    		}
    	}
    	return false
    }
    
    func convertToWasmPluginWrapper(originPlugin config.Config) *WasmPluginWrapper {
    	var ok bool
    	// Make a deep copy since we are going to mutate the resource later for secret env variable.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. pilot/pkg/model/extensions_test.go

    				Url:          "file://fake.wasm",
    				FailStrategy: extensions.FailStrategy_FAIL_OPEN,
    			},
    			out: true,
    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.desc, func(t *testing.T) {
    			out := convertToWasmPluginWrapper(config.Config{Spec: tc.in})
    			if out == nil {
    				t.Fatalf("must not get nil")
    			}
    			filter := out.BuildHTTPWasmFilter()
    			if out == nil {
    				t.Fatalf("filter can not be nil")
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. pilot/pkg/model/push_context.go

    	sortConfigByCreationTime(wasmplugins)
    	ps.wasmPluginsByNamespace = map[string][]*WasmPluginWrapper{}
    	for _, plugin := range wasmplugins {
    		if pluginWrapper := convertToWasmPluginWrapper(plugin); pluginWrapper != nil {
    			ps.wasmPluginsByNamespace[plugin.Namespace] = append(ps.wasmPluginsByNamespace[plugin.Namespace], pluginWrapper)
    		}
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
Back to top