- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for NewSuggestedEnsureStrategy (0.37 sec)
-
pkg/registry/flowcontrol/ensurer/flowschema_test.go
strategy: NewSuggestedEnsureStrategy[*flowcontrolv1.FlowSchema], bootstrap: newFlowSchema("fs1", "pl1", 100).Object(), current: nil, expected: newFlowSchema("fs1", "pl1", 100).Object(), }, { name: "suggested flow schema exists, auto update is enabled, spec does not match - current object should be updated", strategy: NewSuggestedEnsureStrategy[*flowcontrolv1.FlowSchema],
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 15.2K bytes - Viewed (0) -
pkg/registry/flowcontrol/ensurer/prioritylevelconfiguration_test.go
}{ // for suggested configurations { name: "suggested priority level configuration does not exist - the object should always be re-created", strategy: NewSuggestedEnsureStrategy[*flowcontrolv1.PriorityLevelConfiguration], bootstrap: newPLConfiguration("pl1").WithLimited(10).Object(), current: nil, expected: newPLConfiguration("pl1").WithLimited(10).Object(), }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 14:34:53 UTC 2024 - 19.8K bytes - Viewed (0) -
pkg/registry/flowcontrol/rest/storage_flowcontrol.go
return err } fsOps := ensurer.NewFlowSchemaOps(clientset.FlowSchemas(), fsLister) return ensurer.EnsureConfigurations(ctx, fsOps, flowcontrolbootstrap.SuggestedFlowSchemas, ensurer.NewSuggestedEnsureStrategy[*flowcontrolv1.FlowSchema]()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 12.3K bytes - Viewed (0) -
pkg/registry/flowcontrol/ensurer/strategy.go
} func (oo objectOps[ObjectType]) SpecEqualish(expected, actual ObjectType) bool { return oo.specEqualish(expected, actual) } // NewSuggestedEnsureStrategy returns an EnsureStrategy for suggested config objects func NewSuggestedEnsureStrategy[ObjectType configurationObjectType]() EnsureStrategy[ObjectType] { return &strategy[ObjectType]{ alwaysAutoUpdateSpec: false, name: "suggested", }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:40 UTC 2023 - 14K bytes - Viewed (0)