- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewFileSnapshot (0.26 sec)
-
pilot/pkg/config/monitor/file_snapshot_test.go
` func TestFileSnapshotNoFilter(t *testing.T) { g := NewWithT(t) ts := &testState{ ConfigFiles: map[string][]byte{"gateway.yml": []byte(gatewayYAML)}, } ts.testSetup(t) fileWatcher := NewFileSnapshot(ts.rootPath, collection.SchemasFor(), "foo") configs, err := fileWatcher.ReadConfigFiles() g.Expect(err).NotTo(HaveOccurred()) g.Expect(configs).To(HaveLen(1)) g.Expect(configs[0].Domain).To(Equal("foo"))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 3.7K bytes - Viewed (0) -
pilot/pkg/config/monitor/file_snapshot.go
type FileSnapshot struct { root string domainSuffix string configTypeFilter map[config.GroupVersionKind]bool } // NewFileSnapshot returns a snapshotter. // If no types are provided in the descriptor, all Istio types will be allowed. func NewFileSnapshot(root string, schemas collection.Schemas, domainSuffix string) *FileSnapshot { snapshot := &FileSnapshot{ root: root,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 17:36:33 UTC 2024 - 3.6K bytes - Viewed (0) -
pilot/pkg/config/monitor/monitor_test.go
ts := &testState{ ConfigFiles: map[string][]byte{"gateway.yml": []byte(statusRegressionYAML)}, } ts.testSetup(t) store := memory.Make(collection.SchemasFor(collections.Gateway)) fileWatcher := NewFileSnapshot(ts.rootPath, collection.SchemasFor(), "foo") mon := NewMonitor("", store, fileWatcher.ReadConfigFiles, "") stop := make(chan struct{}) defer func() { close(stop) }() mon.Start(stop)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.8K bytes - Viewed (0)