Skip to content

Commit

Permalink
This should have been exported in the first place. (#86)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Farr <[email protected]>
  • Loading branch information
PrismaPhonic authored May 7, 2020
1 parent 2fcdcbb commit 6808a9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/apis/planetscale/v2/vitesscluster_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func DefaultVitessCluster(vt *VitessCluster) {
DefaultVitessKeyspaceTemplates(vt.Spec.Keyspaces)
defaultClusterBackup(vt.Spec.Backup)
DefaultTopoReconcileConfig(&vt.Spec.TopologyReconciliation)
defaultUpdateStrategy(&vt.Spec.UpdateStrategy)
DefaultUpdateStrategy(&vt.Spec.UpdateStrategy)
}

func defaultGlobalLockserver(vt *VitessCluster) {
Expand Down Expand Up @@ -170,7 +170,7 @@ func DefaultTopoReconcileConfig(confPtr **TopoReconcileConfig) {
}
}

func defaultUpdateStrategy(updateStratPtr **VitessClusterUpdateStrategy) {
func DefaultUpdateStrategy(updateStratPtr **VitessClusterUpdateStrategy) {
if *updateStratPtr == nil {
*updateStratPtr = &VitessClusterUpdateStrategy{}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/planetscale/v2/vitesskeyspace_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package v2
// might not be safe to deref.
func DefaultVitessKeyspace(dst *VitessKeyspace) {
DefaultTopoReconcileConfig(&dst.Spec.TopologyReconciliation)
defaultUpdateStrategy(&dst.Spec.UpdateStrategy)
DefaultUpdateStrategy(&dst.Spec.UpdateStrategy)
}

// DefaultVitessKeyspaceImages fills in unspecified keyspace-level images from cluster-level defaults.
Expand Down

0 comments on commit 6808a9b

Please sign in to comment.