Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for buildVMConfig (0.11 sec)

  1. pilot/pkg/model/extensions.go

    	resourceName := p.Namespace + "." + p.Name
    	return &wasmextensions.PluginConfig{
    		Name:          resourceName,
    		RootId:        plugin.PluginName,
    		Configuration: cfg,
    		Vm:            buildVMConfig(datasource, p.ResourceVersion, plugin),
    		FailOpen:      plugin.FailStrategy == extensions.FailStrategy_FAIL_OPEN,
    	}
    }
    
    type WasmPluginListenerInfo struct {
    	Port  int
    	Class istionetworking.ListenerClass
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. pilot/pkg/model/extensions_test.go

    							WasmResourceVersionEnv: "dummy-resource-version",
    						},
    					},
    				},
    			},
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.desc, func(t *testing.T) {
    			got := buildVMConfig(nil, "dummy-resource-version", &extensions.WasmPlugin{
    				VmConfig:        tc.vm,
    				ImagePullSecret: "secret-name",
    				ImagePullPolicy: tc.policy,
    			})
    			assert.Equal(t, tc.expected, got)
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top