Skip to content

Commit

Permalink
chore(apiusagemonitoring-filter): add warning (deprecated default cli…
Browse files Browse the repository at this point in the history
…ent tracking pattern) for library users (#949)

Signed-off-by: Maxim Tschumak <maxim.tschumak@gmail.com>
  • Loading branch information
maxim-tschumak committed Apr 17, 2019
1 parent 382f3ee commit 8c57221
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions skipper.go
Expand Up @@ -507,6 +507,8 @@ type Options struct {
ApiUsageMonitoringRealmKeys string
ApiUsageMonitoringClientKeys string
ApiUsageMonitoringRealmsTrackingPattern string
// Deprecated: ApiUsageMonitoringDefaultClientTrackingPattern
ApiUsageMonitoringDefaultClientTrackingPattern string

// Default filters directory enables default filters mechanism and sets the directory where the filters are located
DefaultFiltersDir string
Expand Down Expand Up @@ -761,6 +763,10 @@ func Run(o Options) error {
return err
}

if o.ApiUsageMonitoringDefaultClientTrackingPattern != "" {
log.Warn(`"ApiUsageMonitoringDefaultClientTrackingPattern" option is deprecated`)
}

// *DEPRECATED* create authentication for Innkeeper
inkeeperAuth := innkeeper.CreateInnkeeperAuthentication(innkeeper.AuthOptions{
InnkeeperAuthToken: o.InnkeeperAuthToken,
Expand Down

0 comments on commit 8c57221

Please sign in to comment.