Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session with round tripper keep alive #10

Open
wants to merge 40 commits into
base: upstream-master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
46b4a83
removes topology feature gate
Mar 25, 2021
91a02f0
Updates kube-vip version to 0.3.2
srm09 Mar 24, 2021
77921b3
Merge pull request #1160 from srm09/update-kube-vip-main
k8s-ci-robot Mar 25, 2021
a7f7aba
Merge pull request #1159 from gab-satchi/csi-topology-fix
k8s-ci-robot Mar 30, 2021
9e74698
Updates v1alpha3 refs to v1alpha4
srm09 Mar 8, 2021
5553a61
Merge pull request #1138 from srm09/update/v1alpha4-refs
k8s-ci-robot Mar 31, 2021
962ba56
Adds test setup for controller tests
srm09 Mar 9, 2021
ec0c571
Adds storage policy to e2e tests.
Mar 10, 2021
4056faf
Adds storage policy test
Mar 31, 2021
b53780f
Fixes clusterctl framework error
Mar 31, 2021
7966c85
Use v1alpha4 types
Mar 31, 2021
9a88c65
Merge pull request #1141 from gab-satchi/storage-test
k8s-ci-robot Apr 7, 2021
3259c28
Reconcile storage policy after vm clone
Mar 15, 2021
0fb0ef2
Merge pull request #1168 from gab-satchi/1146-sp-main
k8s-ci-robot Apr 12, 2021
ad62f41
Merge pull request #1144 from srm09/add-controller-tests
k8s-ci-robot Apr 14, 2021
fc016db
fix panic when reading from the list of devices
srm09 Mar 24, 2021
e59ac1d
Merge pull request #1156 from srm09/bug/capv-manager-crash
k8s-ci-robot Apr 16, 2021
f495983
Adds log statements to get/create session
srm09 Mar 24, 2021
5271576
Merge pull request #1171 from srm09/add-logger-stmt
k8s-ci-robot Apr 16, 2021
3cebc96
fix image links from http to https
natereid72 Apr 17, 2021
123f017
Updates the golang version to 1.16
srm09 Apr 26, 2021
9c1ccb0
Merge pull request #1172 from natereid72/patch-1
k8s-ci-robot May 3, 2021
2ca43de
Merge pull request #1173 from srm09/update-golang-version-1.16
k8s-ci-robot May 3, 2021
033871e
add failure domain API
yastij Jan 27, 2021
2380712
Initial proposal
Mar 18, 2021
b1e3f2f
Merge pull request #1149 from gab-satchi/multitenancy-proposal
k8s-ci-robot May 5, 2021
5d20445
Merge pull request #1094 from yastij/fd-capv
k8s-ci-robot May 5, 2021
21d2f32
enable multi-network PlacementConstrains
yastij May 7, 2021
f7c13ba
add implementation details and API changes
yastij May 6, 2021
b9063dc
Merge pull request #1177 from yastij/fd-proposal-update
k8s-ci-robot May 7, 2021
0bbb55c
Merge pull request #1179 from yastij/fd-api-network
k8s-ci-robot May 7, 2021
5e07f94
move CPI over to CRS and refactor flavorgen
yastij Dec 3, 2020
b9e934e
Fix crs name conflict
Feb 10, 2021
e19b045
Merge pull request #1185 from gab-satchi/pr-1059
k8s-ci-robot May 25, 2021
b116203
- Multi tenancy support
gab-satchi May 25, 2021
20963ba
add checks for network validation on update in vSphereMachine
MaxRink Jun 2, 2021
34bbb00
Merge pull request #1192 from MaxRink/check_for_valid_ip_in_vSphereVM
k8s-ci-robot Jun 7, 2021
5484460
vsphereclusteridentity returns early when secret isn't found
gab-satchi Jun 16, 2021
f9baaa9
Merge pull request #1181 from gab-satchi/multi-tenancy
k8s-ci-robot Jun 24, 2021
caf0d81
session with round tripper keep alive
sadysnaat Mar 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# Build the manager binary
ARG GOLANG_VERSION=golang:1.13.5
ARG GOLANG_VERSION=golang:1.16.0
FROM $GOLANG_VERSION as builder
WORKDIR /workspace

Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ help: ## Display this help

