Repository navigation
Expand file tree
/
Copy pathTiltfile
More file actions
38 lines (35 loc) · 1.74 KB
/
Copy pathTiltfile
File metadata and controls
38 lines (35 loc) · 1.74 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
load('.tilt-support', 'deploy_repo')
olmv1 = {
'repos': {
'catalogd': {
'image': 'quay.io/operator-framework/catalogd',
'binary': './cmd/catalogd',
'deployment': 'catalogd-controller-manager',
'deps': ['api', 'cmd/catalogd', 'internal/catalogd', 'internal/shared', 'go.mod', 'go.sum'],
'starting_debug_port': 20000,
},
'operator-controller': {
'image': 'quay.io/operator-framework/operator-controller',
'binary': './cmd/operator-controller',
'deployment': 'operator-controller-controller-manager',
'deps': ['api', 'cmd/operator-controller', 'internal/operator-controller', 'internal/shared', 'go.mod', 'go.sum'],
'starting_debug_port': 30000,
},
},
'yaml': 'helm/tilt.yaml',
}
values = read_yaml(olmv1['yaml'])
options = values.get('options', {})
features = options.get('operatorController', {}).get('features', {})
object_controller_enabled = options.get('objectController', {}).get('enabled')
if object_controller_enabled == None:
object_controller_enabled = options.get('operatorController', {}).get('enabled', True) and 'BoxcutterRuntime' in features.get('enabled', []) and 'BoxcutterRuntime' not in features.get('disabled', ['BoxcutterRuntime'])
if object_controller_enabled:
olmv1['repos']['object-controller'] = {
'image': 'quay.io/operator-framework/object-controller',
'binary': './cmd/object-controller',
'deployment': 'object-controller-controller-manager',
'deps': ['api', 'cmd/object-controller', 'internal/object-controller', 'internal/shared', 'go.mod', 'go.sum'],
'starting_debug_port': 40000,
}
deploy_repo(olmv1, '-tags containers_image_openpgp')