- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for AddConfigInfoMetadata (0.22 sec)
-
pilot/pkg/networking/util/util.go
func BuildConfigInfoMetadata(config config.Meta) *core.Metadata { return AddConfigInfoMetadata(nil, config) } // AddConfigInfoMetadata adds name.namespace of the config, the type, etc // to the given core.Metadata struct, if metadata is not initialized, build a new metadata. func AddConfigInfoMetadata(metadata *core.Metadata, config config.Meta) *core.Metadata { if metadata == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 28.5K bytes - Viewed (0) -
pilot/pkg/networking/core/cluster_builder.go
// Add the DestinationRule+subsets metadata. Metadata here is generated on a per-cluster // basis in buildCluster, so we can just insert without a copy. subsetCluster.cluster.Metadata = util.AddConfigInfoMetadata(subsetCluster.cluster.Metadata, destRule.Meta) util.AddSubsetToMetadata(subsetCluster.cluster.Metadata, subset.Name)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 31.6K bytes - Viewed (0) -
pilot/pkg/networking/util/util_test.go
}, }, }, }, }, } for _, v := range cases { t.Run(v.name, func(tt *testing.T) { got := AddConfigInfoMetadata(v.meta, v.in) if diff := cmp.Diff(got, v.want, protocmp.Transform()); diff != "" { tt.Errorf("AddConfigInfoMetadata(%v) produced incorrect result:\ngot: %v\nwant: %v\nDiff: %s", v.in, got, v.want, diff) } }) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 01:17:58 UTC 2024 - 40K bytes - Viewed (0)