MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / getExtensions

Function getExtensions

pkg/specs/volumes.go:353–358  ·  view source on GitHub ↗

getExtensions returns the extension configuration from the cluster status, or nil when PGDataImageInfo is not set.

(cluster *apiv1.Cluster)

Source from the content-addressed store, hash-verified

351// getExtensions returns the extension configuration from the cluster status,
352// or nil when PGDataImageInfo is not set.
353func 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

Callers 9

JoinReplicaInstanceFunction · 0.85
RestoreReplicaInstanceFunction · 0.85
createClusterPodSpecFunction · 0.85
createPostgresContainersFunction · 0.85
volumes_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected