Skip to content

Commit c9e1a44

Browse files
authored
Merge pull request #400 from intelligentfu8/debug_doris_annotation
[Enhancement] deubug annotation add doris
2 parents 70c8d8d + 6f7658b commit c9e1a44

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

api/doris/v1/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
var (
2626
AnnotationDebugKey = "selectdb.com.doris/runmode"
2727
AnnotationDebugValue = "debug"
28+
AnnotationDebugDorisKey = "apache.com.doris/runmode"
2829
)
2930

3031
// DorisClusterSpec defines the desired state of DorisCluster

cmd/doris-debug/main.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,13 @@ func kickOffDebug() bool {
121121
return true
122122
}
123123

124-
fmt.Println("the value not equal!", value, v1.AnnotationDebugValue)
124+
valueDoris := viper.GetString(v1.AnnotationDebugDorisKey)
125+
126+
if valueDoris == "\""+v1.AnnotationDebugDorisKey+"\"" {
127+
return true
128+
}
129+
130+
fmt.Println("the value not equal!", value, v1.AnnotationDebugValue, v1.AnnotationDebugDorisKey)
125131
return false
126132
}
127133

0 commit comments

Comments
 (0)