You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: containerdiag.bat
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
22
22
SETLOCALENABLEDELAYEDEXPANSION
23
23
24
-
set"VERSION=0.1.20230227"
24
+
set"VERSION=0.1.20230301"
25
25
set"SCRIPTNAME=%~nx0"
26
26
27
27
goto :start
@@ -148,20 +148,20 @@ if "!NAMESPACE!" == "" (
148
148
)
149
149
150
150
ifnot"!TARGETDEPLOYMENT!"=="" (
151
-
call :printInfo Querying available replicas for deployment !TARGETDEPLOYMENT!in namespace !NAMESPACE!
151
+
call :printInfo Querying replicas for deployment !TARGETDEPLOYMENT!in namespace !NAMESPACE!
152
152
153
-
for /F "tokens=* USEBACKQ"%%xin (`!CTL! get deployment !TARGETDEPLOYMENT!"--namespace=!NAMESPACE!""--output=jsonpath={.status.availableReplicas}"`) doset"AVAILABLEREPLICAS=%%x"
154
-
if"!AVAILABLEREPLICAS!"=="" (
153
+
for /F "tokens=* USEBACKQ"%%xin (`!CTL! get deployment !TARGETDEPLOYMENT!"--namespace=!NAMESPACE!""--output=jsonpath={.status.replicas}"`) doset"REPLICAS=%%x"
154
+
if"!REPLICAS!"=="" (
155
155
call :printInfo Error getting deployment information. Ensure you specify the right namespace with -n NAMESPACE
156
156
exit /B 1
157
157
)
158
158
159
-
if"!AVAILABLEREPLICAS!"=="0" (
160
-
call :printInfo There are 0available replicas for this deployment
159
+
if"!REPLICAS!"=="0" (
160
+
call :printInfo There are 0 replicas for this deployment
161
161
exit /B 1
162
162
)
163
163
164
-
call :printInfo There are !AVAILABLEREPLICAS! available replicas
0 commit comments