Skip to content

Add support to input cluster-distribution type in vsphere-config-secret for CSI 2.3 onwards #142

Open
@rpanduranga

Description

@rpanduranga

Issue/Feature Description:
Add support to input cluster-distribution type in vsphere-config-secret for CSI 2.3 onwards

What type of Issue/Feature is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind enhancement

Why this fix/ feature is needed(give scenarios or use cases):
From CSI 2.3 onwards, and VC/ESX 7.0u2 CNS Analytics for vSphere is suppose to show the kind of the distribution the k8s is the metadata details of the PV.

here is the snippet from the requirement gathered in one pager

There should be an ability to find the different K8s distributions (Supervisor Cluster, TKG Guest Cluster, Ent.PKS, OpenShift, Google Anthos, upstream K8s) that are using PVs on CNS

CNS needs to store Kubernetes distribution info so that report statistics grouped by distributions

To support above requirement, CSI introduced the parameter that user have to update the csi-vsphere.conf file with the cluster-distribution

$ cat /etc/kubernetes/csi-vsphere.conf
[Global]
cluster-id = ""
cluster-distribution= "" # for example: PKS, TKG service, Anthos
...

As VDO handles the secret creation, it is expected the vsphere-config-secret should have these key

How to reproduce, in case of a bug:
Decoded the existing secret vsphere-config-secret to view the content.

[Global]
cluster-id = ""

[VirtualCenter ""]
insecure-flag = "true"
user = "[email protected]"
password = "Admin!23"
datacenters = "VSAN-DC"

Other Notes / Environment Information: (Please give the env information, log link or any useful information for this issue)
https://docs.vmware.com/en/VMware-vSphere-Container-Storage-Plug-in/2.0/vmware-vsphere-csp-getting-started/GUID-BFF39F1D-F70A-4360-ABC9-85BDAFBE8864.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions