Skip to content

Commit 6f6718f

Browse files
committed
add kustomization and manifest generation for loadbalancer resources
Signed-off-by: Yassine TIJANI <[email protected]>
1 parent 0b9d2e6 commit 6f6718f

29 files changed

+138
-8
lines changed

config/crd/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ resources:
77
- bases/infrastructure.cluster.x-k8s.io_vspheremachines.yaml
88
- bases/infrastructure.cluster.x-k8s.io_vsphereclusters.yaml
99
- bases/infrastructure.cluster.x-k8s.io_vspheremachinetemplates.yaml
10+
- bases/infrastructure.cluster.x-k8s.io_awsloadbalancers.yaml
1011
# +kubebuilder:scaffold:crdkustomizeresource
1112

1213
#patches:
File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
2+
kind: VSphereCluster
3+
metadata:
4+
name: ${CLUSTER_NAME}
5+
spec:
6+
loadBalancerRef:
7+
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
8+
Kind: ${PROVIDER_KIND}
9+
Name: ${CLUSTER_NAME}
10+
namespace: default
11+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
namespace: default
4+
resources:
5+
- ../base
6+
patchesStrategicMerge:
7+
- cluster_loadbalancer_patch.yaml

0 commit comments

Comments
 (0)