-
Notifications
You must be signed in to change notification settings - Fork 203
Additional trust bundle #1152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
openshift-merge-robot
merged 4 commits into
openshift-metal3:master
from
Avielyo10:additional-trust-bundle
Nov 20, 2020
Merged
Additional trust bundle #1152
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c942986
Adding the option to add certs to install-config.yaml
9f6d132
Add ADDITIONAL_TRUST_BUNDLE to the config_example.sh
3bbe825
Avoid additionalTrustBundle duplication & move from sed to awk
185f76c
In case MIRROR_IMAGES is set, concat ADDITIONAL_TRUST_BUNDLE
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -97,6 +97,19 @@ EOF | |
| fi | ||
| } | ||
|
|
||
| function additional_trust_bundle() { | ||
| if [ ! -z "$ADDITIONAL_TRUST_BUNDLE" ] && [ -z $MIRROR_IMAGES ]; then | ||
hardys marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| cat <<EOF | ||
| additionalTrustBundle: | | ||
| $(echo ${ADDITIONAL_TRUST_BUNDLE} | awk '{ print " ", $0 }') | ||
| EOF | ||
| elif [ ! -z "$ADDITIONAL_TRUST_BUNDLE" ] && [ ! -z "$MIRROR_IMAGES" ]; then | ||
| cat <<EOF | ||
| $(echo ${ADDITIONAL_TRUST_BUNDLE} | awk '{ print " ", $0 }') | ||
| EOF | ||
| fi | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A less complicated version of this function:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree |
||
| } | ||
|
|
||
| function cluster_network() { | ||
| if [[ "${IP_STACK}" == "v4" ]]; then | ||
| cat <<EOF | ||
|
|
@@ -191,6 +204,7 @@ $(baremetal_network_configuration) | |
| $(node_map_to_install_config_hosts $NUM_MASTERS 0 master) | ||
| $(node_map_to_install_config_hosts $NUM_WORKERS $NUM_MASTERS worker) | ||
| $(image_mirror_config) | ||
| $(additional_trust_bundle) | ||
| pullSecret: | | ||
| $(jq -c . $install_config_pull_secret) | ||
| sshKey: | | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're expecting this to start as a file, and we need it as a stream, it seems a little odd to be passing around the contents (rather than just the filename) in an environment variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zaneb I believe you are right, I'll work to fix this