moved node/pod-selector to components

This commit is contained in:
2024-04-04 08:00:25 +02:00
parent 7b983ceb14
commit 4f72173df7
23 changed files with 54 additions and 96 deletions

@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
patches:
- path: nodeselector.yaml
target:
kind: (StatefulSet|Deployment|Job)
- path: podselector.yaml
target:
kind: Pod

@ -0,0 +1,9 @@
apiVersion: apps/v1
kind: not-important
metadata:
name: not-important
spec:
template:
spec:
nodeSelector:
region: local

@ -0,0 +1,7 @@
apiVersion: apps/v1
kind: not-important
metadata:
name: not-important
spec:
nodeSelector:
region: local

@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
patches:
- path: nodeselector.yaml
target:
kind: (StatefulSet|Deployment|Job)
- path: podselector.yaml
target:
kind: Pod

@ -0,0 +1,9 @@
apiVersion: apps/v1
kind: not-important
metadata:
name: not-important
spec:
template:
spec:
nodeSelector:
region: local

@ -0,0 +1,7 @@
apiVersion: apps/v1
kind: not-important
metadata:
name: not-important
spec:
nodeSelector:
region: local