Add more kustomization patches

Add more patches for kustomize for use with Cluster API

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
This commit is contained in:
Scott Lowe 2019-11-02 00:08:44 -04:00
parent 9f11f45907
commit be2256cc15
No known key found for this signature in database
GPG key ID: 949F43F6E6C11780
6 changed files with 41 additions and 3 deletions

View file

@ -0,0 +1,4 @@
[
{ "op": "replace", "path": "/metadata/name", "value": "usw2-cluster-1" },
{ "op": "replace", "path": "/spec/infrastructureRef/name", "value": "usw2-cluster-1" }
]

View file

@ -9,17 +9,29 @@ patchesJson6902:
version: v1alpha2
kind: Cluster
name: capi-quickstart
path: name-patch.json
path: cluster-name-patch.json
- target:
group: infrastructure.cluster.x-k8s.io
version: v1alpha2
kind: AWSCluster
name: capi-quickstart
path: name-patch.json
path: awscluster-name-patch.json
patches:
- target:
group: infrastructure.cluster.x-k8s.io
version: v1alpha2
kind: AWSCluster
name: capi-quickstart
path: cluster-details.yaml
path: awscluster-details.yaml
- target:
group: cluster.x-k8s.io
version: v1alpha2
kind: Machine
name: .*
path: machine-labels.yaml
- target:
group: cluster.x-k8s.io
version: v1alpha2
kind: MachineDeployment
name: .*
path: machinedeployment-labels.yaml

View file

@ -0,0 +1,7 @@
---
apiVersion: cluster.x-k8s.io/v1alpha2
kind: Machine
metadata:
name: .*
labels:
cluster.x-k8s.io/cluster-name: "usw2-cluster1"

View file

@ -0,0 +1,15 @@
---
apiVersion: MachineDeployment
kind: MachineDeployment
metadata:
name: .*
labels:
cluster.x-k8s.io/cluster-name: "usw2-cluster1"
spec:
selector:
matchLabels:
cluster.x-k8s.io/cluster-name: "usw2-cluster1"
template:
metadata:
labels:
cluster.x-k8s.io/cluster-name: "usw2-cluster1"