Skip to content

Commit 58919c5

Browse files
author
Cui Shuaijie
committed
fix(platform): add csi-operator sidecar and controller images(only cbs v1)
1 parent 38a3797 commit 58919c5

File tree

1 file changed

+24
-0
lines changed
  • pkg/platform/provider/baremetal/phases/csioperator/images

1 file changed

+24
-0
lines changed

pkg/platform/provider/baremetal/phases/csioperator/images/images.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,28 @@ import (
2828

2929
const (
3030
// LatestVersion is latest version of addon.
31+
// TODO: bump up to v1.0.3
3132
LatestVersion = "v1.0.2"
33+
34+
// Provisioner and ... csi sidecar and controller images name
35+
Provisioner = "csi-provisioner"
36+
Attacher = "csi-attacher"
37+
Snapshotter = "csi-snapshotter"
38+
CSINodeRegistrar = "csi-node-driver-registrar"
39+
TencentCBSDriver = "csi-tencentcloud-cbs"
3240
)
3341

3442
type Components struct {
3543
CSIOperator containerregistry.Image
44+
45+
// csi sidecar images
46+
ProvisionerV101 containerregistry.Image
47+
AttacherV110 containerregistry.Image
48+
SnapshotterV110 containerregistry.Image
49+
NodeRegistrarV110 containerregistry.Image
50+
51+
// Tencent CBS V1 && V1P1
52+
CbsDriverV100 containerregistry.Image // TODO: v1.0.0 is DEPRECATING
3653
}
3754

3855
func (c Components) Get(name string) *containerregistry.Image {
@@ -48,7 +65,14 @@ func (c Components) Get(name string) *containerregistry.Image {
4865

4966
var versionMap = map[string]Components{
5067
LatestVersion: {
68+
// TODO: bump up to v1.0.3
5169
CSIOperator: containerregistry.Image{Name: "csi-operator", Tag: "v1.0.2"},
70+
71+
ProvisionerV101: containerregistry.Image{Name: Provisioner, Tag: "v1.0.1"},
72+
AttacherV110: containerregistry.Image{Name: Attacher, Tag: "v1.1.0"},
73+
SnapshotterV110: containerregistry.Image{Name: Snapshotter, Tag: "v1.1.0"},
74+
NodeRegistrarV110: containerregistry.Image{Name: CSINodeRegistrar, Tag: "v0.3.0"},
75+
CbsDriverV100: containerregistry.Image{Name: TencentCBSDriver, Tag: "v1.0.0"},
5276
},
5377
}
5478

0 commit comments

Comments
 (0)