MTFF: Allow viewers access in cloud (#114607)

* Reapply "K8s: read resource configs from API Enablement for API Builders" (#114475)

This reverts commit 4130bd9cd3.

* revert part that broke things

* FF service changes are gonna come later

* MTFF: allow viewers access to MTFF by enforcing runtime_config for custom routes

* unused var

* removed now

* pass the test, include defaults

* revert sample.ini change
This commit is contained in:
Charandas
2025-12-08 17:37:10 -08:00
committed by GitHub
parent 802e208440
commit 16f5eab786
8 changed files with 181 additions and 12 deletions
+3 -4
View File
@@ -792,7 +792,7 @@ func (c *K8sTestHelper) NewDiscoveryClient() *discovery.DiscoveryClient {
return client
}
func (c *K8sTestHelper) GetGroupVersionInfoJSON(group string) string {
func (c *K8sTestHelper) GetGroupVersionInfoJSON(group string) (string, error) {
c.t.Helper()
disco := c.NewDiscoveryClient()
@@ -823,12 +823,11 @@ func (c *K8sTestHelper) GetGroupVersionInfoJSON(group string) string {
if item.Metadata.Name == group {
v, err := json.MarshalIndent(item.Versions, "", " ")
require.NoError(c.t, err)
return string(v)
return string(v), nil
}
}
require.Failf(c.t, "could not find discovery info for: %s", group)
return ""
return "", goerrors.New("could not find discovery info for: " + group)
}
func (c *K8sTestHelper) CreateDS(cmd *datasources.AddDataSourceCommand) *datasources.DataSource {