Skip to content

Commit

Permalink
fix failing jobs + review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adityabhatia committed Sep 22, 2023
1 parent 6bfdffc commit a794d36
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
3 changes: 2 additions & 1 deletion apis/v1alpha3/cloudprovider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ limitations under the License.
package v1alpha3

// CPIConfig is the vSphere cloud provider's configuration.
// Depracated: will be removed in v1alpha4.
//
// Deprecated: will be removed in v1alpha4.
type CPIConfig struct {
// Global is the vSphere cloud provider's global configuration.
// +optional
Expand Down
19 changes: 14 additions & 5 deletions apis/v1alpha3/vspherecluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,22 @@ import (
clusterv1alpha3 "sigs.k8s.io/cluster-api/api/v1alpha3"
)

const (
// ClusterFinalizer allows ReconcileVSphereCluster to clean up vSphere
// resources associated with VSphereCluster before removing it from the
// API server.
ClusterFinalizer = "vspherecluster.infrastructure.cluster.x-k8s.io"
)

// VSphereClusterSpec defines the desired state of VSphereCluster.
type VSphereClusterSpec struct {
// Server is the address of the vSphere endpoint.
Server string `json:"server,omitempty"`

// Insecure is a flag that controls whether to validate the
// vSphere server's certificate.
// Depracated: will be removed in v1alpha4
//
// Deprecated: will be removed in v1alpha4.
// +optional
Insecure *bool `json:"insecure,omitempty"`

Expand All @@ -38,9 +46,9 @@ type VSphereClusterSpec struct {
// +optional
Thumbprint string `json:"thumbprint,omitempty"`

// CloudProviderConfiguration holds the cluster-wide configuration for the
// Depracated: will be removed in v1alpha4
// vSphere cloud provider.
// CloudProviderConfiguration holds the cluster-wide configuration for the vSphere cloud provider.
//
// Deprecated: will be removed in v1alpha4.
CloudProviderConfiguration CPIConfig `json:"cloudProviderConfiguration,omitempty"`

// ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
Expand All @@ -52,7 +60,8 @@ type VSphereClusterSpec struct {
// When a LoadBalancerRef is provided, the VSphereCluster.Status.Ready field
// will not be true until the referenced resource is Status.Ready and has a
// non-empty Status.Address value.
// Depracated: will be removed in v1alpha4
//
// Deprecated: will be removed in v1alpha4.
// +optional
LoadBalancerRef *corev1.ObjectReference `json:"loadBalancerRef,omitempty"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ spec:
description: VSphereClusterSpec defines the desired state of VSphereCluster.
properties:
cloudProviderConfiguration:
description: 'CloudProviderConfiguration holds the cluster-wide configuration
for the Depracated: will be removed in v1alpha4 vSphere cloud provider.'
description: "CloudProviderConfiguration holds the cluster-wide configuration
for the vSphere cloud provider. \n Deprecated: will be removed in
v1alpha4."
properties:
disk:
description: Disk is the vSphere cloud provider's disk configuration.
Expand Down Expand Up @@ -279,16 +280,16 @@ spec:
- name
type: object
insecure:
description: 'Insecure is a flag that controls whether to validate
the vSphere server''s certificate. Depracated: will be removed in
v1alpha4'
description: "Insecure is a flag that controls whether to validate
the vSphere server's certificate. \n Deprecated: will be removed
in v1alpha4."
type: boolean
loadBalancerRef:
description: 'LoadBalancerRef may be used to enable a control plane
description: "LoadBalancerRef may be used to enable a control plane
load balancer for this cluster. When a LoadBalancerRef is provided,
the VSphereCluster.Status.Ready field will not be true until the
referenced resource is Status.Ready and has a non-empty Status.Address
value. Depracated: will be removed in v1alpha4'
value. \n Deprecated: will be removed in v1alpha4."
properties:
apiVersion:
description: API version of the referent.
Expand Down

0 comments on commit a794d36

Please sign in to comment.