Skip to content

Commit

Permalink
Merge pull request #81 from krunalhinguu/1.29-support
Browse files Browse the repository at this point in the history
  • Loading branch information
krunalhinguu authored Jun 13, 2024
2 parents 9868a6b + adbc31d commit 6f2bb5e
Show file tree
Hide file tree
Showing 6 changed files with 246 additions and 55 deletions.
8 changes: 4 additions & 4 deletions charts/rancher-vsphere-cpi/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/display-name: vSphere CPI
catalog.cattle.io/kube-version: '>= 1.18.0-0 < 1.29.0-0'
catalog.cattle.io/kube-version: '>= 1.18.0-0 < 1.31.0-0'
catalog.cattle.io/namespace: kube-system
catalog.cattle.io/os: linux
catalog.cattle.io/permits-os: linux,windows
catalog.cattle.io/rancher-version: '>= 2.8.0-0'
catalog.cattle.io/rancher-version: '>= 2.9.0-0'
catalog.cattle.io/release-name: vsphere-cpi
apiVersion: v1
appVersion: 1.28.0
appVersion: 1.30.1
description: vSphere Cloud Provider Interface (CPI)
icon: https://charts.rancher.io/assets/logos/vsphere-cpi.svg
keywords:
Expand All @@ -21,4 +21,4 @@ maintainers:
name: rancher-vsphere-cpi
sources:
- https://github.com/kubernetes/cloud-provider-vsphere
version: 1.7.0
version: 1.8.0
10 changes: 10 additions & 0 deletions charts/rancher-vsphere-cpi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ vCenter:
# Supported versions can be found at:
# https://github.com/kubernetes/cloud-provider-vsphere#compatibility-with-kubernetes
versionOverrides:
- constraint: "~ 1.30"
values:
cloudControllerManager:
repository: rancher/mirrored-cloud-provider-vsphere-cpi-release-manager
tag: v1.30.1
- constraint: "~ 1.29"
values:
cloudControllerManager:
repository: rancher/mirrored-cloud-provider-vsphere-cpi-release-manager
tag: v1.29.0
- constraint: "~ 1.28"
values:
cloudControllerManager:
Expand Down
8 changes: 4 additions & 4 deletions charts/rancher-vsphere-csi/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/display-name: vSphere CSI
catalog.cattle.io/kube-version: '>= 1.20.0-0 < 1.29.0-0'
catalog.cattle.io/kube-version: '>= 1.20.0-0 < 1.30.0-0'
catalog.cattle.io/namespace: kube-system
catalog.cattle.io/os: linux,windows
catalog.cattle.io/permits-os: linux,windows
catalog.cattle.io/rancher-version: '>= 2.8.0-0'
catalog.cattle.io/rancher-version: '>= 2.9.0-0'
catalog.cattle.io/release-name: vsphere-csi
apiVersion: v1
appVersion: 3.1.2-rancher4
appVersion: 3.2.0-rancher1
description: vSphere Cloud Storage Interface (CSI)
icon: https://charts.rancher.io/assets/logos/vsphere-csi.svg
keywords:
Expand All @@ -21,4 +21,4 @@ maintainers:
name: rancher-vsphere-csi
sources:
- https://github.com/kubernetes-sigs/vsphere-csi-driver
version: 3.1.2-rancher4
version: 3.2.0-rancher1
37 changes: 36 additions & 1 deletion charts/rancher-vsphere-csi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,43 @@ global:
# Supported versions can be found at:
# https://docs.vmware.com/en/VMware-vSphere-Container-Storage-Plug-in/3.0/vmware-vsphere-csp-getting-started/GUID-D4AAD99E-9128-40CE-B89C-AD451DA8379D.html#kubernetes-versions-compatible-with-vsphere-container-storage-plugin-1
versionOverrides:
# Versions from https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/v3.2.0/manifests/vanilla/vsphere-csi-driver.yaml
- constraint: ">= 1.27 < 1.30"
values:
csiController:
image:
repository: rancher/mirrored-cloud-provider-vsphere-csi-release-driver
tag: v3.2.0
csiAttacher:
repository: rancher/mirrored-sig-storage-csi-attacher
tag: v4.5.0
csiResizer:
repository: rancher/mirrored-sig-storage-csi-resizer
tag: v1.10.0
livenessProbe:
repository: rancher/mirrored-sig-storage-livenessprobe
tag: v2.12.0
vsphereSyncer:
repository: rancher/mirrored-cloud-provider-vsphere-csi-release-syncer
tag: v3.2.0
csiProvisioner:
repository: rancher/mirrored-sig-storage-csi-provisioner
tag: v4.0.0
csiSnapshotter:
repository: rancher/mirrored-sig-storage-csi-snapshotter
tag: v7.0.1
csiNode:
image:
repository: rancher/mirrored-cloud-provider-vsphere-csi-release-driver
tag: v3.2.0
nodeDriverRegistrar:
repository: rancher/mirrored-sig-storage-csi-node-driver-registrar
tag: v2.10.0
livenessProbe:
repository: rancher/mirrored-sig-storage-livenessprobe
tag: v2.12.0
# Versions from https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/v3.1.2/manifests/vanilla/vsphere-csi-driver.yaml
- constraint: ">= 1.26 < 1.29"
- constraint: ">= 1.26 < 1.27"
values:
csiController:
image:
Expand Down
22 changes: 22 additions & 0 deletions tests/unit/cpi_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,28 @@ func TestCPITemplateRenderedDaemonset(t *testing.T) {
name string
args args
}{
{
name: "Kubernetes 1.30",
args: args{
values: map[string]string{},
kubeVersion: "1.30",
namespace: "cpitest-" + strings.ToLower(random.UniqueId()),
releaseName: "cpitest-" + strings.ToLower(random.UniqueId()),
chartRelPath: cpiChart,
expectedImage: "rancher/mirrored-cloud-provider-vsphere-cpi-release-manager:v1.30.1",
},
},
{
name: "Kubernetes 1.29",
args: args{
values: map[string]string{},
kubeVersion: "1.29",
namespace: "cpitest-" + strings.ToLower(random.UniqueId()),
releaseName: "cpitest-" + strings.ToLower(random.UniqueId()),
chartRelPath: cpiChart,
expectedImage: "rancher/mirrored-cloud-provider-vsphere-cpi-release-manager:v1.29.0",
},
},
{
name: "Kubernetes 1.28",
args: args{
Expand Down
Loading

0 comments on commit 6f2bb5e

Please sign in to comment.