22meta = read_json ('nix/meta.json' )
33operator_name = meta ['operator' ]['name' ]
44
5- # If tilt_options.json exists read it and load the default_registry and default_repository value from it
5+ # If tilt_options.json exists read it and load the default_registry, default_operator_repository,
6+ # and default_product_repository value from it
67settings = read_json ('tilt_options.json' , default = {})
78registry = settings .get ('default_registry' , 'oci.stackable.tech' )
8- repository = settings .get ('default_repository' , registry + '/' + 'sdp' )
9- operator_image_name = repository + '/' + operator_name
109
11- # Configure default registry either read from config file above, or with default value of "oci.stackable.tech"
10+ # Construct the operator image repository. It uses the "sandbox" instead of the "sdp" namespace to
11+ # separate "testing/local" images from official (published) images.
12+ operator_repository = settings .get ('default_operator_repository' , registry + '/' + 'sandbox' )
13+ operator_image_name = operator_repository + '/' + operator_name
14+
15+
16+ # Configure default registry either read from config file above, or with default value of
17+ # "oci.stackable.tech"
1218default_registry (registry )
1319
1420custom_build (
@@ -31,14 +37,14 @@ k8s_kind('DaemonSet', image_json_path='{.spec.template.metadata.annotations.inte
3137# supported by helm(set).
3238helm_values = settings .get ('helm_values' , None )
3339
34- helm_override_image_repository = 'image.repository=' + repository
40+ helm_override_operator_image_repository = 'image.repository=' + operator_repository
3541
3642k8s_yaml (helm (
3743 'deploy/helm/' + operator_name ,
3844 name = operator_name ,
3945 namespace = "stackable-operators" ,
4046 set = [
41- helm_override_image_repository ,
47+ helm_override_operator_image_repository ,
4248 ],
4349 values = helm_values ,
4450))
0 commit comments