.PHONY: test
test: generate lint-go ## Run tests
go test -v ./api/... ./controllers/... ./pkg/...
source ./hack/fetch_ext_bins.sh; fetch_tools; setup_envs; go test -v ./api/... ./controllers/... ./pkg/...

.PHONY: e2e-image
e2e-image: ## Build the e2e manager image
Expand Down Expand Up @@ -268,9 +268,9 @@ dev-manifests:
manifests: $(STAGE)-version-check $(STAGE)-flavors $(MANIFEST_DIR) $(BUILD_DIR) $(KUSTOMIZE)
rm -rf $(BUILD_DIR)/config
cp -R config $(BUILD_DIR)
sed -i'' -e 's@imagePullPolicy: .*@imagePullPolicy: '"$(PULL_POLICY)"'@' $(BUILD_DIR)/config/manager/manager_pull_policy.yaml
sed -i'' -e 's@image: .*@image: '"$(IMAGE)"'@' $(BUILD_DIR)/config/manager/manager_image_patch.yaml
"$(KUSTOMIZE)" build $(BUILD_DIR)/config > $(MANIFEST_DIR)/infrastructure-components.yaml
sed -i'' -e 's@imagePullPolicy: .*@imagePullPolicy: '"$(PULL_POLICY)"'@' $(BUILD_DIR)/config/default/manager_pull_policy.yaml
sed -i'' -e 's@image: .*@image: '"$(IMAGE)"'@' $(BUILD_DIR)/config/default/manager_image_patch.yaml
"$(KUSTOMIZE)" build $(BUILD_DIR)/config/default > $(MANIFEST_DIR)/infrastructure-components.yaml

## --------------------------------------
## Cleanup / Verification
Expand Down
45 changes: 28 additions & 17 deletions PROJECT
Original file line number Diff line number Diff line change
@@ -1,31 +1,42 @@
version: "2"
domain: cluster.x-k8s.io
repo: sigs.k8s.io/cluster-api-provider-vsphere
resources:
- group: infrastructure
version: v1alpha3
kind: VSphereCluster
- group: infrastructure
version: v1alpha3
kind: VSphereMachine
- group: infrastructure
kind: VSphereMachine
version: v1alpha3
kind: VSphereMachineTemplate
- group: infrastructure
kind: VSphereMachineTemplate
version: v1alpha3
- group: infrastructure
kind: VSphereVM
version: v1alpha3
- group: infrastructure
kind: VSphereFailureDomain
version: v1alpha3
- group: infrastructure
kind: VSphereDeploymentZone
version: v1alpha3
- group: infrastructure
kind: HAProxyLoadBalancer
- group: infrastructure
version: v1alpha4
kind: VSphereCluster
- group: infrastructure
version: v1alpha4
kind: VSphereMachine
- group: infrastructure
version: v1alpha4
kind: VSphereMachineTemplate
- group: infrastructure
version: v1alpha4
kind: VSphereVM
- group: infrastructure
kind: VSphereCluster
version: v1alpha4
- group: infrastructure
kind: VSphereMachine
version: v1alpha4
- group: infrastructure
kind: VSphereMachineTemplate
version: v1alpha4
- group: infrastructure
kind: VSphereVM
version: v1alpha4
- group: infrastructure
kind: VSphereDeploymentZone
version: v1alpha4
- group: infrastructure
kind: VSphereFailureDomain
version: v1alpha4
version: "2"
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ Note: These OVAs are not updated for security fixes and it is recommended to alw

