Documentation ¶
Overview ¶
Copyright 2022 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func CheckMountForStsPods(c clientset.Interface, ss *appsv1.StatefulSet, mountPath string) error
- func CreatePodByUserID(client clientset.Interface, namespace string, nodeSelector map[string]string, ...) (*v1.Pod, error)
- func CreateService(ns string, c clientset.Interface) *v1.Service
- func CreateStatefulSet(ns string, ss *apps.StatefulSet, c clientset.Interface)
- func DeleteStatefulPodAtIndex(client clientset.Interface, index int, ss *appsv1.StatefulSet)
- func ExecInStsPodsInNs(c clientset.Interface, ss *appsv1.StatefulSet, cmd string) error
- func GetAndExpectBoolEnvVar(varName string) bool
- func GetAndExpectIntEnvVar(varName string) int
- func GetAndExpectStringEnvVar(varName string) string
- func GetListOfPodsInSts(c clientset.Interface, ss *appsv1.StatefulSet) *v1.PodList
- func GetPodSpecByUserID(ns string, nodeSelector map[string]string, ...) *v1.Pod
- func GetPodsForMultipleDeployment(client clientset.Interface, deployment *appsv1.Deployment) (*v1.PodList, error)
- func GetResizedStatefulSetFromManifest(ns string) *appsv1.StatefulSet
- func GetStatefulSetFromManifest(ns string) *appsv1.StatefulSet
- func ListTopologyClusterNames(topologyCluster string) []string
- func VsanObjIndentities(ctx context.Context, vs *vSphere, pvName string) string
- type AuthToken
- type CertRotate
- type FaultDomains
- type GetTaskTstatus
- type NetPermissionConfig
- type NodeInfo
- type NodeMapper
- func (nm *NodeMapper) GenerateNodeMap(vs *vSphere, nodeList v1.NodeList) error
- func (nm *NodeMapper) GenerateZoneToDatastoreMap() error
- func (nm *NodeMapper) GetDatastoresInZone(vc string, zone string) []string
- func (nm *NodeMapper) GetNodeInfo(nodeName string) *NodeInfo
- func (nm *NodeMapper) SetNodeInfo(nodeName string, nodeInfo *NodeInfo)
- type SnapshotConfig
- type TKGCluster
- type TestbedBasicInfo
- type VMImages
- type VsanClient
Constants ¶
const ( NonExistingRegion = "NonExistingRegion" NonExistingZone = "NonExistingZone" )
Constants to store invalid/non-existing region and zone
Variables ¶
var (
VsanQueryObjectIdentitiesInstance = vim25types.ManagedObjectReference{
Type: "VsanObjectSystem",
Value: "vsan-cluster-object-system",
}
)
Creates the vsan object identities instance. This is to be queried from vsan health.
Functions ¶
func CheckMountForStsPods ¶ added in v2.6.0
CheckMount checks that the mount at mountPath is valid for all Pods in ss.
func CreatePodByUserID ¶
func CreatePodByUserID(client clientset.Interface, namespace string, nodeSelector map[string]string, pvclaims []*v1.PersistentVolumeClaim, isPrivileged bool, command string, userID int64) (*v1.Pod, error)
CreatePodByUserID with given claims based on node selector. This method is addition to CreatePod method. Here userID can be specified for pod user.
func CreateService ¶
CreateService creates a k8s service as described in the service.yaml present in the manifest path and returns that service to the caller.
func CreateStatefulSet ¶
func CreateStatefulSet(ns string, ss *apps.StatefulSet, c clientset.Interface)
CreateStatefulSet creates a StatefulSet from the manifest at manifestPath in the given namespace.
func DeleteStatefulPodAtIndex ¶
func DeleteStatefulPodAtIndex(client clientset.Interface, index int, ss *appsv1.StatefulSet)
DeleteStatefulPodAtIndex deletes pod given index in the desired statefulset.
func ExecInStsPodsInNs ¶ added in v2.6.0
ExecInStsPodsInNs executes cmd in all Pods in ss. If a error occurs it is returned and
cmd is not execute in any subsequent Pods.
func GetAndExpectBoolEnvVar ¶
GetAndExpectBoolEnvVar parses a boolean from env variable.
func GetAndExpectIntEnvVar ¶
GetAndExpectIntEnvVar parses an int from env variable.
func GetAndExpectStringEnvVar ¶
GetAndExpectStringEnvVar parses a string from env variable.
func GetListOfPodsInSts ¶ added in v2.6.0
GetPodList gets the current Pods in ss.
func GetPodSpecByUserID ¶
func GetPodSpecByUserID(ns string, nodeSelector map[string]string, pvclaims []*v1.PersistentVolumeClaim, isPrivileged bool, command string, userID int64) *v1.Pod
GetPodSpecByUserID returns a pod definition based on the namespace. The pod references the PVC's name. This method is addition to MakePod method. Here userID can be specified for pod user.
func GetPodsForMultipleDeployment ¶ added in v2.6.0
func GetPodsForMultipleDeployment(client clientset.Interface, deployment *appsv1.Deployment) (*v1.PodList, error)
GetPodsForDeployment gets pods for the given deployment
func GetResizedStatefulSetFromManifest ¶
func GetResizedStatefulSetFromManifest(ns string) *appsv1.StatefulSet
GetResizedStatefulSetFromManifest returns a StatefulSet from a manifest stored in fileName by adding namespace and a newSize.
func GetStatefulSetFromManifest ¶
func GetStatefulSetFromManifest(ns string) *appsv1.StatefulSet
GetStatefulSetFromManifest creates a StatefulSet from the statefulset.yaml file present in the manifest path.
func ListTopologyClusterNames ¶ added in v2.6.0
get topology cluster lists
Types ¶
type CertRotate ¶ added in v2.6.0
type CertRotate struct { UserID string `json:"user_id"` UserName string `json:"user_name"` Created time.Time `json:"created"` Version int `json:"version"` ID string `json:"id"` UpdatedByUserID string `json:"updated_by_user_id"` UpdatedByUserName string `json:"updated_by_user_name"` Updated time.Time `json:"updated"` Status string `json:"status"` ResourceID string `json:"resource_id"` ResourceType string `json:"resource_type"` StartResourceEntityVersion interface{} `json:"start_resource_entity_version"` EndResourceEntityVersion interface{} `json:"end_resource_entity_version"` ParentTaskID interface{} `json:"parent_task_id"` SubStatus string `json:"sub_status"` TaskType string `json:"task_type"` ErrorMessage interface{} `json:"error_message"` CustomerErrorMessage interface{} `json:"customer_error_message"` LocalizedErrorMessage interface{} `json:"localized_error_message"` StartTime time.Time `json:"start_time"` EndTime interface{} `json:"end_time"` Retries int `json:"retries"` TaskVersion string `json:"task_version"` ProgressPercent int `json:"progress_percent"` EstimatedRemainingMinutes int `json:"estimated_remaining_minutes"` TaskProgressPhases interface{} `json:"task_progress_phases"` ServiceErrors []interface{} `json:"service_errors"` Params struct { CertType struct { CertType string `json:"cert_type"` CertificateToDelete interface{} `json:"certificate_to_delete"` CertificateToSave interface{} `json:"certificate_to_save"` ValidDays interface{} `json:"valid_days"` Version interface{} `json:"version"` CertificateConfig interface{} `json:"certificate_config"` } `json:"certType"` } `json:"params"` OrgType string `json:"org_type"` CorrelationID interface{} `json:"correlation_id"` PhaseInProgress string `json:"phase_in_progress"` OrgID string `json:"org_id"` }
type FaultDomains ¶ added in v2.5.0
type FaultDomains struct {
// contains filtered or unexported fields
}
type GetTaskTstatus ¶ added in v2.6.0
type GetTaskTstatus struct { UserID string `json:"user_id"` UserName string `json:"user_name"` Created time.Time `json:"created"` Version int `json:"version"` ID string `json:"id"` UpdatedByUserID string `json:"updated_by_user_id"` UpdatedByUserName string `json:"updated_by_user_name"` Updated time.Time `json:"updated"` Status string `json:"status"` ResourceID string `json:"resource_id"` ResourceType string `json:"resource_type"` StartResourceEntityVersion interface{} `json:"start_resource_entity_version"` EndResourceEntityVersion interface{} `json:"end_resource_entity_version"` ParentTaskID interface{} `json:"parent_task_id"` SubStatus string `json:"sub_status"` TaskType string `json:"task_type"` ErrorMessage interface{} `json:"error_message"` CustomerErrorMessage interface{} `json:"customer_error_message"` LocalizedErrorMessage interface{} `json:"localized_error_message"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` Retries int `json:"retries"` TaskVersion string `json:"task_version"` ProgressPercent int `json:"progress_percent"` EstimatedRemainingMinutes int `json:"estimated_remaining_minutes"` TaskProgressPhases interface{} `json:"task_progress_phases"` ServiceErrors []interface{} `json:"service_errors"` Params struct { CertType struct { CertType string `json:"cert_type"` CertificateToDelete []struct { Entity string `json:"entity"` SerialNum string `json:"serial_num"` Fingerprint string `json:"fingerprint"` Certificate string `json:"certificate"` } `json:"certificate_to_delete"` CertificateToSave []struct { Entity string `json:"entity"` SerialNum string `json:"serial_num"` Fingerprint string `json:"fingerprint"` Certificate string `json:"certificate"` } `json:"certificate_to_save"` } `json:"certType"` } `json:"params"` OrgType string `json:"org_type"` CorrelationID interface{} `json:"correlation_id"` PhaseInProgress string `json:"phase_in_progress"` OrgID string `json:"org_id"` }
type NetPermissionConfig ¶
type NetPermissionConfig struct { // Client IP address, IP range or IP subnet. Example: "10.20.30.0/24"; defaults to "*" if not specified Ips string `gcfg:"ips"` // Is it READ_ONLY, READ_WRITE or NO_ACCESS. Defaults to "READ_WRITE" if not specified Permissions vsanfstypes.VsanFileShareAccessType `gcfg:"permissions"` // Disallow root access for this IP range. Defaults to "false" if not specified RootSquash bool `gcfg:"rootsquash"` }
NetPermissionConfig consists of information used to restrict the network permissions set on file share volumes
type NodeInfo ¶
type NodeInfo struct { Name string DataCenterRef types.ManagedObjectReference VirtualMachineRef types.ManagedObjectReference HostSystemRef types.ManagedObjectReference Zones []string // contains filtered or unexported fields }
NodeInfo contains information about vcenter nodes
type NodeMapper ¶
type NodeMapper struct { }
NodeMapper contains information to generate nameToNodeInfo and vcToZoneDatastore maps
func (*NodeMapper) GenerateNodeMap ¶
func (nm *NodeMapper) GenerateNodeMap(vs *vSphere, nodeList v1.NodeList) error
GenerateNodeMap populates node name to node info map
func (*NodeMapper) GenerateZoneToDatastoreMap ¶
func (nm *NodeMapper) GenerateZoneToDatastoreMap() error
GenerateZoneToDatastoreMap generates a mapping of zone to datastore for easily verifying volume placement
func (*NodeMapper) GetDatastoresInZone ¶
func (nm *NodeMapper) GetDatastoresInZone(vc string, zone string) []string
GetDatastoresInZone returns all the datastores in the specified zone
func (*NodeMapper) GetNodeInfo ¶
func (nm *NodeMapper) GetNodeInfo(nodeName string) *NodeInfo
GetNodeInfo returns NodeInfo for given nodeName
func (*NodeMapper) SetNodeInfo ¶
func (nm *NodeMapper) SetNodeInfo(nodeName string, nodeInfo *NodeInfo)
SetNodeInfo sets NodeInfo for given nodeName. This function is not thread safe. Users need to handle concurrency.
type SnapshotConfig ¶ added in v2.6.0
type SnapshotConfig struct { // GlobalMaxSnapshotsPerBlockVolume specifies the maximum number of block volume snapshots per volume. GlobalMaxSnapshotsPerBlockVolume int `gcfg:"global-max-snapshots-per-block-volume"` // GranularMaxSnapshotsPerBlockVolumeInVSAN specifies the maximum number of block volume snapshots // per volume in VSAN datastores. GranularMaxSnapshotsPerBlockVolumeInVSAN int `gcfg:"granular-max-snapshots-per-block-volume-vsan"` // GranularMaxSnapshotsPerBlockVolumeInVVOL specifies the maximum number of block volume snapshots // per volume in VVOL datastores. GranularMaxSnapshotsPerBlockVolumeInVVOL int `gcfg:"granular-max-snapshots-per-block-volume-vvol"` }
SnapshotConfig contains snapshot configuration.
type TKGCluster ¶
type TKGCluster struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata struct { Name string `yaml:"name"` Namespace string `yaml:"namespace"` ResourceVersion string `yaml:"resourceVersion"` SelfLink string `yaml:"selfLink"` UID string `yaml:"uid"` } `yaml:"metadata"` Spec struct { Distribution struct { FullVersion string `yaml:"fullVersion"` Version string `yaml:"version"` } `yaml:"distribution"` Settings struct { Network struct { Cni struct { Name string `yaml:"name"` } `yaml:"cni"` Pods struct { CidrBlocks []string `yaml:"cidrBlocks"` } `yaml:"pods"` ServiceDomain string `yaml:"serviceDomain"` Services struct { CidrBlocks []string `yaml:"cidrBlocks"` } `yaml:"services"` } `yaml:"network"` } `yaml:"settings"` Topology struct { ControlPlane struct { Class string `yaml:"class"` Count int `yaml:"count"` StorageClass string `yaml:"storageClass"` } `yaml:"controlPlane"` Workers struct { Class string `yaml:"class"` Count int `yaml:"count"` StorageClass string `yaml:"storageClass"` } `yaml:"workers"` } `yaml:"topology"` } `yaml:"spec"` Status struct { Addons struct { Authsvc struct { Conditions []struct { LastTransitionTime time.Time `yaml:"lastTransitionTime"` Status string `yaml:"status"` Type string `yaml:"type"` } `yaml:"conditions"` Name string `yaml:"name"` Status string `yaml:"status"` Version string `yaml:"version"` } `yaml:"authsvc"` Cloudprovider struct { Conditions []struct { LastTransitionTime time.Time `yaml:"lastTransitionTime"` Status string `yaml:"status"` Type string `yaml:"type"` } `yaml:"conditions"` Name string `yaml:"name"` Status string `yaml:"status"` Version string `yaml:"version"` } `yaml:"cloudprovider"` Cni struct { Conditions []struct { LastTransitionTime time.Time `yaml:"lastTransitionTime"` Status string `yaml:"status"` Type string `yaml:"type"` } `yaml:"conditions"` Name string `yaml:"name"` Status string `yaml:"status"` Version string `yaml:"version"` } `yaml:"cni"` Csi struct { Conditions []struct { LastTransitionTime time.Time `yaml:"lastTransitionTime"` Status string `yaml:"status"` Type string `yaml:"type"` } `yaml:"conditions"` Name string `yaml:"name"` Status string `yaml:"status"` Version string `yaml:"version"` } `yaml:"csi"` DNS struct { Conditions []struct { LastTransitionTime time.Time `yaml:"lastTransitionTime"` Status string `yaml:"status"` Type string `yaml:"type"` } `yaml:"conditions"` Name string `yaml:"name"` Status string `yaml:"status"` Version string `yaml:"version"` } `yaml:"dns"` MetricsServer struct { Conditions []struct { LastTransitionTime time.Time `yaml:"lastTransitionTime"` Reason string `yaml:"reason"` Status string `yaml:"status"` Type string `yaml:"type"` } `yaml:"conditions"` Name string `yaml:"name"` Status string `yaml:"status"` } `yaml:"metrics-server"` Proxy struct { Conditions []struct { LastTransitionTime time.Time `yaml:"lastTransitionTime"` Status string `yaml:"status"` Type string `yaml:"type"` } `yaml:"conditions"` Name string `yaml:"name"` Status string `yaml:"status"` Version string `yaml:"version"` } `yaml:"proxy"` Psp struct { Conditions []struct { LastTransitionTime time.Time `yaml:"lastTransitionTime"` Status string `yaml:"status"` Type string `yaml:"type"` } `yaml:"conditions"` Name string `yaml:"name"` Status string `yaml:"status"` Version string `yaml:"version"` } `yaml:"psp"` } `yaml:"addons"` ClusterAPIStatus struct { APIEndpoints []struct { Host string `yaml:"host"` Port int `yaml:"port"` } `yaml:"apiEndpoints"` } `yaml:"clusterApiStatus"` Conditions []struct { LastTransitionTime time.Time `yaml:"lastTransitionTime"` Status string `yaml:"status"` Type string `yaml:"type"` Message string `yaml:"message,omitempty"` Reason string `yaml:"reason,omitempty"` } `yaml:"conditions"` Phase string `yaml:"phase"` } `yaml:"status"` }
type TestbedBasicInfo ¶ added in v2.5.0
type TestbedBasicInfo struct {
// contains filtered or unexported fields
}
type VMImages ¶
type VMImages struct { APIVersion string `json:"apiVersion"` Items []struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata struct { Annotations struct { VmoperatorVmwareComContentLibraryVersion string `json:"vmoperator.vmware.com/content-library-version"` VmwareSystemCompatibilityoffering string `json:"vmware-system.compatibilityoffering"` VmwareSystemGuestKubernetesAddonsAntrea string `json:"vmware-system.guest.kubernetes.addons.antrea"` VmwareSystemGuestKubernetesAddonsAuthsvc string `json:"vmware-system.guest.kubernetes.addons.authsvc"` VmwareSystemGuestKubernetesAddonsCalico string `json:"vmware-system.guest.kubernetes.addons.calico"` VmwareSystemGuestKubernetesAddonsPvcsi string `json:"vmware-system.guest.kubernetes.addons.pvcsi"` VmwareSystemGuestKubernetesAddonsVmwareGC string `json:"vmware-system.guest.kubernetes.addons.vmware-guest-cluster"` VmwareSystemGuestKubernetesImageVersion string `json:"vmware-system.guest.kubernetes.distribution.image.version"` } `json:"annotations"` CreationTimestamp time.Time `json:"creationTimestamp"` Generation int `json:"generation"` ManagedFields []struct { APIVersion string `json:"apiVersion"` FieldsType string `json:"fieldsType"` FieldsV1 struct { FMetadata struct { FAnnotations struct { NAMING_FAILED struct { } `json:"."` FVmoperatorVmwareComContentLibraryVersion struct { } `json:"f:vmoperator.vmware.com/content-library-version"` FVmwareSystemCompatibilityoffering struct { } `json:"f:vmware-system.compatibilityoffering"` FVmwareSystemGuestKubernetesAddonsAntrea struct { } `json:"f:vmware-system.guest.kubernetes.addons.antrea"` FVmwareSystemGuestKubernetesAddonsAuthsvc struct { } `json:"f:vmware-system.guest.kubernetes.addons.authsvc"` FVmwareSystemGuestKubernetesAddonsCalico struct { } `json:"f:vmware-system.guest.kubernetes.addons.calico"` FVmwareSystemGuestKubernetesAddonsPvcsi struct { } `json:"f:vmware-system.guest.kubernetes.addons.pvcsi"` FVmwareSystemGuestKubernetesAddonsVmwareGC struct { } `json:"f:vmware-system.guest.kubernetes.addons.vmware-guest-cluster"` FVmwareSystemGuestKubernetesImageVersion struct { } `json:"f:vmware-system.guest.kubernetes.distribution.image.version"` } `json:"f:annotations"` } `json:"f:metadata"` FSpec struct { NAMING_FAILED struct { } `json:"."` FHwVersion struct { } `json:"f:hwVersion"` FImageSourceType struct { } `json:"f:imageSourceType"` FOsInfo struct { NAMING_FAILED struct { } `json:"."` FType struct { } `json:"f:type"` } `json:"f:osInfo"` FProductInfo struct { NAMING_FAILED struct { } `json:"."` FFullVersion struct { } `json:"f:fullVersion"` FProduct struct { } `json:"f:product"` FVendor struct { } `json:"f:vendor"` FVersion struct { } `json:"f:version"` } `json:"f:productInfo"` FType struct { } `json:"f:type"` } `json:"f:spec"` FStatus struct { NAMING_FAILED struct { } `json:"."` FConditions struct { } `json:"f:conditions"` FImageSupported struct { } `json:"f:imageSupported"` FInternalID struct { } `json:"f:internalId"` FUUID struct { } `json:"f:uuid"` } `json:"f:status"` } `json:"fieldsV1"` Manager string `json:"manager"` Operation string `json:"operation"` Time time.Time `json:"time"` } `json:"managedFields"` Name string `json:"name"` OwnerReferences []struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Name string `json:"name"` UID string `json:"uid"` } `json:"ownerReferences"` ResourceVersion string `json:"resourceVersion"` SelfLink string `json:"selfLink"` UID string `json:"uid"` } `json:"metadata"` Spec struct { HwVersion int `json:"hwVersion"` ImageSourceType string `json:"imageSourceType"` OsInfo struct { Type string `json:"type"` } `json:"osInfo"` ProductInfo struct { FullVersion string `json:"fullVersion"` Product string `json:"product"` Vendor string `json:"vendor"` Version string `json:"version"` } `json:"productInfo"` Type string `json:"type"` } `json:"spec"` Status struct { Conditions []struct { LastTransitionTime time.Time `json:"lastTransitionTime"` Status string `json:"status"` Type string `json:"type"` } `json:"conditions"` ImageSupported bool `json:"imageSupported"` InternalID string `json:"internalId"` UUID string `json:"uuid"` } `json:"status"` } `json:"items"` Kind string `json:"kind"` Metadata struct { Continue string `json:"continue"` ResourceVersion string `json:"resourceVersion"` SelfLink string `json:"selfLink"` } `json:"metadata"` }
type VsanClient ¶
type VsanClient struct {
// contains filtered or unexported fields
}
VsanClient struct holds vim and soap client
func (*VsanClient) QueryVsanObjects ¶
func (c *VsanClient) QueryVsanObjects(ctx context.Context, uuids []string, vs *vSphere) (string, error)
QueryVsanObjects takes vsan uuid as input and returns the vSANObj related information like lsom_objects and disk_objects. Example return values:
"{"disk_objects": {"525a9aa5-1142-4004-ad6f-2389eef25f06": ....lsom_objects": {"e7945f5f-4267-3e5d-334a-020063a7a5c4":......}
func (*VsanClient) VsanQueryObjectIdentities ¶
func (c *VsanClient) VsanQueryObjectIdentities(ctx context.Context, cluster vim25types.ManagedObjectReference) (*vsantypes.VsanObjectIdentityAndHealth, error)
VsanQueryObjectIdentities return list of vsan uuids example: For a PVC, It returns the vSAN object UUIDs to their identities It return vsanObjuuid like [4336525f-7813-d78a-e3a4-02005456da7e]
Source Files ¶
- binding_modes_with_topology.go
- bootstrap.go
- config.go
- connection.go
- csi_cns_telemetry.go
- csi_cns_telemetry_statefulsets.go
- csi_cns_telemetry_vc_reboot.go
- csi_snapshot_basic.go
- csi_snapshot_file_volume.go
- csi_snapshot_negative.go
- csi_static_provisioning_basic.go
- csi_static_provisioning_file_basic.go
- data_persistence.go
- e2e_common.go
- file_volume_statefulsets.go
- fullsync_test_for_block_volume.go
- fullsync_test_for_file_volume.go
- gc_block_resize_retain_policy.go
- gc_block_volume_expansion.go
- gc_cns_nodevm_attachment.go
- gc_file_share_negative.go
- gc_full_sync.go
- gc_metadata_syncer.go
- gc_rwx_basic.go
- gc_rwx_deployments.go
- gc_rwx_destructive.go
- gc_rwx_multi_gc.go
- gc_rwx_multi_ns_gc.go
- gc_rwx_non_vsan_datastore.go
- gc_rwx_operation_storm.go
- gc_rwx_parallel_claim.go
- gc_rwx_readonly.go
- gc_rwx_reclaim_policy.go
- gc_rwx_security_context.go
- gc_rwx_service_down.go
- gc_rwx_statefulsets.go
- gc_rwx_static_provision.go
- gc_rwx_syncer.go
- gc_rwx_tkg_scale.go
- gc_rwx_volume_health.go
- improved_csi_idempotency.go
- invalid_topology_values.go
- labelupdates.go
- medadatasyncer_test_for_file_volume.go
- multi_master_k8s.go
- nimbus_utils.go
- nodemapper.go
- nodes_scaleup_scaledown.go
- operationstorm.go
- partial_topology_values.go
- policy_driven_vol_allocation.go
- preupgrade_datasetup.go
- provision_with_multiple_zones.go
- scale.go
- statefulset_with_topology.go
- statefulsets.go
- storage_policy_utils.go
- storagepolicy.go
- svmotion_detached_volume.go
- tkgs_ha.go
- tkgs_ha_utils.go
- topology_aware_node_poweroff.go
- topology_multi_replica.go
- topology_new_node_with_different_labels.go
- topology_operation_strom_cases.go
- topology_site_down_cases.go
- topology_snapshot.go
- util.go
- vc_reboot_volume_lifecycle.go
- vcp_to_csi_attach_detach.go
- vcp_to_csi_create_delete.go
- vcp_to_csi_full_sync.go
- vcp_to_csi_syncer.go
- vcp_utils.go
- vmc_create_gc.go
- vmc_csi_deployments.go
- vmc_delete_tkg.go
- vmc_scale_gc_workers.go
- vmc_upgrade_tkg.go
- vmc_vc_cert_rotate.go
- volume_provisioning_with_level5_topology.go
- volume_provisioning_with_topology.go
- vsan_stretched_cluster.go
- vsan_stretched_cluster_utils.go
- vsphere.go
- vsphere_file_volume_basic.go
- vsphere_file_volume_basic_mount.go
- vsphere_file_volume_basic_without_datacenter.go
- vsphere_file_volume_storagepolicy.go
- vsphere_shared_datastore.go
- vsphere_volume_disksize.go
- vsphere_volume_expansion.go
- vsphere_volume_fsgroup.go
- vsphere_volume_fstype.go
- vsphere_volume_mount.go