Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion controllers/ztunnel/ztunnel_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,16 @@ func (r *Reconciler) installHelmChart(ctx context.Context, ztunnel *v1alpha1.ZTu
userValues := ztunnel.Spec.Values

// apply image digests from configuration, if not already set by user
userValues = applyImageDigests(ztunnel, userValues, config.Config)
// TODO: Revisit once we support ImageOverrides for ztunnel
// userValues = applyImageDigests(ztunnel, userValues, config.Config)

if userValues == nil {
userValues = &v1.ZTunnelValues{}
}

if userValues.ZTunnel == nil {
userValues.ZTunnel = &v1.ZTunnelConfig{}
}

// apply userValues on top of defaultValues from profiles
mergedHelmValues, err := istiovalues.ApplyProfilesAndPlatform(
Expand Down
2 changes: 2 additions & 0 deletions controllers/ztunnel/ztunnel_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ func TestDetermineReadyCondition(t *testing.T) {
}

func TestApplyImageDigests(t *testing.T) {
t.Skip("https://github.com/istio-ecosystem/sail-operator/issues/581")

testCases := []struct {
name string
config config.OperatorConfig
Expand Down