@@ -54,88 +54,67 @@ const BackupObjectsPrefix = "backups"
54
54
const RestoreObjectsPrefix = "restores"
55
55
const PluginsObjectsPrefix = "plugins"
56
56
57
- var pluginsMatrix = map [string ]map [string ][]string {
58
- "v1.7" : {
59
- "aws" : {"velero/velero-plugin-for-aws:v1.3.0" },
60
- "azure" : {"velero/velero-plugin-for-microsoft-azure:v1.3.0" },
61
- "vsphere" : {"vsphereveleroplugin/velero-plugin-for-vsphere:v1.3.0" },
62
- "gcp" : {"velero/velero-plugin-for-gcp:v1.3.0" },
63
- "csi" : {"velero/velero-plugin-for-csi:v0.2.0" },
64
- },
65
- "v1.8" : {
66
- "aws" : {"velero/velero-plugin-for-aws:v1.4.0" },
67
- "azure" : {"velero/velero-plugin-for-microsoft-azure:v1.4.0" },
68
- "vsphere" : {"vsphereveleroplugin/velero-plugin-for-vsphere:v1.3.1" },
69
- "gcp" : {"velero/velero-plugin-for-gcp:v1.4.0" },
70
- "csi" : {"velero/velero-plugin-for-csi:v0.2.0" },
71
- },
72
- "v1.9" : {
73
- "aws" : {"velero/velero-plugin-for-aws:v1.5.0" },
74
- "azure" : {"velero/velero-plugin-for-microsoft-azure:v1.5.0" },
75
- "vsphere" : {"vsphereveleroplugin/velero-plugin-for-vsphere:v1.4.0" },
76
- "gcp" : {"velero/velero-plugin-for-gcp:v1.5.0" },
77
- "csi" : {"velero/velero-plugin-for-csi:v0.3.0" },
78
- },
57
+ var PluginsMatrix = map [string ]map [string ][]string {
79
58
"v1.10" : {
80
- "aws" : {"velero/velero-plugin-for-aws:v1.6.0" },
81
- "azure" : {"velero/velero-plugin-for-microsoft-azure:v1.6.0" },
82
- "vsphere" : {"vsphereveleroplugin /velero-plugin-for-vsphere:v1.5.1" },
83
- "gcp" : {"velero/velero-plugin-for-gcp:v1.6.0" },
84
- "csi" : {"velero/velero-plugin-for-csi:v0.4.0" },
59
+ "aws" : {"gcr.io/ velero-gcp /velero-plugin-for-aws:v1.6.0" },
60
+ "azure" : {"gcr.io/ velero-gcp /velero-plugin-for-microsoft-azure:v1.6.0" },
61
+ "vsphere" : {"gcr.io/velero-gcp /velero-plugin-for-vsphere:v1.5.1" },
62
+ "gcp" : {"gcr.io/ velero-gcp /velero-plugin-for-gcp:v1.6.0" },
63
+ "csi" : {"gcr.io/ velero-gcp /velero-plugin-for-csi:v0.4.0" },
85
64
},
86
65
"v1.11" : {
87
- "aws" : {"velero/velero-plugin-for-aws:v1.7.0" },
88
- "azure" : {"velero/velero-plugin-for-microsoft-azure:v1.7.0" },
89
- "vsphere" : {"vsphereveleroplugin /velero-plugin-for-vsphere:v1.5.1" },
90
- "gcp" : {"velero/velero-plugin-for-gcp:v1.7.0" },
91
- "csi" : {"velero/velero-plugin-for-csi:v0.5.0" },
66
+ "aws" : {"gcr.io/ velero-gcp /velero-plugin-for-aws:v1.7.0" },
67
+ "azure" : {"gcr.io/ velero-gcp /velero-plugin-for-microsoft-azure:v1.7.0" },
68
+ "vsphere" : {"gcr.io/velero-gcp /velero-plugin-for-vsphere:v1.5.1" },
69
+ "gcp" : {"gcr.io/ velero-gcp /velero-plugin-for-gcp:v1.7.0" },
70
+ "csi" : {"gcr.io/ velero-gcp /velero-plugin-for-csi:v0.5.0" },
92
71
},
93
72
"v1.12" : {
94
- "aws" : {"velero/velero-plugin-for-aws:v1.8.0" },
95
- "azure" : {"velero/velero-plugin-for-microsoft-azure:v1.8.0" },
96
- "vsphere" : {"vsphereveleroplugin /velero-plugin-for-vsphere:v1.5.1" },
97
- "gcp" : {"velero/velero-plugin-for-gcp:v1.8.0" },
98
- "csi" : {"velero/velero-plugin-for-csi:v0.6.0" },
73
+ "aws" : {"gcr.io/ velero-gcp /velero-plugin-for-aws:v1.8.0" },
74
+ "azure" : {"gcr.io/ velero-gcp /velero-plugin-for-microsoft-azure:v1.8.0" },
75
+ "vsphere" : {"gcr.io/velero-gcp /velero-plugin-for-vsphere:v1.5.1" },
76
+ "gcp" : {"gcr.io/ velero-gcp /velero-plugin-for-gcp:v1.8.0" },
77
+ "csi" : {"gcr.io/ velero-gcp /velero-plugin-for-csi:v0.6.0" },
99
78
},
100
79
"v1.13" : {
101
- "aws" : {"velero/velero-plugin-for-aws:v1.9.2" },
102
- "azure" : {"velero/velero-plugin-for-microsoft-azure:v1.9.2" },
103
- "vsphere" : {"vsphereveleroplugin /velero-plugin-for-vsphere:v1.5.2" },
104
- "gcp" : {"velero/velero-plugin-for-gcp:v1.9.2" },
105
- "csi" : {"velero/velero-plugin-for-csi:v0.7.1" },
106
- "datamover" : {"velero/velero-plugin-for-aws:v1.9.2" },
80
+ "aws" : {"gcr.io/ velero-gcp /velero-plugin-for-aws:v1.9.2" },
81
+ "azure" : {"gcr.io/ velero-gcp /velero-plugin-for-microsoft-azure:v1.9.2" },
82
+ "vsphere" : {"gcr.io/velero-gcp /velero-plugin-for-vsphere:v1.5.2" },
83
+ "gcp" : {"gcr.io/ velero-gcp /velero-plugin-for-gcp:v1.9.2" },
84
+ "csi" : {"gcr.io/ velero-gcp /velero-plugin-for-csi:v0.7.1" },
85
+ "datamover" : {"gcr.io/ velero-gcp /velero-plugin-for-aws:v1.9.2" },
107
86
},
108
87
"v1.14" : {
109
- "aws" : {"velero/velero-plugin-for-aws:v1.10.1" },
110
- "azure" : {"velero/velero-plugin-for-microsoft-azure:v1.10.1" },
111
- "vsphere" : {"vsphereveleroplugin /velero-plugin-for-vsphere:v1.5.2" },
112
- "gcp" : {"velero/velero-plugin-for-gcp:v1.10.1" },
113
- "datamover" : {"velero/velero-plugin-for-aws:v1.10.1" },
88
+ "aws" : {"gcr.io/ velero-gcp /velero-plugin-for-aws:v1.10.1" },
89
+ "azure" : {"gcr.io/ velero-gcp /velero-plugin-for-microsoft-azure:v1.10.1" },
90
+ "vsphere" : {"gcr.io/velero-gcp /velero-plugin-for-vsphere:v1.5.2" },
91
+ "gcp" : {"gcr.io/ velero-gcp /velero-plugin-for-gcp:v1.10.1" },
92
+ "datamover" : {"gcr.io/ velero-gcp /velero-plugin-for-aws:v1.10.1" },
114
93
},
115
94
"v1.15" : {
116
- "aws" : {"velero/velero-plugin-for-aws:v1.11.0" },
117
- "azure" : {"velero/velero-plugin-for-microsoft-azure:v1.11.0" },
118
- "vsphere" : {"vsphereveleroplugin /velero-plugin-for-vsphere:v1.5.2" },
119
- "gcp" : {"velero/velero-plugin-for-gcp:v1.11.0" },
120
- "datamover" : {"velero/velero-plugin-for-aws:v1.11.0" },
95
+ "aws" : {"gcr.io/ velero-gcp /velero-plugin-for-aws:v1.11.0" },
96
+ "azure" : {"gcr.io/ velero-gcp /velero-plugin-for-microsoft-azure:v1.11.0" },
97
+ "vsphere" : {"gcr.io/velero-gcp /velero-plugin-for-vsphere:v1.5.2" },
98
+ "gcp" : {"gcr.io/ velero-gcp /velero-plugin-for-gcp:v1.11.0" },
99
+ "datamover" : {"gcr.io/ velero-gcp /velero-plugin-for-aws:v1.11.0" },
121
100
},
122
101
"main" : {
123
- "aws" : {"velero/velero-plugin-for-aws:main" },
124
- "azure" : {"velero/velero-plugin-for-microsoft-azure:main" },
125
- "vsphere" : {"vsphereveleroplugin /velero-plugin-for-vsphere:v1.5.2" },
126
- "gcp" : {"velero/velero-plugin-for-gcp:main" },
127
- "datamover" : {"velero/velero-plugin-for-aws:main" },
102
+ "aws" : {"gcr.io/ velero-gcp /velero-plugin-for-aws:main" },
103
+ "azure" : {"gcr.io/ velero-gcp /velero-plugin-for-microsoft-azure:main" },
104
+ "vsphere" : {"gcr.io/velero-gcp /velero-plugin-for-vsphere:v1.5.2" },
105
+ "gcp" : {"gcr.io/ velero-gcp /velero-plugin-for-gcp:main" },
106
+ "datamover" : {"gcr.io/ velero-gcp /velero-plugin-for-aws:main" },
128
107
},
129
108
}
130
109
131
110
func getPluginsByVersion (version , cloudProvider , objectStoreProvider string , needDataMoverPlugin bool ) ([]string , error ) {
132
111
var cloudMap map [string ][]string
133
112
arr := strings .Split (version , "." )
134
113
if len (arr ) >= 3 {
135
- cloudMap = pluginsMatrix [arr [0 ]+ "." + arr [1 ]]
114
+ cloudMap = PluginsMatrix [arr [0 ]+ "." + arr [1 ]]
136
115
}
137
116
if len (cloudMap ) == 0 {
138
- cloudMap = pluginsMatrix ["main" ]
117
+ cloudMap = PluginsMatrix ["main" ]
139
118
if len (cloudMap ) == 0 {
140
119
return nil , errors .Errorf ("fail to get plugins by version: main" )
141
120
}
0 commit comments