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

Function buildCommonInitJobFlags

pkg/specs/jobs.go:299–307  ·  view source on GitHub ↗
(cluster apiv1.Cluster)

Source from the content-addressed store, hash-verified

297}
298
299func buildCommonInitJobFlags(cluster apiv1.Cluster) []string {
300 var flags []string
301
302 if cluster.ShouldCreateWalArchiveVolume() {
303 flags = append(flags, "--pg-wal", PgWalVolumePgWalPath)
304 }
305
306 return flags
307}
308
309// jobRole describe a possible type of job
310type jobRole string

Calls 1

Tested by

no test coverage detected