diff --git a/pkg/controller/integrationcontext/initialize.go b/pkg/controller/integrationcontext/initialize.go index 0376008b4e..a1a5cc2b0c 100644 --- a/pkg/controller/integrationcontext/initialize.go +++ b/pkg/controller/integrationcontext/initialize.go @@ -57,6 +57,12 @@ func (action *initializeAction) Handle(ctx context.Context, ictx *v1alpha1.Integ return err } + // Updating the whole integration context as it may have changed + action.L.Info("Updating IntegrationContext") + if err := action.client.Update(ctx, target); err != nil { + return err + } + if target.Spec.Image == "" { // by default the context should be build target.Status.Phase = v1alpha1.IntegrationContextPhaseBuildSubmitted @@ -76,6 +82,5 @@ func (action *initializeAction) Handle(ctx context.Context, ictx *v1alpha1.Integ target.Status.Digest = dgst action.L.Info("IntegrationContext state transition", "phase", target.Status.Phase) - return action.client.Status().Update(ctx, target) } diff --git a/pkg/platform/images/images.go b/pkg/platform/images/images.go index 09dc3affcd..e40eb84333 100644 --- a/pkg/platform/images/images.go +++ b/pkg/platform/images/images.go @@ -39,6 +39,8 @@ var StandardDependencies = map[string]bool{ "camel:core": true, "runtime:jvm": true, "runtime:yaml": true, + "mvn:org.apache.camel.k:camel-k-adapter-camel-2:" + defaults.RuntimeVersion: true, + "camel:camel-netty4-http": true, } // LookupPredefinedImage is used to find a suitable predefined image if available