(config *configuration.Data)
| 147 | } |
| 148 | |
| 149 | func (r *Cluster) setDefaultPlugins(config *configuration.Data) { |
| 150 | // Add the list of pre-defined plugins |
| 151 | foundPlugins := stringset.New() |
| 152 | for _, plugin := range r.Spec.Plugins { |
| 153 | foundPlugins.Put(plugin.Name) |
| 154 | } |
| 155 | |
| 156 | for _, pluginName := range config.GetIncludePlugins() { |
| 157 | if !foundPlugins.Has(pluginName) { |
| 158 | r.Spec.Plugins = append(r.Spec.Plugins, PluginConfiguration{ |
| 159 | Name: pluginName, |
| 160 | Enabled: ptr.To(true), |
| 161 | }) |
| 162 | } |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | // defaultTablespaces adds the tablespace owner where the |
| 167 | // user didn't specify it |
no test coverage detected