Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user provided maven setting are overridden by the camel-k operator #2777

Closed
lburgazzoli opened this issue Nov 24, 2021 · 0 comments · Fixed by #2858
Closed

user provided maven setting are overridden by the camel-k operator #2777

lburgazzoli opened this issue Nov 24, 2021 · 0 comments · Fixed by #2858
Assignees

Comments

@lburgazzoli
Copy link
Contributor

When the IntegrationPlatform reconcile loop kick is, any user provided maven setting get overridden, see

func (action *monitorAction) Handle(ctx context.Context, platform *v1.IntegrationPlatform) (*v1.IntegrationPlatform, error) {
// Just track the version of the operator in the platform resource
if platform.Status.Version != defaults.Version {
platform.Status.Version = defaults.Version
action.L.Info("IntegrationPlatform version updated", "version", platform.Status.Version)
}
// Refresh applied configuration
if err := platformutils.ConfigureDefaults(ctx, action.client, platform, false); err != nil {
return nil, err
}
return platform, nil
}

This is problematic because if the user want to configure custom settings, like credential to access a particular maven repo, then the credential are lost each time the monitor action is triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants