File tree 2 files changed +12
-22
lines changed
health-k8s/src/main/scala/com/devsisters/shardcake
2 files changed +12
-22
lines changed Original file line number Diff line number Diff line change 1
- val scala212 = " 2.12.18 "
2
- val scala213 = " 2.13.13 "
3
- val scala3 = " 3.3.3 "
1
+ val scala212 = " 2.12.20 "
2
+ val scala213 = " 2.13.15 "
3
+ val scala3 = " 3.3.4 "
4
4
val allScala = Seq (scala212, scala213, scala3)
5
5
6
- val zioVersion = " 2.1.9 "
6
+ val zioVersion = " 2.1.14 "
7
7
val zioGrpcVersion = " 0.6.2"
8
8
val grpcNettyVersion = " 1.63.2"
9
- val zioK8sVersion = " 2 .1.1 "
9
+ val zioK8sVersion = " 3 .1.0 "
10
10
val zioCacheVersion = " 0.2.3"
11
11
val zioCatsInteropVersion = " 23.1.0.0"
12
- val sttpVersion = " 3.9.6 "
13
- val calibanVersion = " 2.9.0 "
12
+ val sttpVersion = " 3.10.1 "
13
+ val calibanVersion = " 2.9.1 "
14
14
val redis4catsVersion = " 1.5.2"
15
15
val redissonVersion = " 3.27.1"
16
16
val scalaKryoVersion = " 1.2.0"
Original file line number Diff line number Diff line change 1
1
package com .devsisters .shardcake
2
2
3
- import com .coralogix .zio .k8s .client .{
4
- CodingFailure ,
5
- DecodedFailure ,
6
- DeserializationFailure ,
7
- Gone ,
8
- HttpFailure ,
9
- InvalidEvent ,
10
- K8sFailure ,
11
- K8sRequestInfo ,
12
- NotFound ,
13
- RequestFailure ,
14
- Unauthorized ,
15
- UndefinedField
16
- }
17
- import com .coralogix .zio .k8s .client .model .{ FieldSelector , LabelSelector }
3
+ import com .coralogix .zio .k8s .client ._
4
+ import com .coralogix .zio .k8s .client .model .FieldSelector
18
5
import com .coralogix .zio .k8s .client .v1 .pods .Pods
19
6
import com .coralogix .zio .k8s .model .pkg .apis .meta .v1 .Status
20
7
import com .devsisters .shardcake .interfaces .PodsHealth
@@ -97,6 +84,9 @@ object K8sPodsHealth {
97
84
98
85
case NotFound =>
99
86
new K8sException (" not found" )
87
+
88
+ case ErrorEvent (status, message, reason, code) =>
89
+ new K8sException (s " error event with status $status, reason $reason, code $code: $message" )
100
90
}
101
91
102
92
private def toLogString (requestInfo : K8sRequestInfo ) = {
You can’t perform that action at this time.
0 commit comments