in appconfigmgrv2/controllers/istio_instances.go [57:75]
func istioAppLabelInstance(t *appconfig.AppEnvConfigTemplateV2) (*unstructured.Unstructured, error) {
var (
gvk = istioInstanceGVK()
meta = map[string]interface{}{
"name": istioAppLabelInstanceName(t),
"namespace": t.Namespace,
}
spec = &v1beta1.Instance{
CompiledTemplate: "listentry",
Params: &types.Struct{
Fields: map[string]*types.Value{
"value": {Kind: &types.Value_StringValue{StringValue: `source.namespace + "/" + source.labels["app"]`}},
},
},
}
)
return unstructuredFromProto(gvk, meta, spec)
}