Skip to content

Commit

Permalink
Add resource overlay support to the imgw reconciler
Browse files Browse the repository at this point in the history
  • Loading branch information
pepov authored and waynz0r committed Feb 1, 2022
1 parent 1ecb679 commit b188dba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/components/istiomeshgateway/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,18 @@ func (rec *Component) ReleaseData(object runtime.Object) (*templatereconciler.Re
return nil, err
}

overlays, err := util.ConvertK8sOverlays(imgw.GetSpec().GetK8SResourceOverlays())
if err != nil {
return nil, errors.WrapIf(err, "could not convert k8s resource overlays")
}

return &templatereconciler.ReleaseData{
Chart: http.FS(assets.IstioMeshGateway),
Values: values,
Namespace: imgw.Namespace,
ChartName: chartName,
ReleaseName: releaseName,
Layers: overlays,
}, nil
}

Expand Down

0 comments on commit b188dba

Please sign in to comment.