Add TEST_MODE to helm deployment for debug output
This commit is contained in:
		
							parent
							
								
									ca805d8231
								
							
						
					
					
						commit
						f421740543
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		
							
								
								
									
										7
									
								
								helm.mk
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								helm.mk
									
										
									
									
									
								
							| 
						 | 
					@ -8,6 +8,11 @@ start-helm:
 | 
				
			||||||
	@- echo "\n### setting kubernetes context to $(K8S_CONTEXT)"
 | 
						@- echo "\n### setting kubernetes context to $(K8S_CONTEXT)"
 | 
				
			||||||
	@ kubectl config use-context $(K8S_CONTEXT)
 | 
						@ kubectl config use-context $(K8S_CONTEXT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ifdef TEST_MODE
 | 
				
			||||||
 | 
						@- echo "Testing chart with 'helm template --debug'"
 | 
				
			||||||
 | 
					    @ envsubst < ${HELM_VALUES_FILE} | helm template ${HELM_CHART_NAME} ${HELM_CHART_PATH} --debug --values -
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@- echo "\n### deploying helm chart"
 | 
						@- echo "\n### deploying helm chart"
 | 
				
			||||||
	@- echo "-- DEPLOYMENT --------------------"
 | 
						@- echo "-- DEPLOYMENT --------------------"
 | 
				
			||||||
	@- echo " "
 | 
						@- echo " "
 | 
				
			||||||
| 
						 | 
					@ -20,5 +25,7 @@ start-helm:
 | 
				
			||||||
	@ envsubst < $(HELM_VALUES_FILE) | helm upgrade $(HELM_CHART_NAME) $(HELM_CHART_PATH) -n $(NAMESPACE)  --install --wait --values -
 | 
						@ envsubst < $(HELM_VALUES_FILE) | helm upgrade $(HELM_CHART_NAME) $(HELM_CHART_PATH) -n $(NAMESPACE)  --install --wait --values -
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pull-helm:
 | 
					pull-helm:
 | 
				
			||||||
# nop
 | 
					# nop
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue