mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
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:
parent
9f11f45907
commit
be2256cc15
6 changed files with 41 additions and 3 deletions
|
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
{ "op": "replace", "path": "/metadata/name", "value": "usw2-cluster-1" },
|
||||
{ "op": "replace", "path": "/spec/infrastructureRef/name", "value": "usw2-cluster-1" }
|
||||
]
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
apiVersion: cluster.x-k8s.io/v1alpha2
|
||||
kind: Machine
|
||||
metadata:
|
||||
name: .*
|
||||
labels:
|
||||
cluster.x-k8s.io/cluster-name: "usw2-cluster1"
|
||||
|
|
@ -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"
|
||||
Loading…
Reference in a new issue