forked from carvel-dev/kapp-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsul-image-helm.yml
More file actions
44 lines (41 loc) · 1.38 KB
/
Copy pathconsul-image-helm.yml
File metadata and controls
44 lines (41 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
apiVersion: kappctrl.k14s.io/v1alpha1
kind: App
metadata:
name: consul
namespace: default
spec:
serviceAccountName: default-ns-sa
fetch:
- image:
url: dkalinin/consul-helm
template:
- helmTemplate: {}
- ytt:
ignoreUnknownComments: true
inline:
paths:
fix.yml: |
#@ load("@ytt:overlay", "overlay")
#@overlay/match by=overlay.subset({"kind":"Pod", "metadata":{"name": "consul-consul-test"}})
#@overlay/remove
---
#! mark PVCs as owned by kapp so they will deleted successfully
#@overlay/match by=overlay.subset({"kind":"StatefulSet", "metadata":{"name": "consul-consul-server"}})
---
spec:
volumeClaimTemplates:
#@overlay/match by=overlay.subset({"metadata":{"name": "data-default"}})
- metadata:
#@overlay/match missing_ok=True
annotations:
#@overlay/match expects=0
kapp.k14s.io/owned-for-deletion: ""
#! Not sure why there was cluster level resources
#@overlay/match by=overlay.subset({"kind": "ClusterRole"}),expects=2
#@overlay/remove
---
#@overlay/match by=overlay.subset({"kind": "ClusterRoleBinding"}),expects=2
#@overlay/remove
---
deploy:
- kapp: {}