- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for MustEvaluate (0.14 sec)
-
pkg/test/util/tmpl/evaluate.go
if err != nil { t.Fatalf("tmpl.EvaluateFileOrFail: %v", err) } return s } // MustEvaluate calls Evaluate and panics if there is an error. func MustEvaluate(tpl string, data any) string { s, err := Evaluate(tpl, data) if err != nil { panic(fmt.Sprintf("tmpl.MustEvaluate: %v", err)) } return s } func MustEvaluateFile(filePath string, data any) string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 3.1K bytes - Viewed (0) -
tests/integration/security/https_jwt/main_test.go
// TODO(garyan): enable the test for "PILOT_JWT_ENABLE_REMOTE_JWKS: true" as well. cfg.ControlPlaneValues = tmpl.MustEvaluate(` values: pilot: jwksResolverExtraRootCA: | {{.pem | indent 6}} env: PILOT_JWT_ENABLE_REMOTE_JWKS: false meshConfig: accessLogFile: /dev/stdout`, map[string]string{"pem": rootCaCert})
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 17 09:55:58 UTC 2024 - 2.6K bytes - Viewed (0) -
tests/integration/security/external_ca/main_test.go
close(stopChan) } func generateConfigYaml(certs []csrctrl.SignerRootCert, isConfigCluster bool, isExternalControlPlane bool) string { cert1 := certs[0] cert2 := certs[1] cfgYaml := tmpl.MustEvaluate(` values: pilot: env: EXTERNAL_CA: ISTIOD_RA_KUBERNETES_API meshConfig: defaultConfig: proxyMetadata: ISTIO_META_CERT_SIGNER: signer1
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 22 14:18:21 UTC 2023 - 4.7K bytes - Viewed (0) -
tests/integration/pilot/common/traffic.go
} } if c.templateVars != nil { for k, v := range c.templateVars(src, dsts[0]) { tmplData[k] = v } } cfg := yml.MustApplyNamespace(t, tmpl.MustEvaluate(c.config, tmplData), namespace) // we only apply to config clusters scope := t.ConfigIstio() if c.globalConfig { scope = t.ConfigKube() } return scope.YAML("", cfg).Apply() }).
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 03 19:10:01 UTC 2024 - 11.4K bytes - Viewed (0) -
pkg/test/util/yml/apply.go
var deploymentMerge appsv1.Deployment mainYaml, err := yaml.YAMLToJSON([]byte(deploymentYaml)) if err != nil { return "", fmt.Errorf("yamlToJSON error in base: %s\n%s", err, mainYaml) } patchYaml := tmpl.MustEvaluate(` spec: template: spec: imagePullSecrets: - name: {{.pullSecret}} `, map[string]string{"pullSecret": pullSecret}) overlayYaml, err := yaml.YAMLToJSON([]byte(patchYaml))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 17 07:02:38 UTC 2023 - 3.8K bytes - Viewed (0) -
pilot/pkg/networking/core/gateway_simulation_test.go
// "alpha" is created after "beta". This triggers a mismatch in the conflict resolution logic in Ingress and VirtualService, leading to unexpected results kubeConfig: tmpl.MustEvaluate(cfg, map[string]string{"Name": "alpha", "Time": "2020-01-01T00:00:00Z"}) + tmpl.MustEvaluate(cfg, map[string]string{"Name": "beta", "Time": "2010-01-01T00:00:00Z"}), calls: []simulation.Expect{ { Name: "http alpha", Call: simulation.Call{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 10 18:27:40 UTC 2024 - 46.5K bytes - Viewed (0) -
tests/integration/pilot/proxyconfig/proxyconfig_test.go
{{- end }} {{- end }} environmentVariables: {{- range $k, $v := .Values }} {{ $k }}: "{{ $v }}" {{- end }} ` return proxyConfigInstance{ namespace: ns, config: tmpl.MustEvaluate(tpl, struct { Name string Selector map[string]string Values map[string]string }{ Name: name, Selector: selector, Values: values, }), }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 6.3K bytes - Viewed (0) -
tests/integration/security/filebased_tls_origination/main_test.go
return createCustomInstances(&apps) }). Run() } func setupConfig(ctx resource.Context, cfg *istio.Config) { if cfg == nil { return } cfg.ControlPlaneValues = tmpl.MustEvaluate(` {{- if not .isExternalControlPlane }} components: egressGateways: - enabled: true name: istio-egressgateway values: gateways: istio-egressgateway: secretVolumes:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 7.3K bytes - Viewed (0) -
tests/integration/pilot/common/routing.go
t.RunTraffic(TrafficTestCase{ name: "source ip " + c.Config().Service, config: svc + tmpl.MustEvaluate(destRule, "useSourceIp: true"), call: c.CallOrFail, opts: callOpts, }) t.RunTraffic(TrafficTestCase{ name: "query param" + c.Config().Service, config: svc + tmpl.MustEvaluate(destRule, "httpQueryParameterName: some-query-param"), call: c.CallOrFail, opts: callOpts,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 21:52:51 UTC 2024 - 135.9K bytes - Viewed (0) -
tests/integration/security/ca_custom_root/main_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 9.2K bytes - Viewed (0)