Skip to content

Commit

Permalink
update defaulting for tiflash config
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielZhangQD committed Apr 5, 2020
1 parent 400b248 commit 127c46e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 332 deletions.
8 changes: 8 additions & 0 deletions pkg/apis/pingcap/v1alpha1/defaulting/tidbcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,11 @@ func setPumpSpecDefault(tc *v1alpha1.TidbCluster) {
}
}
}

func setTiFlashSpecDefault(tc *v1alpha1.TidbCluster) {
if len(tc.Spec.Version) > 0 || tc.Spec.TiFlash.Version != nil {
if tc.Spec.TiFlash.BaseImage == "" {
tc.Spec.TiFlash.BaseImage = defaultTiFlashImage
}
}
}
332 changes: 0 additions & 332 deletions pkg/apis/pingcap/v1alpha1/defaulting/tiflash.go

This file was deleted.

0 comments on commit 127c46e

Please sign in to comment.