Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions internal/controller/plugin/pluginpreset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,13 @@ func (r *PluginPresetReconciler) reconcilePluginPreset(ctx context.Context, pres

releaseName := getReleaseName(plugin, preset)

resolvedValues, err := r.resolveExpressionsForPreset(ctx, preset, &cluster)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to hide it behind a feature toggle....

if err != nil {
return fmt.Errorf("failed to resolve option values for plugin %s: %w", plugin.Name, err)
}

plugin.Spec = preset.Spec.Plugin
plugin.Spec.OptionValues = resolvedValues
plugin.Spec.ReleaseName = releaseName
// Set the cluster name to the name of the cluster. The PluginSpec contained in the PluginPreset does not have a cluster name.
plugin.Spec.ClusterName = cluster.GetName()
Expand Down
Loading
Loading