Skip to content

Commit

Permalink
fix default envoy route behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Humair Khan <HumairAK@users.noreply.github.com>
  • Loading branch information
HumairAK committed Aug 16, 2024
1 parent a7c12ce commit 67fd529
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion controllers/dspipeline_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,9 @@ func (p *DSPAParams) SetupMLMD(dsp *dspa.DataSciencePipelinesApplication, log lo
log.Info("MLMD not specified, but is a required component for V2 Pipelines. Including MLMD with default specs.")
p.MLMD = &dspa.MLMD{
Deploy: true,
Envoy: &dspa.Envoy{
DeployRoute: true,
},
}
} else if !p.MLMD.Deploy {
return fmt.Errorf(MlmdIsRequiredInV2Msg)
Expand All @@ -515,7 +518,8 @@ func (p *DSPAParams) SetupMLMD(dsp *dspa.DataSciencePipelinesApplication, log lo

if p.MLMD.Envoy == nil {
p.MLMD.Envoy = &dspa.Envoy{
Image: config.GetStringConfigWithDefault(MlmdEnvoyImagePath, config.DefaultImageValue),
Image: config.GetStringConfigWithDefault(MlmdEnvoyImagePath, config.DefaultImageValue),
DeployRoute: true,
}
}
if p.MLMD.GRPC == nil {
Expand Down
1 change: 1 addition & 0 deletions tests/resources/dspa-external-lite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ spec:
deploy: true
envoy:
image: quay.io/maistra/proxyv2-ubi8:2.5.0
deployRoute: false
resources:
limits:
cpu: 20m
Expand Down
1 change: 1 addition & 0 deletions tests/resources/dspa-lite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ spec:
deploy: true
envoy:
image: quay.io/maistra/proxyv2-ubi8:2.5.0
deployRoute: false
resources:
limits:
cpu: 20m
Expand Down

0 comments on commit 67fd529

Please sign in to comment.