Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
Signed-off-by: Manik2708 <[email protected]>
  • Loading branch information
Manik2708 committed Jan 9, 2025
1 parent 3b76f4b commit 890ea67
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions pkg/es/config/esrollovercfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@ func (e EsRolloverFlagConfig) InitRolloverOptionsFromViper(v *viper.Viper) Rollo
return *r
}

func DefaultRolloverOptions() RolloverOptions {
return RolloverOptions{
Archive: defaultArchiveValue,
ILMPolicyName: defaultIlmPolicyName,
Timeout: defaultTimeout,
SkipDependencies: defaultSkipDependencies,
AdaptiveSampling: defaultAdaptiveSampling,
}
}

func (e EsRolloverFlagConfig) AddFlagsForLookBackOptions(flags *flag.FlagSet) {
flags.String(e.Prefix+unit, defaultUnit, "used with lookback to remove indices from read alias e.g, days, weeks, months, years")
flags.Int(e.Prefix+unitCount, defaultUnitCount, "count of UNITs")
Expand All @@ -72,13 +62,6 @@ func (e EsRolloverFlagConfig) InitLookBackFromViper(v *viper.Viper) LookBackOpti
return *l
}

func DefaultLookBackOptions() LookBackOptions {
return LookBackOptions{
Unit: defaultUnit,
UnitCount: defaultUnitCount,
}
}

func (e EsRolloverFlagConfig) AddFlagsForRollBackOptions(flags *flag.FlagSet) {
flags.String(e.Prefix+conditions, defaultRollBackCondition, "conditions used to rollover to a new write index")
}
Expand All @@ -88,9 +71,3 @@ func (e EsRolloverFlagConfig) InitRollBackFromViper(v *viper.Viper) RollBackOpti
r.Conditions = v.GetString(e.Prefix + conditions)
return *r
}

func DefaultRollBackConditions() RollBackOptions {
return RollBackOptions{
Conditions: defaultRollBackCondition,
}
}

0 comments on commit 890ea67

Please sign in to comment.