@@ -30,56 +30,15 @@ type versionsImagesFlags struct {
3030var (
3131 // If you change the image tag, remember to update it in the preloading done
3232 // by GitHub Actions too (see .github/workflows/test-build-deploy.yml).
33+ // Per https://cortexmetrics.io/docs/configuration/v1guarantees/#flags-config-and-minor-version-upgrades,
34+ // we only need to support backward compatibility for the last 3 minor versions.
3335 previousVersionImages = map [string ]* versionsImagesFlags {
34- "quay.io/cortexproject/cortex:v1.13.1" : {
35- flagsForOldImage : func (m map [string ]string ) map [string ]string {
36- m ["-ingester.stream-chunks-when-using-blocks" ] = "true"
37- return m
38- },
39- flagsForNewImage : func (m map [string ]string ) map [string ]string {
40- m ["-ingester.client.grpc-compression" ] = "snappy"
41- return m
42- },
43- },
44- "quay.io/cortexproject/cortex:v1.13.2" : {
45- flagsForOldImage : func (m map [string ]string ) map [string ]string {
46- m ["-ingester.stream-chunks-when-using-blocks" ] = "true"
47- return m
48- },
49- flagsForNewImage : func (m map [string ]string ) map [string ]string {
50- m ["-ingester.client.grpc-compression" ] = "snappy"
51- return m
52- },
53- },
54- "quay.io/cortexproject/cortex:v1.14.0" : {
55- flagsForOldImage : func (m map [string ]string ) map [string ]string {
56- return m
57- },
58- flagsForNewImage : func (m map [string ]string ) map [string ]string {
59- m ["-ingester.client.grpc-compression" ] = "snappy"
60- return m
61- },
62- },
63- "quay.io/cortexproject/cortex:v1.14.1" : {
64- flagsForOldImage : func (m map [string ]string ) map [string ]string {
65- return m
66- },
67- flagsForNewImage : func (m map [string ]string ) map [string ]string {
68- m ["-ingester.client.grpc-compression" ] = "snappy"
69- return m
70- },
71- },
72- "quay.io/cortexproject/cortex:v1.15.0" : nil ,
73- "quay.io/cortexproject/cortex:v1.15.1" : nil ,
74- "quay.io/cortexproject/cortex:v1.15.2" : nil ,
75- "quay.io/cortexproject/cortex:v1.15.3" : nil ,
76- "quay.io/cortexproject/cortex:v1.16.0" : nil ,
7736 "quay.io/cortexproject/cortex:v1.16.1" : nil ,
78- "quay.io/cortexproject/cortex:v1.17.0" : nil ,
79- "quay.io/cortexproject/cortex:v1.17.1" : nil ,
80- "quay.io/cortexproject/cortex:v1.18.0" : nil ,
37+ "quay.io/cortexproject/cortex:v1.17.2" : nil ,
8138 "quay.io/cortexproject/cortex:v1.18.1" : nil ,
82- "quay.io/cortexproject/cortex:v1.19.0" : nil ,
39+ "quay.io/cortexproject/cortex:v1.19.1" : nil ,
40+ "quay.io/cortexproject/cortex:v1.20.0" : nil ,
41+ "quay.io/cortexproject/cortex:v1.20.1" : nil ,
8342 }
8443)
8544
0 commit comments