forked from stakater/application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tiltfile
66 lines (54 loc) · 2.86 KB
/
Tiltfile
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
load('ext://helm_resource', 'helm_resource', 'helm_repo')
load('ext://namespace', 'namespace_create', 'namespace_inject')
settings = read_json('tilt-settings-sno3.json', default={})
allow_k8s_contexts(k8s_context()) # disable check
# Add Helm repos
helm_repo('stakater', 'https://stakater.github.io/stakater-charts')
helm_repo('sealed-secrets', 'https://bitnami-labs.github.io/sealed-secrets')
# Install IMC
imc_namespace = "stakater-ingress-monitor-controller"
namespace_create(imc_namespace)
helm_resource('imc', 'oci://ghcr.io/stakater/charts/ingress-monitor-controller', namespace=imc_namespace,flags=['--set','developmentMode=true'])
# Install IMC Config
local_resource(
'imc-config',
cmd='helm upgrade --install ingress-monitor-controller-config -n {} oci://ghcr.io/stakater/charts/ingress-monitor-controller-config --set developmentMode=true'.format(imc_namespace)
)
# Install Forecastle
forecastle_namespace = "stakater-forecastle"
namespace_create(forecastle_namespace)
helm_resource('forecastle', 'stakater/forecastle', namespace=forecastle_namespace, resource_deps=["stakater"])
# Install SealedSecrets
sealedsecrets_namespace = "sealed-secrets"
namespace_create(sealedsecrets_namespace)
helm_resource('sealedsecrets', 'sealed-secrets/sealed-secrets', namespace=sealedsecrets_namespace, flags=['--set', 'podSecurityContext.enabled=false','--set', 'containerSecurityContext.enabled=false'], resource_deps=["sealed-secrets"])
# Install ExternalSecrets
externalsecrets_namespace = "external-secrets-operator"
namespace_create(externalsecrets_namespace)
local_resource(
'external-secrets-operator',
cmd='helm install external-secrets-operator -n external-secrets-operator oci://ghcr.io/stakater/charts/external-secrets-operator --version=0.0.2 --set operator.installPlanApproval=Automatic --set securityContext.runAsUser="" --set securityContext.fsGroup=""'
)
# Install grafana-operator
grafana_namespace = "grafana-operator"
namespace_create(grafana_namespace)
local_resource(
'grafana-operator',
cmd='helm install grafana-operator -n grafana-operator oci://ghcr.io/stakater/charts/grafana-operator --version=0.0.1 --set operator.installPlanApproval=Automatic'
)
# Install openshift-vertical-pod-autoscaler
vpa_namespace = "openshift-vertical-pod-autoscaler"
namespace_create(vpa_namespace)
local_resource(
'openshift-vertical-pod-autoscaler',
cmd='helm install openshift-vertical-pod-autoscaler -n openshift-vertical-pod-autoscaler oci://ghcr.io/stakater/charts/openshift-vertical-pod-autoscaler --version=0.0.3'
)
# Wait until VPA CRD becomes available
local_resource(
'wait-for-crds',
cmd='timeout 300s bash -c "until kubectl wait --for condition=Established crd/verticalpodautoscalers.autoscaling.k8s.io; do sleep 10; done"',
resource_deps=[
'openshift-vertical-pod-autoscaler'
])
# Install cert-manager
# it exists already