Skip to content

Commit 6f7658b

Browse files
author
smiletan
committed
deubug annotation add doris
1 parent 70c8d8d commit 6f7658b

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)