Skip to content

Commit

Permalink
Add loglevel "warning"
Browse files Browse the repository at this point in the history
  • Loading branch information
koct9i committed Jun 24, 2024
1 parent 8af4020 commit 29749ed
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 8 deletions.
11 changes: 6 additions & 5 deletions api/v1/ytsaurus_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ type LocationSpec struct {
type LogLevel string

const (
LogLevelTrace LogLevel = "trace"
LogLevelDebug LogLevel = "debug"
LogLevelInfo LogLevel = "info"
LogLevelError LogLevel = "error"
LogLevelTrace LogLevel = "trace"
LogLevelDebug LogLevel = "debug"
LogLevelInfo LogLevel = "info"
LogLevelWarning LogLevel = "warning"
LogLevelError LogLevel = "error"
)

// LogWriterType string describes types of possible log writers.
Expand Down Expand Up @@ -159,7 +160,7 @@ type BaseLoggerSpec struct {
//+kubebuilder:default:=plain_text
//+kubebuilder:validation:Enum=plain_text;json;yson
Format LogFormat `json:"format,omitempty"`
//+kubebuilder:validation:Enum=trace;debug;info;error
//+kubebuilder:validation:Enum=trace;debug;info;warning;error
//+kubebuilder:default:=info
MinLogLevel LogLevel `json:"minLogLevel,omitempty"`
//+kubebuilder:default:=none
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/cluster.ytsaurus.tech_remoteexecnodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -937,6 +938,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -1123,6 +1125,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/cluster.ytsaurus.tech_remoteytsaurus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -878,6 +879,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down
31 changes: 31 additions & 0 deletions config/crd/bases/cluster.ytsaurus.tech_ytsaurus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -996,6 +997,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -3186,6 +3188,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -3356,6 +3359,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -5551,6 +5555,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -5714,6 +5719,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -7953,6 +7959,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -8089,6 +8096,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -8267,6 +8275,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -10482,6 +10491,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -10654,6 +10664,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -12887,6 +12898,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -13050,6 +13062,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -15288,6 +15301,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -15460,6 +15474,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -17643,6 +17658,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -17806,6 +17822,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -19987,6 +20004,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -20150,6 +20168,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -22338,6 +22357,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -22512,6 +22532,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -24725,6 +24746,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -24888,6 +24910,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -27084,6 +27107,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -27256,6 +27280,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -29508,6 +29533,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -29678,6 +29704,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -31879,6 +31906,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -32059,6 +32087,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -34452,6 +34481,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -34615,6 +34645,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down
6 changes: 3 additions & 3 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ _Appears in:_
| --- | --- | --- | --- |
| `name` _string_ | | | MinLength: 1 <br /> |
| `format` _[LogFormat](#logformat)_ | | plain_text | Enum: [plain_text json yson] <br /> |
| `minLogLevel` _[LogLevel](#loglevel)_ | | info | Enum: [trace debug info error] <br /> |
| `minLogLevel` _[LogLevel](#loglevel)_ | | info | Enum: [trace debug info warning error] <br /> |
| `compression` _[LogCompression](#logcompression)_ | | none | Enum: [none gzip zstd] <br /> |
| `useTimestampSuffix` _boolean_ | | false | |
| `rotationPolicy` _[LogRotationPolicy](#logrotationpolicy)_ | | | |
Expand Down Expand Up @@ -1347,7 +1347,7 @@ _Appears in:_
| --- | --- | --- | --- |
| `name` _string_ | | | MinLength: 1 <br /> |
| `format` _[LogFormat](#logformat)_ | | plain_text | Enum: [plain_text json yson] <br /> |
| `minLogLevel` _[LogLevel](#loglevel)_ | | info | Enum: [trace debug info error] <br /> |
| `minLogLevel` _[LogLevel](#loglevel)_ | | info | Enum: [trace debug info warning error] <br /> |
| `compression` _[LogCompression](#logcompression)_ | | none | Enum: [none gzip zstd] <br /> |
| `useTimestampSuffix` _boolean_ | | false | |
| `rotationPolicy` _[LogRotationPolicy](#logrotationpolicy)_ | | | |
Expand Down Expand Up @@ -1483,7 +1483,7 @@ _Appears in:_
| --- | --- | --- | --- |
| `name` _string_ | | | MinLength: 1 <br /> |
| `format` _[LogFormat](#logformat)_ | | plain_text | Enum: [plain_text json yson] <br /> |
| `minLogLevel` _[LogLevel](#loglevel)_ | | info | Enum: [trace debug info error] <br /> |
| `minLogLevel` _[LogLevel](#loglevel)_ | | info | Enum: [trace debug info warning error] <br /> |
| `compression` _[LogCompression](#logcompression)_ | | none | Enum: [none gzip zstd] <br /> |
| `useTimestampSuffix` _boolean_ | | false | |
| `rotationPolicy` _[LogRotationPolicy](#logrotationpolicy)_ | | | |
Expand Down
3 changes: 3 additions & 0 deletions ytop-chart/templates/remoteexecnodes-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -921,6 +922,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -1107,6 +1109,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down
2 changes: 2 additions & 0 deletions ytop-chart/templates/remoteytsaurus-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down Expand Up @@ -862,6 +863,7 @@ spec:
- trace
- debug
- info
- warning
- error
type: string
name:
Expand Down
Loading

0 comments on commit 29749ed

Please sign in to comment.