Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit 715c319

Browse files
author
mikeV02
committed
Correct --use-strategies=false
There is a type where UseStrategiesFlagCore is repeated and t3c does not allow to use --use-strategy=false
1 parent ed9795f commit 715c319

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
66
## [unreleased]
77
### Added
88
- [#7812](https://github.com/apache/trafficcontrol/pull/7812) *Traffic Portal*: Expose the `configUpdateFailed` and `revalUpdateFailed` fields on the server table.
9+
- [#7833](https://github.com/apache/trafficcontrol/pull/7833) *Traffic Control Cache Config*: Correct --use-strategies=false.
910

1011
### Changed
1112
- [#7614](https://github.com/apache/trafficcontrol/pull/7614) *Traffic Ops* The database upgrade process no longer overwrites changes users may have made to the initially seeded data.

cache-config/t3c-apply/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ func GetCfg(appVersion string, gitRevision string) (Cfg, error) {
314314

315315
const useStrategiesFlagName = "use-strategies"
316316
const defaultUseStrategies = t3cutil.UseStrategiesFlagFalse
317-
useStrategiesPtr := getopt.EnumLong(useStrategiesFlagName, 0, []string{string(t3cutil.UseStrategiesFlagTrue), string(t3cutil.UseStrategiesFlagCore), string(t3cutil.UseStrategiesFlagCore), ""}, "", "[true | core| false] whether to generate config using strategies.yaml instead of parent.config. If true use the parent_select plugin, if 'core' use ATS core strategies, if false use parent.config.")
317+
useStrategiesPtr := getopt.EnumLong(useStrategiesFlagName, 0, []string{string(t3cutil.UseStrategiesFlagTrue), string(t3cutil.UseStrategiesFlagCore), string(t3cutil.UseStrategiesFlagFalse), ""}, "", "[true | core| false] whether to generate config using strategies.yaml instead of parent.config. If true use the parent_select plugin, if 'core' use ATS core strategies, if false use parent.config.")
318318

319319
const useLocalATSVersionFlagName = "local-ats-version"
320320
useLocalATSVersionPtr := getopt.BoolLong(useLocalATSVersionFlagName, 0, "[true | false] whether to use the local installed ATS version for config generation. If false, attempt to use the Server Package Parameter and fall back to ATS 5. If true and the local ATS version cannot be found, an error will be logged and the version set to ATS 5. Default is false")

0 commit comments

Comments
 (0)