-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ownerRef check for vSphereClusterIdentity
Signed-off-by: killianmuldoon <kmuldoon@vmware.com>
- Loading branch information
1 parent
d8c0e08
commit bfcf1f9
Showing
10 changed files
with
145 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
12 changes: 12 additions & 0 deletions
12
test/e2e/data/infrastructure-vsphere/main/failuredomains/cluster-identity.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: VSphereClusterIdentity | ||
metadata: | ||
name: "${CLUSTER_NAME}" | ||
namespace: "${NAMESPACE}" | ||
spec: | ||
secretName: identity | ||
allowedNamespaces: | ||
selector: | ||
matchLabels: | ||
kubernetes.io/metadata.name: '${NAMESPACE}' |
7 changes: 7 additions & 0 deletions
7
test/e2e/data/infrastructure-vsphere/main/failuredomains/drop-existing-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This secret is not needed. This cluster uses a ClusterIdentity instead | ||
$patch: delete | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: ${CLUSTER_NAME} | ||
namespace: ${NAMESPACE} |
12 changes: 12 additions & 0 deletions
12
test/e2e/data/infrastructure-vsphere/main/failuredomains/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../base | ||
- cluster-identity.yaml | ||
patchesStrategicMerge: | ||
- ../commons/cluster-resource-set-label.yaml | ||
- ../commons/cluster-network-CIDR.yaml | ||
- ../commons/cluster-resource-set-csi-insecure.yaml | ||
- vsphereclusteridentity.yaml | ||
- drop-existing-secret.yaml | ||
# - ../commons/failure-domain.yaml |
11 changes: 11 additions & 0 deletions
11
test/e2e/data/infrastructure-vsphere/main/failuredomains/vsphereclusteridentity.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: VSphereCluster | ||
metadata: | ||
name: "${CLUSTER_NAME}" | ||
namespace: "${NAMESPACE}" | ||
spec: | ||
identityRef: | ||
kind: VSphereClusterIdentity | ||
name: "${CLUSTER_NAME}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.