Skip to content

Commit

Permalink
Update the namespace to vmware-system-csi
Browse files Browse the repository at this point in the history
  • Loading branch information
asifdxtreme committed Mar 17, 2023
1 parent 5fe0f5c commit 1c81f72
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 18 deletions.
26 changes: 18 additions & 8 deletions artifacts/compatibility-yaml/compatibility-v0.7.0.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,48 @@
{
"CSI" : {
"2.7.1" : {
"vSphere": { "min": "6.7.1", "max": "8.0.0" },
"vSphere": { "min": "6.7.1", "max": "8.0.1" },
"k8s": { "min": "1.22", "max": "1.26" },
"isCPIRequired": false,
"deploymentPath": [
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.7.0/manifests/vanilla/namespace.yaml",
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.7.0/manifests/vanilla/validatingwebhook.yaml",
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.7.0/manifests/vanilla/vsphere-csi-driver.yaml" ]
},
"2.6.2": {
"vSphere": { "min": "6.7.1", "max": "8.0.0" },
"vSphere": { "min": "6.7.1", "max": "8.0.1" },
"k8s": { "min": "1.22", "max": "1.24" },
"isCPIRequired": false,
"deploymentPath": [
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.7.0/manifests/vanilla/vsphere-csi-driver.yaml" ]
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.6.2/manifests/vanilla/namespace.yaml",
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.6.2/manifests/vanilla/validatingwebhook.yaml",
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.6.2/manifests/vanilla/vsphere-csi-driver.yaml" ]
},
"2.5.1": {
"vSphere": { "min": "6.7.1", "max": "8.0.0" },
"vSphere": { "min": "6.7.1", "max": "8.0.1" },
"k8s": { "min": "1.20", "max": "1.23" },
"isCPIRequired": false,
"deploymentPath": [
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.5.1/manifests/vanilla/namespace.yaml",
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.5.1/manifests/vanilla/validatingwebhook.yaml",
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.5.1/manifests/vanilla/vsphere-csi-driver.yaml" ]
},
"2.4.0": {
"vSphere": { "min": "6.7.1", "max": "8.0.0" },
"vSphere": { "min": "6.7.1", "max": "8.0.1" },
"k8s": { "min": "1.20", "max": "1.22" },
"isCPIRequired": false,
"deploymentPath": [
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.4.0/manifests/vanilla/namespace.yaml",
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.4.0/manifests/vanilla/validatingwebhook.yaml",
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.4.0/manifests/vanilla/vsphere-csi-driver.yaml" ]
},
"2.3.0": {
"vSphere": { "min": "6.7.1", "max": "7.0.4" },
"k8s": { "min": "1.19", "max": "1.21" },
"isCPIRequired": false,
"deploymentPath": [
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.3.0/manifests/vanilla/namespace.yaml",
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.3.0/manifests/vanilla/validatingwebhook.yaml",
"https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v2.3.0/manifests/vanilla/vsphere-csi-driver.yaml" ]
},
"2.2.2": {
Expand Down Expand Up @@ -68,15 +78,15 @@
},
"CPI" : {
"1.26.0": {
"vSphere": { "min": "6.7.1", "max": "8.0" },
"vSphere": { "min": "6.7.1", "max": "8.0.1" },
"k8s": { "skewVersion": "1.26" },
"deploymentPath": [
"https://raw.githubusercontent.com/kubernetes/cloud-provider-vsphere/v1.26.0/manifests/controller-manager/cloud-controller-manager-roles.yaml",
"https://raw.githubusercontent.com/kubernetes/cloud-provider-vsphere/v1.26.0/manifests/controller-manager/cloud-controller-manager-role-bindings.yaml",
"https://raw.githubusercontent.com/kubernetes/cloud-provider-vsphere/v1.26.0/manifests/controller-manager/vsphere-cloud-controller-manager-ds.yaml" ]
},
"1.25.0": {
"vSphere": { "min": "6.7.1", "max": "8.0" },
"vSphere": { "min": "6.7.1", "max": "8.0.1" },
"k8s": { "skewVersion": "1.25" },
"deploymentPath": [
"https://raw.githubusercontent.com/kubernetes/cloud-provider-vsphere/v1.25.0/manifests/controller-manager/cloud-controller-manager-roles.yaml",
Expand Down Expand Up @@ -140,4 +150,4 @@
"https://raw.githubusercontent.com/kubernetes/cloud-provider-vsphere/v1.18.0/manifests/controller-manager/vsphere-cloud-controller-manager-ds.yaml"]
}
}
}
}
2 changes: 1 addition & 1 deletion artifacts/vanilla/vdo-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ spec:
configMapKeyRef:
key: auto-upgrade
name: compat-matrix-config
image: projects.registry.vmware.com/vsphere_kubernetes_driver_operator/vdo:0.5.0
image: vmware.com/vdo:0.2.0-30-gd56e895
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ kind: Kustomization
images:
- name: controller
newName: vmware.com/vdo
newTag: 0.2.0-22-g86be46c
newTag: 0.2.0-30-gd56e895
2 changes: 1 addition & 1 deletion controllers/vdoconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ var (
SessionFn = session.GetOrCreate
GetVMFn = session.GetVMByIP
VDO_NAMESPACE = ""
CsiNamespace = "kube-system"
CsiNamespace = "vmware-system-csi"
)

// +kubebuilder:rbac:groups=vdo.vmware.com,resources=vdoconfigs,verbs=get;list;watch;create;update;patch;delete
Expand Down
17 changes: 10 additions & 7 deletions controllers/vdoconfig_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"crypto/tls"
"encoding/json"
"errors"
"fmt"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/vmware-tanzu/vsphere-kubernetes-drivers-operator/api/v1alpha1"
Expand Down Expand Up @@ -80,7 +81,7 @@ var _ = Describe("TestReconcileCSIDeploymentStatus", func() {
TypeMeta: metav1.TypeMeta{},
ObjectMeta: metav1.ObjectMeta{
Name: "vsphere-csi-node",
Namespace: "kube-system",
Namespace: "vmware-system-csi",
Labels: map[string]string{"app": "test-label"},
},
Spec: v1.DaemonSetSpec{},
Expand All @@ -96,7 +97,7 @@ var _ = Describe("TestReconcileCSIDeploymentStatus", func() {
},
ObjectMeta: metav1.ObjectMeta{
Name: "test-pod",
Namespace: "kube-system",
Namespace: "vmware-system-csi",
Labels: map[string]string{"app": "test-label"},
},
Spec: v12.PodSpec{
Expand Down Expand Up @@ -145,7 +146,7 @@ var _ = Describe("TestReconcileCSIDeploymentStatus", func() {

Expect(r.Create(ctx, daemonSet, &client.CreateOptions{})).NotTo(HaveOccurred())

_, err := clientSet.CoreV1().Pods("kube-system").Create(ctx, pod1, metav1.CreateOptions{})
_, err := clientSet.CoreV1().Pods("vmware-system-csi").Create(ctx, pod1, metav1.CreateOptions{})
Expect(err).NotTo(HaveOccurred())

_, err = clientSet.CoreV1().Nodes().Create(ctx, node, metav1.CreateOptions{})
Expand All @@ -165,6 +166,8 @@ var _ = Describe("TestReconcileCSIDeploymentStatus", func() {
})

It("should reconcile deployment status without error", func() {
fmt.Println(r.CsiDeploymentYamls)
fmt.Println(r.CpiDeploymentYamls)
Expect(r.reconcileCSIDeploymentStatus(vdoctx, clientSet)).NotTo(HaveOccurred())

// Verify verifyCSINodeStatus all scenarios
Expand Down Expand Up @@ -805,7 +808,7 @@ var _ = Describe("TestReconcileCSISecret", func() {
secret2 := &v12.Secret{
ObjectMeta: metav1.ObjectMeta{
Name: "vsphere-config-secret",
Namespace: "kube-system",
Namespace: "vmware-system-csi",
},
Data: map[string][]byte{
"username": []byte("vc_user"),
Expand Down Expand Up @@ -2030,7 +2033,7 @@ var _ = Describe("TestUpdatingKubeletPath", func() {
TypeMeta: metav1.TypeMeta{},
ObjectMeta: metav1.ObjectMeta{
Name: "vsphere-csi-node",
Namespace: "kube-system",
Namespace: "vmware-system-csi",
Labels: map[string]string{"app": "test-label"},
},
Spec: v1.DaemonSetSpec{
Expand Down Expand Up @@ -2092,7 +2095,7 @@ var _ = Describe("TestUpdatingKubeletPath", func() {
It("Should update DaemonSet without error", func() {
Expect(r.updateCSIDaemonSet(vdoctx, "/var/data/kubelet")).Should(Succeed())
key := types.NamespacedName{
Namespace: DEPLOYMENT_NS,
Namespace: "vmware-system-csi",
Name: CSI_DAEMONSET_NAME,
}
ds := v1.DaemonSet{}
Expand Down Expand Up @@ -2132,7 +2135,7 @@ var _ = Describe("TestUpdatingCSIConfigmap", func() {
},
ObjectMeta: metav1.ObjectMeta{
Name: "internal-feature-states.csi.vsphere.vmware.com",
Namespace: "kube-system",
Namespace: "vmware-system-csi",
},
Immutable: nil,
Data: map[string]string{
Expand Down

0 comments on commit 1c81f72

Please sign in to comment.