mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #40105 from sc68cal/bugs/40102
Automatic merge from submit-queue (batch tested with PRs 40105, 40095) [OpenStack-Heat] Fix regex used to get object-store URL **Release note**: ```release-note Fixes a bug in the OpenStack-Heat kubernetes provider, in the handling of differences between the Identity v2 and Identity v3 APIs ```
This commit is contained in:
		@@ -186,7 +186,13 @@ function run-heat-script() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  # Automatically detect swift url if it wasn't specified
 | 
					  # Automatically detect swift url if it wasn't specified
 | 
				
			||||||
  if [[ -z $SWIFT_SERVER_URL ]]; then
 | 
					  if [[ -z $SWIFT_SERVER_URL ]]; then
 | 
				
			||||||
    SWIFT_SERVER_URL=$(openstack catalog show object-store --format value | egrep -o "publicURL: (.+)$" | cut -d" " -f2)
 | 
					    local rgx=""
 | 
				
			||||||
 | 
					    if [ "$OS_IDENTITY_API_VERSION" = "3" ]; then
 | 
				
			||||||
 | 
					      rgx="public: (.+)$"
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					      rgx="publicURL: (.+)$"
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					    SWIFT_SERVER_URL=$(openstack catalog show object-store --format value | egrep -o "$rgx" | cut -d" " -f2)
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
  local swift_repo_url="${SWIFT_SERVER_URL}/kubernetes"
 | 
					  local swift_repo_url="${SWIFT_SERVER_URL}/kubernetes"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user