-
Notifications
You must be signed in to change notification settings - Fork 202
Changes to enable testing with an IPv6 controlplane #902
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
Changes from all commits
92a371f
69315d2
c44c617
78c7f8d
ddb11e8
89e9bb8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,5 @@ | ||
| eval "$(go env)" | ||
|
|
||
| export BASE_DOMAIN=${BASE_DOMAIN:-test.metalkube.org} | ||
| export CLUSTER_NAME=${CLUSTER_NAME:-ostest} | ||
| export CLUSTER_DOMAIN="${CLUSTER_NAME}.${BASE_DOMAIN}" | ||
| export SSH_PUB_KEY="${SSH_PUB_KEY:-$(cat $HOME/.ssh/id_rsa.pub)}" | ||
| export NETWORK_TYPE=${NETWORK_TYPE:-"OpenShiftSDN"} | ||
| export EXTERNAL_SUBNET=${EXTERNAL_SUBNET:-"192.168.111.0/24"} | ||
| export MIRROR_IP=${MIRROR_IP:-$PROVISIONING_HOST_IP} | ||
| export DNS_VIP=${DNS_VIP:-"192.168.111.2"} | ||
|
|
||
| function extract_command() { | ||
| local release_image | ||
| local cmd | ||
|
|
@@ -78,12 +69,25 @@ function generate_ocp_install_config() { | |
| fi | ||
|
|
||
| mkdir -p "${outdir}" | ||
|
|
||
| # IPv6 network config validation | ||
| if [[ "${EXTERNAL_SUBNET}" =~ .*:.* ]]; then | ||
| if [[ "${NETWORK_TYPE}" != "OVNKubernetes" ]]; then | ||
| echo "NETWORK_TYPE must be OVNKubernetes when using IPv6" | ||
|
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. Could we just set this to OVNKubernetes if we detect IPv6?
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. I guess we could - @russellb do you think anyone is likely to test anything other than OVNKubernetes here?
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. They shouldn't. I'm OK with just setting it instead of telling them to set it ...
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. let's do this in a follow-up |
||
| exit 1 | ||
| fi | ||
| fi | ||
| cat > "${outdir}/install-config.yaml" << EOF | ||
| apiVersion: v1 | ||
| baseDomain: ${BASE_DOMAIN} | ||
| networking: | ||
| networkType: ${NETWORK_TYPE} | ||
| machineCIDR: ${EXTERNAL_SUBNET} | ||
| clusterNetwork: | ||
| - cidr: ${CLUSTER_SUBNET} | ||
| hostPrefix: ${CLUSTER_HOST_PREFIX} | ||
| serviceNetwork: | ||
| - ${SERVICE_SUBNET} | ||
| metadata: | ||
| name: ${CLUSTER_NAME} | ||
| compute: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.