-
Notifications
You must be signed in to change notification settings - Fork 295
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 <[email protected]>
- Loading branch information
1 parent
8968a1d
commit 7b338f6
Showing
17 changed files
with
460 additions
and
243 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
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 was deleted.
Oops, something went wrong.
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
11 changes: 11 additions & 0 deletions
11
test/e2e/data/infrastructure-vsphere/main/ownerreferences/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,11 @@ | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: VSphereClusterIdentity | ||
metadata: | ||
name: ownerreferences | ||
spec: | ||
secretName: ownerreferences | ||
allowedNamespaces: | ||
selector: | ||
matchLabels: | ||
kubernetes.io/metadata.name: '${NAMESPACE}' |
7 changes: 7 additions & 0 deletions
7
test/e2e/data/infrastructure-vsphere/main/ownerreferences/drop-existing-identity-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} |
29 changes: 29 additions & 0 deletions
29
test/e2e/data/infrastructure-vsphere/main/ownerreferences/failure-domains.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,29 @@ | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: VSphereFailureDomain | ||
metadata: | ||
name: "ownerreferences" | ||
spec: | ||
region: | ||
name: '${VSPHERE_DATACENTER}' | ||
type: Datacenter | ||
tagCategory: k8s-region | ||
zone: | ||
name: '${VSPHERE_COMPUTE_CLUSTER}' | ||
type: ComputeCluster | ||
tagCategory: k8s-zone | ||
topology: | ||
datacenter: '${VSPHERE_DATACENTER}' | ||
# datastore is optional and should\can be set when only one compute cluster is set | ||
# or we should use storage policy | ||
computeCluster: '${VSPHERE_COMPUTE_CLUSTER}' | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: VSphereDeploymentZone | ||
metadata: | ||
name: "ownerreferences" | ||
spec: | ||
server: '${VSPHERE_SERVER}' | ||
failureDomain: "ownerreferences" | ||
placementConstraint: | ||
resourcePool: '${VSPHERE_RESOURCE_POOL}' |
12 changes: 12 additions & 0 deletions
12
test/e2e/data/infrastructure-vsphere/main/ownerreferences/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 | ||
- failure-domains.yaml | ||
patchesStrategicMerge: | ||
- ../commons/cluster-resource-set-label.yaml | ||
- ../commons/cluster-network-CIDR.yaml | ||
- ../commons/cluster-resource-set-csi-insecure.yaml | ||
- vsphereclusteridentity.yaml | ||
- drop-existing-identity-secret.yaml |
11 changes: 11 additions & 0 deletions
11
test/e2e/data/infrastructure-vsphere/main/ownerreferences/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: ownerreferences | ||
|
Empty file.
Oops, something went wrong.