mirror of
				https://github.com/open-webui/helm-charts
				synced 2025-06-26 18:16:14 +00:00 
			
		
		
		
	ci: ensure needed namespace exists
This commit is contained in:
		
							parent
							
								
									0e6bc2b733
								
							
						
					
					
						commit
						30e8e3d2af
					
				
							
								
								
									
										18
									
								
								.github/workflows/helm-test-open-webui.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								.github/workflows/helm-test-open-webui.yml
									
									
									
									
										vendored
									
									
								
							| @ -28,6 +28,8 @@ jobs: | ||||
|     name: Test Chart Deployment | ||||
|     runs-on: ubuntu-latest | ||||
|     needs: lint-chart | ||||
|     env: | ||||
|       NAMESPACE: test-namespace | ||||
| 
 | ||||
|     steps: | ||||
|       - name: Checkout Code | ||||
| @ -45,10 +47,22 @@ jobs: | ||||
|       - name: Template open-webui Helm Chart | ||||
|         run: | | ||||
|           helm template open-webui ./charts/open-webui \ | ||||
|             --namespace test-namespace --create-namespace > open-webui.yaml | ||||
|             --namespace "$NAMESPACE" > open-webui.yaml | ||||
| 
 | ||||
|       - name: Ensure test namespace | ||||
|         run: | | ||||
|           # Create the namespace | ||||
|           kubectl create namespace "$NAMESPACE" | ||||
| 
 | ||||
|           # Wait for the namespace to be ready | ||||
|           for i in {1..30}; do | ||||
|             kubectl get namespace "$NAMESPACE" --no-headers && break || sleep 2 | ||||
|             echo "Waiting for namespace '$NAMESPACE' to become available..." | ||||
|           done | ||||
| 
 | ||||
|           echo "Namespace '$NAMESPACE' is now available." | ||||
| 
 | ||||
|       - name: Verify open-webui | ||||
|         run: | | ||||
|           kubectl create namespace test-namespace | ||||
|           kubectl apply --namespace test-namespace -f open-webui.yaml | ||||
|           kubectl wait --namespace test-namespace pod/open-webui-0 --for=condition=Ready --timeout=600s | ||||
|  | ||||
							
								
								
									
										17
									
								
								.github/workflows/helm-test-pipelines.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								.github/workflows/helm-test-pipelines.yml
									
									
									
									
										vendored
									
									
								
							| @ -28,6 +28,8 @@ jobs: | ||||
|     name: Test Chart Deployment | ||||
|     runs-on: ubuntu-latest | ||||
|     needs: lint-chart | ||||
|     env: | ||||
|       NAMESPACE: test-namespace | ||||
| 
 | ||||
|     steps: | ||||
|       - name: Checkout Code | ||||
| @ -45,7 +47,20 @@ jobs: | ||||
|       - name: Template open-webui Helm Chart | ||||
|         run: | | ||||
|           helm template pipelines ./charts/pipelines \ | ||||
|             --namespace test-namespace --create-namespace > pipelines.yaml | ||||
|             --namespace "$NAMESPACE" > pipelines.yaml | ||||
| 
 | ||||
|       - name: Ensure test namespace | ||||
|         run: | | ||||
|           # Create the namespace | ||||
|           kubectl create namespace "$NAMESPACE" | ||||
| 
 | ||||
|           # Wait for the namespace to be ready | ||||
|           for i in {1..30}; do | ||||
|             kubectl get namespace "$NAMESPACE" --no-headers && break || sleep 2 | ||||
|             echo "Waiting for namespace '$NAMESPACE' to become available..." | ||||
|           done | ||||
| 
 | ||||
|           echo "Namespace '$NAMESPACE' is now available." | ||||
| 
 | ||||
|       - name: Verify pipelines | ||||
|         run: | | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user