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

Function addTablespaces

tests/e2e/tablespaces_test.go:911–917  ·  view source on GitHub ↗
(cluster *apiv1.Cluster, tbsSlice []apiv1.TablespaceConfiguration)

Source from the content-addressed store, hash-verified

909})
910
911func addTablespaces(cluster *apiv1.Cluster, tbsSlice []apiv1.TablespaceConfiguration) {
912 updated := cluster.DeepCopy()
913 updated.Spec.Tablespaces = append(updated.Spec.Tablespaces, tbsSlice...)
914
915 err := env.Client.Patch(env.Ctx, updated, client.MergeFrom(cluster))
916 Expect(err).ToNot(HaveOccurred())
917}
918
919func updateTablespaceOwner(cluster *apiv1.Cluster, tablespaceName, newOwner string) {
920 updated := cluster.DeepCopy()

Callers 1

Calls 2

DeepCopyMethod · 0.45
PatchMethod · 0.45

Tested by

no test coverage detected