Skip to content

Commit b85dfd3

Browse files
fix(template/tilt): Support secret-operator helm overrides (#554)
* fix(template/tilt): Support secret-operator helm overrides, and DaemonSet image_json_path * chore(template/tilt): Make the helm override for image repository more concise * chore(template/tilt): Allow a custom helm values file Co-authored-by: Techassi <[email protected]> * Update template/Tiltfile --------- Co-authored-by: Techassi <[email protected]>
1 parent ffb31e6 commit b85dfd3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

template/Tiltfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ if os.path.exists('result'):
2626
# oci.stackable.tech/sandbox/opa-operator:7y19m3d8clwxlv34v5q2x4p7v536s00g instead of
2727
# oci.stackable.tech/sandbox/opa-operator:0.0.0-dev (which does not exist)
2828
k8s_kind('Deployment', image_json_path='{.spec.template.metadata.annotations.internal\\.stackable\\.tech/image}')
29+
k8s_kind('DaemonSet', image_json_path='{.spec.template.metadata.annotations.internal\\.stackable\\.tech/image}')
30+
31+
# Optionally specify a custom Helm values file to be passed to the Helm deployment below.
32+
# This file can for example be used to set custom telemetry options (like log level) which is not
33+
# supported by helm(set).
34+
helm_values = settings.get('helm_values', None)
35+
36+
helm_override_image_repository = 'image.repository=' + registry + '/' + operator_name
2937

3038
# Exclude stale CRDs from Helm chart, and apply the rest
3139
helm_crds, helm_non_crds = filter_yaml(
@@ -34,8 +42,9 @@ helm_crds, helm_non_crds = filter_yaml(
3442
name=operator_name,
3543
namespace="stackable-operators",
3644
set=[
37-
'image.repository=' + registry + '/' + operator_name,
45+
helm_override_image_repository,
3846
],
47+
values=helm_values,
3948
),
4049
api_version = "^apiextensions\\.k8s\\.io/.*$",
4150
kind = "^CustomResourceDefinition$",

0 commit comments

Comments
 (0)