getExtensions returns the extension configuration from the cluster status, or nil when PGDataImageInfo is not set.
(cluster *apiv1.Cluster)
| 351 | // getExtensions returns the extension configuration from the cluster status, |
| 352 | // or nil when PGDataImageInfo is not set. |
| 353 | func getExtensions(cluster *apiv1.Cluster) []apiv1.ExtensionConfiguration { |
| 354 | if cluster.Status.PGDataImageInfo == nil { |
| 355 | return nil |
| 356 | } |
| 357 | return cluster.Status.PGDataImageInfo.Extensions |
| 358 | } |
| 359 | |
| 360 | // CreateExtensionVolumes creates the extensions' ImageVolumes that are used |
| 361 | // by PostgreSQL Pods |
no outgoing calls
no test coverage detected