Added a delete for the ConfigMap before creating it
This commit is contained in:
		
							parent
							
								
									30e64e3173
								
							
						
					
					
						commit
						f9f54bd0e0
					
				@ -35,9 +35,12 @@ stages:
 | 
				
			|||||||
        - script: 'oc project $(OpenShiftProject)'
 | 
					        - script: 'oc project $(OpenShiftProject)'
 | 
				
			||||||
          failOnStderr: true
 | 
					          failOnStderr: true
 | 
				
			||||||
          displayName: 'Set OpenShift Project Context'
 | 
					          displayName: 'Set OpenShift Project Context'
 | 
				
			||||||
 | 
					        - script: 'oc delete configmap mobilemarketingapigw'
 | 
				
			||||||
 | 
					          failOnStderr: true
 | 
				
			||||||
 | 
					          displayName: 'Delete Envoy ConfigMap'
 | 
				
			||||||
        - script: 'oc create configmap mobilemarketingapigw --from-file=./deploy/aro/mobilemarketingapigw/envoy.yml'
 | 
					        - script: 'oc create configmap mobilemarketingapigw --from-file=./deploy/aro/mobilemarketingapigw/envoy.yml'
 | 
				
			||||||
          failOnStderr: true
 | 
					          failOnStderr: true
 | 
				
			||||||
          displayName: 'Add Envoy ConfigMap'
 | 
					          displayName: 'Create Envoy ConfigMap'
 | 
				
			||||||
        - script: 'oc process -f ./deploy/aro/mobilemarketingapigw/mobilemarketingapigw-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) | oc apply -f-'
 | 
					        - script: 'oc process -f ./deploy/aro/mobilemarketingapigw/mobilemarketingapigw-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) | oc apply -f-'
 | 
				
			||||||
          failOnStderr: true
 | 
					          failOnStderr: true
 | 
				
			||||||
          displayName: 'Ensure Mobile Marketing API Gateway OpenShift DeploymentConfig and Service'
 | 
					          displayName: 'Ensure Mobile Marketing API Gateway OpenShift DeploymentConfig and Service'
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user