You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remove effective_on attribute from tracker, use expires_on only
- Remove effective_on field from taskRecord struct
- Replace effective_on logic with expires_on-only approach
- Most recent record (index 0) have no expires_on (always valid)
- Previously demoted records get expiry based on demotion time + inEffectDays
- Use --in-effect-days flag to set expiry of relevant records
- Update all tests to reflect new expires_on-only behavior
resolves: EC-423
cmd.Flags().BoolVar(¶ms.freshen, "freshen", params.freshen, "resolve image tags to catch updates and use the latest image for the tag")
183
183
184
-
cmd.Flags().IntVar(¶ms.inEffectDays, "in-effect-days", params.inEffectDays, "number of days representing when the added reference becomes effective")
184
+
cmd.Flags().IntVar(¶ms.inEffectDays, "in-effect-days", params.inEffectDays, "number of days after which older bundle entries expire when a new bundle entry is added (most recent entry stays valid until replaced)")
--freshen:: resolve image tags to catch updates and use the latest image for the tag (Default: false)
66
66
-g, --git:: git references to track - may be used multiple times (Default: [])
67
67
-h, --help:: help for bundle (Default: false)
68
-
--in-effect-days:: number of days representing when the added reference becomes effective (Default: 30)
68
+
--in-effect-days:: number of days after which older bundle entries expire when a new bundle entry is added (most recent entry stays valid until replaced) (Default: 30)
69
69
-i, --input:: existing tracking file
70
70
-o, --output:: write modified tracking file to a file. Use empty string for stdout, default behavior
71
71
-p, --prune:: remove entries that are no longer acceptable, i.e. a newer entry already effective exists (Default: true)
When ec command is run with "track tekton-task --input ${TMPDIR}/bundles.yaml --git git+https://forge.io/organization/repository.git//task/0.1/task.yaml@f0cacc1af00d"
When ec command is run with "track tekton-task --prune --input ${TMPDIR}/bundles.yaml --git git+https://forge.io/organization/repository.git//task/0.1/task.yaml@f0cacc1a"
0 commit comments