FeatureToggles: Add dev only feature toggle for apiserver (#62726)

This commit is contained in:
Ryan McKinley 2023-02-01 12:28:19 -08:00 committed by GitHub
parent ba6500576b
commit d4f4a83574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 0 deletions

View File

@ -110,6 +110,7 @@ The following toggles require explicitly setting Grafana's [app mode]({{< relref
| `publicDashboardsEmailSharing` | Allows public dashboard sharing to be restricted to only allowed emails |
| `k8s` | Explore native k8s integrations |
| `k8sDashboards` | Save dashboards via k8s |
| `apiserver` | Add a k8s API server proxy |
| `dashboardsFromStorage` | Load dashboards from the generic storage interface |
| `export` | Export grafana instance (to git, etc) |
| `grpcServer` | Run GRPC server |

View File

@ -43,6 +43,7 @@ export interface FeatureToggles {
storage?: boolean;
k8s?: boolean;
k8sDashboards?: boolean;
apiserver?: boolean;
supportBundles?: boolean;
dashboardsFromStorage?: boolean;
export?: boolean;

View File

@ -154,6 +154,12 @@ var (
State: FeatureStateAlpha,
RequiresDevMode: true,
},
{
Name: "apiserver",
Description: "Add a k8s API server proxy",
State: FeatureStateAlpha,
RequiresDevMode: true,
},
{
Name: "supportBundles",
Description: "Support bundles for troubleshooting",

View File

@ -115,6 +115,10 @@ const (
// Save dashboards via k8s
FlagK8sDashboards = "k8sDashboards"
// FlagApiserver
// Add a k8s API server proxy
FlagApiserver = "apiserver"
// FlagSupportBundles
// Support bundles for troubleshooting
FlagSupportBundles = "supportBundles"