File tree Expand file tree Collapse file tree 2 files changed +12
-22
lines changed
health-k8s/src/main/scala/com/devsisters/shardcake Expand file tree Collapse file tree 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 "
44val allScala = Seq (scala212, scala213, scala3)
55
6- val zioVersion = " 2.1.9 "
6+ val zioVersion = " 2.1.14 "
77val zioGrpcVersion = " 0.6.2"
88val grpcNettyVersion = " 1.63.2"
9- val zioK8sVersion = " 2 .1.1 "
9+ val zioK8sVersion = " 3 .1.0 "
1010val zioCacheVersion = " 0.2.3"
1111val 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 "
1414val redis4catsVersion = " 1.5.2"
1515val redissonVersion = " 3.27.1"
1616val scalaKryoVersion = " 1.2.0"
Original file line number Diff line number Diff line change 11package com .devsisters .shardcake
22
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
185import com .coralogix .zio .k8s .client .v1 .pods .Pods
196import com .coralogix .zio .k8s .model .pkg .apis .meta .v1 .Status
207import com .devsisters .shardcake .interfaces .PodsHealth
@@ -97,6 +84,9 @@ object K8sPodsHealth {
9784
9885 case NotFound =>
9986 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" )
10090 }
10191
10292 private def toLogString (requestInfo : K8sRequestInfo ) = {
You can’t perform that action at this time.
0 commit comments