Skip to content

Commit

Permalink
Modify install-config.yaml to use controlPlane and compute instead of…
Browse files Browse the repository at this point in the history
… machines.

In the cases where the replica count is not customizable, the controlPlane and compute
have been removed to use the defaults for the machine pools.

Update the apiVersion for install-config.yaml to v1beta3, which is the version that
incorporates the controlPlane and compute fields.

See openshift/installer#1157
  • Loading branch information
staebler committed Feb 15, 2019
1 parent 77604e3 commit e1d729c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,9 @@ objects:
if [[ "${CLUSTER_TYPE}" == "aws" ]]; then
cat > /tmp/artifacts/installer/install-config.yaml << EOF
apiVersion: v1beta2
apiVersion: v1beta3
baseDomain: ${BASE_DOMAIN}
clusterID: ${CLUSTER_ID}
machines:
- name: master
replicas: 3
- name: worker
replicas: 3
metadata:
name: ${CLUSTER_NAME}
networking:
Expand All @@ -280,14 +275,9 @@ objects:
EOF
elif [[ "${CLUSTER_TYPE}" == "openstack" ]]; then
cat > /tmp/artifacts/installer/install-config.yaml << EOF
apiVersion: v1beta2
apiVersion: v1beta3
baseDomain: ${BASE_DOMAIN}
clusterID: ${CLUSTER_ID}
machines:
- name: master
replicas: 3
- name: worker
replicas: 3
metadata:
name: ${CLUSTER_NAME}
networking:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,9 @@ objects:
if [[ "${CLUSTER_TYPE}" == "aws" ]]; then
cat > /tmp/artifacts/installer/install-config.yaml << EOF
apiVersion: v1beta2
apiVersion: v1beta3
baseDomain: ${BASE_DOMAIN}
clusterID: ${CLUSTER_ID}
machines:
- name: master
replicas: 3
- name: worker
replicas: 3
metadata:
name: ${CLUSTER_NAME}
networking:
Expand All @@ -250,14 +245,9 @@ objects:
EOF
elif [[ "${CLUSTER_TYPE}" == "openstack" ]]; then
cat > /tmp/artifacts/installer/install-config.yaml << EOF
apiVersion: v1beta2
apiVersion: v1beta3
baseDomain: ${BASE_DOMAIN}
clusterID: ${CLUSTER_ID}
machines:
- name: master
replicas: 3
- name: worker
replicas: 3
metadata:
name: ${CLUSTER_NAME}
networking:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,14 @@ objects:
if [[ "${CLUSTER_TYPE}" == "gcp" ]]; then
cat > /tmp/artifacts/installer/install-config.yaml << EOF
apiVersion: v1beta2
apiVersion: v1beta3
baseDomain: origin-ci-int-gce.dev.rhcloud.com
clusterID: ${CLUSTER_ID}
machines:
- name: master
replicas: ${MASTERS}
compute:
- name: worker
replicas: ${WORKERS}
controlPlane:
- replicas: ${MASTERS}
metadata:
name: ${OPENSHIFT_INSTALL_CLUSTER_NAME}
networking:
Expand All @@ -254,14 +254,14 @@ objects:
export AWS_SHARED_CREDENTIALS_FILE="/etc/openshift-installer/.awscred"
export EXPIRATION_DATE=$(date -d '4 hours' --iso=minutes --utc)
cat > /tmp/artifacts/installer/install-config.yaml << EOF
apiVersion: v1beta2
apiVersion: v1beta3
baseDomain: test.ose
clusterID: ${CLUSTER_ID}
machines:
- name: master
replicas: ${MASTERS}
- name: worker
compute:
- name: worker
replicas: ${WORKERS}
controlPlane:
- replicas: ${MASTERS}
metadata:
name: ${CLUSTER_NAME}
networking:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,9 @@ objects:
if [[ "${CLUSTER_TYPE}" == "aws" ]]; then
cat > /tmp/artifacts/installer/install-config.yaml << EOF
apiVersion: v1beta2
apiVersion: v1beta3
baseDomain: ${BASE_DOMAIN}
clusterID: ${CLUSTER_ID}
machines:
- name: master
replicas: 3
- name: worker
replicas: 3
metadata:
name: ${CLUSTER_NAME}
networking:
Expand All @@ -343,14 +338,9 @@ objects:
EOF
elif [[ "${CLUSTER_TYPE}" == "openstack" ]]; then
cat > /tmp/artifacts/installer/install-config.yaml << EOF
apiVersion: v1beta2
apiVersion: v1beta3
baseDomain: ${BASE_DOMAIN}
clusterID: ${CLUSTER_ID}
machines:
- name: master
replicas: 3
- name: worker
replicas: 3
metadata:
name: ${CLUSTER_NAME}
networking:
Expand Down

0 comments on commit e1d729c

Please sign in to comment.