mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #41561 from jamiehannaford/fix-multiple-swift-urls
Automatic merge from submit-queue Ensure only 1 Swift URL is used in cluster operations **What this PR does / why we need it**: Extracts only 1 Swift URL if multiple are returned from Keystone. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: https://github.com/kubernetes/kubernetes/issues/34930 **Special notes for your reviewer**: **Release note**: ```release-note Heat cluster operations now support environments that have multiple Swift URLs ```
This commit is contained in:
commit
750d5c3bc5
@ -194,7 +194,7 @@ function run-heat-script() {
|
|||||||
else
|
else
|
||||||
rgx="publicURL: (.+)$"
|
rgx="publicURL: (.+)$"
|
||||||
fi
|
fi
|
||||||
SWIFT_SERVER_URL=$(openstack catalog show object-store --format value | egrep -o "$rgx" | cut -d" " -f2)
|
SWIFT_SERVER_URL=$(openstack catalog show object-store --format value | egrep -o "$rgx" | cut -d" " -f2 | head -n 1)
|
||||||
fi
|
fi
|
||||||
local swift_repo_url="${SWIFT_SERVER_URL}/kubernetes"
|
local swift_repo_url="${SWIFT_SERVER_URL}/kubernetes"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user