| Kubernetes | CentOS 7 | Ubuntu 18.04 | Photon 3 |
| :--------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| v1.17.16 | [ova](http://storage.googleapis.com/capv-images/release/v1.17.16/centos-7-kube-v1.17.16.ova), [sha256](http://storage.googleapis.com/capv-images/release/v1.17.16/centos-7-kube-v1.17.16.ova.sha256) | [ova](http://storage.googleapis.com/capv-images/release/v1.17.16/ubuntu-1804-kube-v1.17.16.ova), [sha256](http://storage.googleapis.com/capv-images/release/v1.17.16/ubuntu-1804-kube-v1.17.16.ova.sha256) | [ova](http://storage.googleapis.com/capv-images/release/v1.17.16/photon-3-kube-v1.17.16.ova), [sha256](http://storage.googleapis.com/capv-images/release/v1.17.16/photon-3-1804-kube-v1.17.16.ova.sha256) |
| v1.18.14 | [ova](http://storage.googleapis.com/capv-images/release/v1.18.14/centos-7-kube-v1.18.14.ova), [sha256](http://storage.googleapis.com/capv-images/release/v1.18.14/centos-7-kube-v1.18.14.ova.sha256) | [ova](http://storage.googleapis.com/capv-images/release/v1.18.14/ubuntu-1804-kube-v1.18.14.ova), [sha256](http://storage.googleapis.com/capv-images/release/v1.18.14/ubuntu-1804-kube-v1.18.14.ova.sha256) | [ova](http://storage.googleapis.com/capv-images/release/v1.18.14/photon-3-kube-v1.18.14.ova), [sha256](http://storage.googleapis.com/capv-images/release/v1.18.14/photon-3-kube-v1.18.14.ova.sha256) |
| v1.19.6 | [ova](http://storage.googleapis.com/capv-images/release/v1.19.6/centos-7-kube-v1.19.6.ova), [sha256](http://storage.googleapis.com/capv-images/release/v1.19.6/centos-7-kube-v1.19.6.ova.sha256) | [ova](http://storage.googleapis.com/capv-images/release/v1.19.6/ubuntu-1804-kube-v1.19.6.ova), [sha256](http://storage.googleapis.com/capv-images/release/v1.19.6/ubuntu-1804-kube-v1.19.6.ova.sha256) | [ova](http://storage.googleapis.com/capv-images/release/v1.19.6/photon-3-kube-v1.19.6.ova), [sha256](http://storage.googleapis.com/capv-images/release/v1.19.6/photon-3-kube-v1.19.6.ova.sha256) |
| v1.20.1 | [ova](http://storage.googleapis.com/capv-images/release/v1.20.1/centos-7-kube-v1.20.1.ova), [sha256](http://storage.googleapis.com/capv-images/release/v1.20.1/centos-7-kube-v1.20.1.ova.sha256) | [ova](http://storage.googleapis.com/capv-images/release/v1.20.1/ubuntu-1804-kube-v1.20.1.ova), [sha256](http://storage.googleapis.com/capv-images/release/v1.20.1/ubuntu-1804-kube-v1.20.1.ova.sha256) | [ova](http://storage.googleapis.com/capv-images/release/v1.20.1/photon-3-kube-v1.20.1.ova), [sha256](http://storage.googleapis.com/capv-images/release/v1.20.1/photon-3-kube-v1.20.1.ova.sha256) |
| v1.17.16 | [ova](https://storage.googleapis.com/capv-images/release/v1.17.16/centos-7-kube-v1.17.16.ova), [sha256](https://storage.googleapis.com/capv-images/release/v1.17.16/centos-7-kube-v1.17.16.ova.sha256) | [ova](https://storage.googleapis.com/capv-images/release/v1.17.16/ubuntu-1804-kube-v1.17.16.ova), [sha256](https://storage.googleapis.com/capv-images/release/v1.17.16/ubuntu-1804-kube-v1.17.16.ova.sha256) | [ova](https://storage.googleapis.com/capv-images/release/v1.17.16/photon-3-kube-v1.17.16.ova), [sha256](https://storage.googleapis.com/capv-images/release/v1.17.16/photon-3-1804-kube-v1.17.16.ova.sha256) |
| v1.18.14 | [ova](https://storage.googleapis.com/capv-images/release/v1.18.14/centos-7-kube-v1.18.14.ova), [sha256](https://storage.googleapis.com/capv-images/release/v1.18.14/centos-7-kube-v1.18.14.ova.sha256) | [ova](https://storage.googleapis.com/capv-images/release/v1.18.14/ubuntu-1804-kube-v1.18.14.ova), [sha256](https://storage.googleapis.com/capv-images/release/v1.18.14/ubuntu-1804-kube-v1.18.14.ova.sha256) | [ova](https://storage.googleapis.com/capv-images/release/v1.18.14/photon-3-kube-v1.18.14.ova), [sha256](https://storage.googleapis.com/capv-images/release/v1.18.14/photon-3-kube-v1.18.14.ova.sha256) |
| v1.19.6 | [ova](https://storage.googleapis.com/capv-images/release/v1.19.6/centos-7-kube-v1.19.6.ova), [sha256](https://storage.googleapis.com/capv-images/release/v1.19.6/centos-7-kube-v1.19.6.ova.sha256) | [ova](https://storage.googleapis.com/capv-images/release/v1.19.6/ubuntu-1804-kube-v1.19.6.ova), [sha256](https://storage.googleapis.com/capv-images/release/v1.19.6/ubuntu-1804-kube-v1.19.6.ova.sha256) | [ova](https://storage.googleapis.com/capv-images/release/v1.19.6/photon-3-kube-v1.19.6.ova), [sha256](https://storage.googleapis.com/capv-images/release/v1.19.6/photon-3-kube-v1.19.6.ova.sha256) |
| v1.20.1 | [ova](https://storage.googleapis.com/capv-images/release/v1.20.1/centos-7-kube-v1.20.1.ova), [sha256](https://storage.googleapis.com/capv-images/release/v1.20.1/centos-7-kube-v1.20.1.ova.sha256) | [ova](https://storage.googleapis.com/capv-images/release/v1.20.1/ubuntu-1804-kube-v1.20.1.ova), [sha256](https://storage.googleapis.com/capv-images/release/v1.20.1/ubuntu-1804-kube-v1.20.1.ova.sha256) | [ova](https://storage.googleapis.com/capv-images/release/v1.20.1/photon-3-kube-v1.20.1.ova), [sha256](https://storage.googleapis.com/capv-images/release/v1.20.1/photon-3-kube-v1.20.1.ova.sha256) |

A full list of the published machine images for CAPV may be obtained with the following command:

Expand All @@ -66,7 +66,7 @@ gsutil ls gs://capv-images/release/*
Or, to produce a list of URLs for the same image files (and their checksums), the following command may be used:

```shell
gsutil ls gs://capv-images/release/*/*.{ova,sha256} | sed 's~^gs://~http://storage.googleapis.com/~'
gsutil ls gs://capv-images/release/*/*.{ova,sha256} | sed 's~^gs://~https://storage.googleapis.com/~'
```

## HAProxy published OVAs
Expand All @@ -75,7 +75,7 @@ Note: These OVAs are not updated for security fixes and it is recommended to alw

| HAProxy Dataplane API | Photon 3 |
|:--------------------: | :------: |
| v1.2.4 | [ova](http://storage.googleapis.com/capv-images/extra/haproxy/release/v1.2.4/photon-3-haproxy-v1.2.4.ova), [sha256](http://storage.googleapis.com/capv-images/extra/haproxy/release/v1.2.4/photon-3-haproxy-v1.2.4.ova.sha256) |
| v1.2.4 | [ova](https://storage.googleapis.com/capv-images/extra/haproxy/release/v1.2.4/photon-3-haproxy-v1.2.4.ova), [sha256](https://storage.googleapis.com/capv-images/extra/haproxy/release/v1.2.4/photon-3-haproxy-v1.2.4.ova.sha256) |

A full list of the published HAProxy images for CAPV may be obtained with the following command:

Expand All @@ -86,7 +86,7 @@ gsutil ls gs://capv-images/extra/haproxy/release/*
Or, to produce a list of URLs for the same image files (and their checksums), the following command may be used:

```shell
gsutil ls gs://capv-images/extra/haproxy/release/*/*.{ova,sha256} | sed 's~^gs://~http://storage.googleapis.com/~'
gsutil ls gs://capv-images/extra/haproxy/release/*/*.{ova,sha256} | sed 's~^gs://~https://storage.googleapis.com/~'
```

## Documentation
Expand Down
29 changes: 21 additions & 8 deletions api/v1alpha3/condition_consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ const (
// while installing the container storage interface addon; those kind of errors are usually transient
// the operation is automatically re-tried by the controller.
CSIProvisioningFailedReason = "CSIProvisioningFailed"

// VCenterAvailableCondition documents the connectivity with vcenter
// for a given VSphereCluster
VCenterAvailableCondition clusterv1.ConditionType = "VCenterAvailable"

// VCenterUnreachableReason (Severity=Error) documents a VSphereCluster controller detecting
// issues with VCenter reachability;
VCenterUnreachableReason = "VCenterUnreachable"
)

// Conditions and condition Reasons for the VSphereMachine and the VSphereVM object.
Expand Down Expand Up @@ -108,3 +100,24 @@ const (
// NOTE: This reason does not apply to VSphereVM (this state happens after the VSphereVM is in ready state).
WaitingForNetworkAddressesReason = "WaitingForNetworkAddresses"
)

// Conditions and Reasons related to utilizing a VSphereIdentity to make connections to a VCenter. Can currently be used by VSphereCluster and VSphereVM

const (
// VCenterAvailableCondition documents the connectivity with vcenter
// for a given VSphereCluster
VCenterAvailableCondition clusterv1.ConditionType = "VCenterAvailable"

// VCenterUnreachableReason (Severity=Error) documents a VSphereCluster controller detecting
// issues with VCenter reachability;
VCenterUnreachableReason = "VCenterUnreachable"

// CredentialsAvailableCondidtion is used by VSphereClusterIdentity when a credential secret is available and unused by other VSphereClusterIdentities
CredentialsAvailableCondidtion clusterv1.ConditionType = "CredentialsAvailable"

// SecretNotAvailableReason is used when the secret referenced by the VSphereClusterIdentity cannot be found
SecretNotAvailableReason = "SecretNotAvailable"

// SecretAlreadyInUseReason is used when another VSphereClusterIdentity is using the secret
SecretAlreadyInUseReason = "SecretInUse"
)
28 changes: 20 additions & 8 deletions api/v1alpha3/conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,24 @@ func TestFuzzyConversion(t *testing.T) {
g.Expect(AddToScheme(scheme)).To(Succeed())
g.Expect(nextver.AddToScheme(scheme)).To(Succeed())

t.Run("for VSphereCluster", utilconversion.FuzzTestFunc(scheme, &nextver.VSphereCluster{}, &VSphereCluster{}))
t.Run("for VSphereCluster", utilconversion.FuzzTestFunc(scheme, &nextver.VSphereClusterList{}, &VSphereClusterList{}))
t.Run("for VSphereMachine", utilconversion.FuzzTestFunc(scheme, &nextver.VSphereMachine{}, &VSphereMachine{}))
t.Run("for VSphereMachineList", utilconversion.FuzzTestFunc(scheme, &nextver.VSphereMachineList{}, &VSphereMachineList{}))
t.Run("for VSphereMachineTemplate", utilconversion.FuzzTestFunc(scheme, &nextver.VSphereMachineTemplate{}, &VSphereMachineTemplate{}))
t.Run("for VSphereMachineTemplateList", utilconversion.FuzzTestFunc(scheme, &nextver.VSphereMachineTemplateList{}, &VSphereMachineTemplateList{}))
t.Run("for VSphereVM", utilconversion.FuzzTestFunc(scheme, &nextver.VSphereVM{}, &VSphereVM{}))
t.Run("for VSphereVMList", utilconversion.FuzzTestFunc(scheme, &nextver.VSphereVMList{}, &VSphereVMList{}))
t.Run("for VSphereCluster", utilconversion.FuzzTestFunc(utilconversion.FuzzTestFuncInput{
Scheme: scheme,
Hub: &nextver.VSphereCluster{},
Spoke: &VSphereCluster{},
}))
t.Run("for VSphereMachine", utilconversion.FuzzTestFunc(utilconversion.FuzzTestFuncInput{
Scheme: scheme,
Hub: &nextver.VSphereMachine{},
Spoke: &VSphereMachine{},
}))
t.Run("for VSphereMachineTemplate", utilconversion.FuzzTestFunc(utilconversion.FuzzTestFuncInput{
Scheme: scheme,
Hub: &nextver.VSphereMachineTemplate{},
Spoke: &VSphereMachineTemplate{},
}))
t.Run("for VSphereVM", utilconversion.FuzzTestFunc(utilconversion.FuzzTestFuncInput{
Scheme: scheme,
Hub: &nextver.VSphereVM{},
Spoke: &VSphereVM{},
}))
}
27 changes: 0 additions & 27 deletions api/v1alpha3/haproxyloadbalancer_webhook.go

This file was deleted.

27 changes: 0 additions & 27 deletions api/v1alpha3/haproxyloadbalancerlist_webhook.go

This file was deleted.

30 changes: 28 additions & 2 deletions api/v1alpha3/vspherecluster_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,42 @@ limitations under the License.
package v1alpha3

import (
apiconversion "k8s.io/apimachinery/pkg/conversion"
infrav1alpha4 "sigs.k8s.io/cluster-api-provider-vsphere/api/v1alpha4"
utilconversion "sigs.k8s.io/cluster-api/util/conversion"
"sigs.k8s.io/controller-runtime/pkg/conversion"
)

// ConvertTo converts this VSphereCluster to the Hub version (v1alpha4).
func (src *VSphereCluster) ConvertTo(dstRaw conversion.Hub) error { // nolint
dst := dstRaw.(*infrav1alpha4.VSphereCluster)
return Convert_v1alpha3_VSphereCluster_To_v1alpha4_VSphereCluster(src, dst, nil)
if err := Convert_v1alpha3_VSphereCluster_To_v1alpha4_VSphereCluster(src, dst, nil); err != nil {
return err
}

// Manually restore data.
restored := &infrav1alpha4.VSphereCluster{}
if ok, err := utilconversion.UnmarshalData(src, restored); err != nil || !ok {
return err
}
if restored.Spec.IdentityRef != nil {
dst.Spec.IdentityRef = restored.Spec.IdentityRef
}
return nil
}

// ConvertFrom converts from the Hub version (v1alpha4) to this VSphereCluster.
func (dst *VSphereCluster) ConvertFrom(srcRaw conversion.Hub) error { // nolint
src := srcRaw.(*infrav1alpha4.VSphereCluster)
return Convert_v1alpha4_VSphereCluster_To_v1alpha3_VSphereCluster(src, dst, nil)
if err := Convert_v1alpha4_VSphereCluster_To_v1alpha3_VSphereCluster(src, dst, nil); err != nil {
return err
}

// Preserve Hub data on down-conversion.
if err := utilconversion.MarshalData(src, dst); err != nil {
return err
}
return nil
}

// ConvertTo converts this VSphereClusterList to the Hub version (v1alpha4).
Expand All @@ -44,3 +66,7 @@ func (dst *VSphereClusterList) ConvertFrom(srcRaw conversion.Hub) error { // nol
src := srcRaw.(*infrav1alpha4.VSphereClusterList)
return Convert_v1alpha4_VSphereClusterList_To_v1alpha3_VSphereClusterList(src, dst, nil)
}

func Convert_v1alpha4_VSphereClusterSpec_To_v1alpha3_VSphereClusterSpec(in *infrav1alpha4.VSphereClusterSpec, out *VSphereClusterSpec, s apiconversion.Scope) error { // nolint
return autoConvert_v1alpha4_VSphereClusterSpec_To_v1alpha3_VSphereClusterSpec(in, out, s)
}
8 changes: 8 additions & 0 deletions api/v1alpha3/vspherecluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ type VSphereClusterSpec struct {
// DEPRECATED: will be removed in v1alpha4
// +optional
LoadBalancerRef *corev1.ObjectReference `json:"loadBalancerRef,omitempty"`

// IdentityRef is a reference to either a Secret or VSphereClusterIdentity that contains
// the identity to use when reconciling the cluster.
// +optional
IdentityRef *VSphereIdentityReference `json:"identityRef,omitempty"`
}

// VSphereClusterStatus defines the observed state of VSphereClusterSpec
Expand All @@ -72,6 +77,9 @@ type VSphereClusterStatus struct {
// Conditions defines current service state of the VSphereCluster.
// +optional
Conditions clusterv1.Conditions `json:"conditions,omitempty"`

// FailureDomains is a list of failure domain objects synced from the infrastructure provider.
FailureDomains clusterv1.FailureDomains `json:"failureDomains,omitempty"`
}

// +kubebuilder:object:root=true
Expand Down
Loading