Skip to content

Commit

Permalink
Install ingress component only when a provider is specifid (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranyodh authored Nov 8, 2023
1 parent f40ec4e commit 317f67a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/blueprint_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (r *BlueprintReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
}
}

if instance.Spec.Components.Core != nil && instance.Spec.Components.Core.Ingress != nil {
if instance.Spec.Components.Core != nil && instance.Spec.Components.Core.Ingress != nil && instance.Spec.Components.Core.Ingress.Provider != "" {
logger.Info("Reconciling ingress")
err = r.createOrUpdateIngress(ctx, logger, ingressResource(instance.Spec.Components.Core.Ingress))
if err != nil {
Expand Down

0 comments on commit 317f67a

Please sign in to comment.