-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "refine corporate-ca-certs and init container phases"
- Loading branch information
Showing
8 changed files
with
212 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
# config-update usage context required a specific git ref | ||
REF=$1 | ||
|
||
# Clone or fetch config repository | ||
if [ -d ~/config/.git ]; then | ||
pushd ~/config | ||
git remote | grep origin && git remote remove origin | ||
git remote add origin ${CONFIG_REPO_BASE_URL}/${CONFIG_REPO_NAME} | ||
if [ -z "$REF" ]; then | ||
# Discover default remote branch ref | ||
REF="origin/$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')" | ||
fi | ||
if [ "$INIT_CONTAINER" == "1" ]; then | ||
git fetch origin || true | ||
git reset --hard $REF || true | ||
else | ||
git fetch origin | ||
git reset --hard $REF | ||
fi | ||
popd | ||
else | ||
pushd ~/ | ||
if [ "$INIT_CONTAINER" == "1" ]; then | ||
git clone ${CONFIG_REPO_BASE_URL}/${CONFIG_REPO_NAME} config || true | ||
else | ||
git clone ${CONFIG_REPO_BASE_URL}/${CONFIG_REPO_NAME} config | ||
fi | ||
popd | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
# Update the CA Trust chain | ||
mkdir -p /etc/pki/ca-trust/extracted/{pem,java,edk2,openssl} | ||
update-ca-trust | ||
|
||
# This create some directory expected by nodepool-builder | ||
mkdir -p ~/dib ~/nodepool/builds | ||
|
||
# Generate the Nodepool configuration | ||
/usr/local/bin/generate-config.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
# Update the CA Trust chain | ||
mkdir -p /etc/pki/ca-trust/extracted/{pem,java,edk2,openssl} | ||
update-ca-trust | ||
|
||
# Generate the Zuul tenant configuration | ||
/usr/local/bin/generate-zuul-tenant-yaml.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.