@@ -143,6 +143,7 @@ public void DeleteNamespace(bool wait)
143
143
log . Debug ( ) ;
144
144
if ( IsNamespaceOnline ( K8sNamespace ) )
145
145
{
146
+ log . Log ( $ "Deleting namespace '{ K8sNamespace } '") ;
146
147
client . Run ( c => c . DeleteNamespace ( K8sNamespace , null , null , gracePeriodSeconds : 0 ) ) ;
147
148
148
149
if ( wait ) WaitUntilNamespaceDeleted ( K8sNamespace ) ;
@@ -191,6 +192,7 @@ private void EnsureNamespace()
191
192
{
192
193
if ( IsNamespaceOnline ( K8sNamespace ) ) return ;
193
194
195
+ log . Log ( $ "Creating namespace '{ K8sNamespace } '") ;
194
196
var namespaceSpec = new V1Namespace
195
197
{
196
198
ApiVersion = "v1" ,
@@ -392,7 +394,7 @@ private RunningDeployment CreateDeployment(ContainerRecipe[] containerRecipes, I
392
394
client . Run ( c => c . CreateNamespacedDeployment ( deploymentSpec , K8sNamespace ) ) ;
393
395
394
396
var name = deploymentSpec . Metadata . Name ;
395
- log . Log ( $ "Created deployment with name '{ name } ' and podLabel '{ podLabel } '") ;
397
+ log . Log ( $ "Created deployment with name '{ name } ' and podLabel '{ podLabel } ' in namespace ' { K8sNamespace } ' ") ;
396
398
return new RunningDeployment ( name , podLabel ) ;
397
399
}
398
400
@@ -733,7 +735,7 @@ private V1Pod GetPodForDeployment(RunningDeployment deployment)
733
735
734
736
private V1Pod GetPodForDeplomentInternal ( RunningDeployment deployment )
735
737
{
736
- log . Log ( $ "Looking for deployment with PodLabel: '{ deployment . PodLabel } '") ;
738
+ log . Log ( $ "Looking for deployment with PodLabel: '{ deployment . PodLabel } ' in namespace ' { K8sNamespace } ' ") ;
737
739
738
740
var allPods = client . Run ( c => c . ListNamespacedPod ( K8sNamespace ) ) ;
739
741
var pods = allPods . Items . Where ( p => p . GetLabel ( PodLabelKey ) == deployment . PodLabel ) . ToArray ( ) ;
0 commit comments