Skip to content

Commit b4cdb95

Browse files
committed
fix(tilt): Trigger rebuild and set built image
1 parent b0f6fdd commit b4cdb95

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Tiltfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ custom_build(
2020
# We need to set the correct image annotation on the operator Deployment to use e.g.
2121
# oci.stackable.tech/sandbox/opa-operator:7y19m3d8clwxlv34v5q2x4p7v536s00g instead of
2222
# oci.stackable.tech/sandbox/opa-operator:0.0.0-dev (which does not exist)
23-
k8s_kind('Deployment', image_json_path='{.spec.template.metadata.annotations.internal\\.stackable\\.tech/image}')
23+
k8s_kind('DaemonSet', image_json_path='{.spec.template.metadata.annotations.internal\\.stackable\\.tech/image}')
2424

2525
k8s_yaml(helm(
2626
'deploy/helm/' + operator_name,
2727
name=operator_name,
2828
namespace="stackable-operators",
2929
set=[
30-
'image.repository=' + registry + '/' + operator_name,
30+
'secretOperator.image.repository=' + registry + '/' + operator_name,
3131
],
3232
))

deploy/helm/secret-operator/templates/daemonset.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ spec:
1111
{{- include "operator.selectorLabels" . | nindent 6 }}
1212
template:
1313
metadata:
14-
{{- with .Values.podAnnotations }}
1514
annotations:
16-
{{- toYaml . | nindent 8 }}
17-
{{- end }}
15+
internal.stackable.tech/image: "{{ .Values.secretOperator.image.repository }}:{{ .Values.secretOperator.image.tag | default .Chart.AppVersion }}"
16+
{{- with .Values.podAnnotations }}
17+
{{- toYaml . | nindent 8 }}
18+
{{- end }}
1819
labels:
1920
{{- include "operator.selectorLabels" . | nindent 8 }}
2021
spec:

0 commit comments

Comments
 (0)