forked from ratify-project/ratify
-
Notifications
You must be signed in to change notification settings - Fork 1
/
helmfile.yaml
81 lines (80 loc) · 2.65 KB
/
helmfile.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
repositories:
- name: gatekeeper
url: https://open-policy-agent.github.io/gatekeeper/charts
- name: ratify
url: https://ratify-project.github.io/ratify
releases:
- name: gatekeeper
namespace: gatekeeper-system
createNamespace: true
chart: gatekeeper/gatekeeper
version: 3.17.0
wait: true
set:
- name: enableExternalData
value: true
- name: validatingWebhookTimeoutSeconds
value: 5
- name: mutatingWebhookTimeoutSeconds
value: 2
- name: externaldataProviderResponseCacheTTL
value: 10s
- name: ratify
namespace: gatekeeper-system
chart: ratify/ratify
version: 1.14.1 # Make sure this matches Chart.yaml
wait: true
needs:
- gatekeeper
hooks:
- events: ["presync"]
showlogs: true
command: "bash"
args:
- "-c"
- "kubectl apply -f https://ratify-project.github.io/ratify/library/default/template.yaml && kubectl apply -f https://ratify-project.github.io/ratify/library/default/samples/constraint.yaml"
- events: ["postuninstall"]
showlogs: true
command: "kubectl"
args:
- "delete"
- "-f"
- "https://ratify-project.github.io/ratify/library/default/template.yaml"
- "--ignore-not-found=true"
- events: ["postuninstall"]
showlogs: true
command: "kubectl"
args:
- "delete"
- "-f"
- "https://ratify-project.github.io/ratify/library/default/samples/constraint.yaml"
- "--ignore-not-found=true"
- events: ["postuninstall"]
showlogs: true
command: "kubectl"
args:
- "delete"
- "crd"
- "stores.config.ratify.deislabs.io"
- "verifiers.config.ratify.deislabs.io"
- "certificatestores.config.ratify.deislabs.io"
- "policies.config.ratify.deislabs.io"
- "keymanagementproviders.config.ratify.deislabs.io"
- "namespacedkeymanagementproviders.config.ratify.deislabs.io"
- "namespacedpolicies.config.ratify.deislabs.io"
- "namespacedstores.config.ratify.deislabs.io"
- "namespacedverifiers.config.ratify.deislabs.io"
- events: ["postuninstall"]
showlogs: true
command: "kubectl"
args:
- "delete"
- "secret"
- "ratify-tls"
- "-n"
- "gatekeeper-system"
set:
- name: notationCerts[0]
value: {{ exec "curl" (list "-sSL" "https://raw.githubusercontent.com/deislabs/ratify/main/test/testdata/notation.crt") | quote }}
- name: featureFlags.RATIFY_CERT_ROTATION
value: true