Skip to content

Commit 1741c14

Browse files
authored
remove apikey feature flag (#293)
1 parent 931a7ad commit 1741c14

2 files changed

Lines changed: 2 additions & 16 deletions

File tree

app/app.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ func NewApp(params AppParams) (*cli.App, error) {
2828
EnableDebugLogsFlag,
2929
},
3030
}
31-
for _, c := range params.Commands {
32-
if !IsFeatureEnabled(APIKeyFeatureFlag) && c.Name == "apikey" {
33-
continue
34-
}
35-
app.Commands = append(app.Commands, c)
36-
}
31+
app.Commands = params.Commands
3732
return app, nil
3833
}

app/feature.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ import (
1111
)
1212

1313
var (
14-
APIKeyFeatureFlag = "enable-apikey"
1514
GCPSinkFeatureFlag = "enable-gcp-sink"
1615
featureflagFileName = "feature.json"
1716
)
1817

19-
var supportFeatureFlags = []string{APIKeyFeatureFlag, GCPSinkFeatureFlag}
18+
var supportFeatureFlags = []string{GCPSinkFeatureFlag}
2019

2120
type FeatureFlag struct {
2221
Name string `json:"Name"`
@@ -119,14 +118,6 @@ func NewFeatureCommand() (CommandOut, error) {
119118
Usage: "feature commands",
120119
Hidden: true,
121120
Subcommands: []*cli.Command{
122-
{
123-
Name: "toggle-apikey",
124-
Aliases: []string{"tak"},
125-
Usage: "switch api keys on/off",
126-
Action: func(c *cli.Context) error {
127-
return toggleFeature(APIKeyFeatureFlag)
128-
},
129-
},
130121
{
131122
Name: "toggle-gcp-sink",
132123
Aliases: []string{"tgs"},

0 commit comments

Comments
 (0)