Step: ipi-conf-ovirt-generate-install-config-release-4.6-4.7

This step creates an install-config file which will be used to create the OpenShift 4.6/4.7 cluster. The install config doesn't contain refrences to affinity groups.

Container image used for this step: origin/centos:8

origin/centos:8 resolves to an image imported from the specified imagestream tag on the build farm (documentation).

Environment

Step exposes no environmental variables except the defaults.

Source Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash

set -o nounset
set -o errexit
set -o pipefail

# shellcheck disable=SC1090
source ${SHARED_DIR}/ovirt-lease.conf
# shellcheck disable=SC1090
source ${CLUSTER_PROFILE_DIR}/ovirt.conf

PULL_SECRET=$(<"${CLUSTER_PROFILE_DIR}"/pull-secret)
SSH_PUB_KEY=$(<"${CLUSTER_PROFILE_DIR}"/ssh-publickey)

cat >"${SHARED_DIR}/install-config.yaml" << EOF
apiVersion: v1
baseDomain: ${BASE_DOMAIN}
metadata:
  name: ${OCP_CLUSTER}
compute:
- hyperthreading: Enabled
  name: worker
  platform:
    ovirt:
      cpu:
        cores: ${WORKER_CPU}
        sockets: 1
      memoryMB: ${WORKER_MEM}
      osDisk:
        # 31 is used to trigger the instance customization (the disk size is 16 Gi)
        sizeGB: 31
      vmType: server
      instanceTypeID:
  replicas: 2
controlPlane:
  hyperthreading: Enabled
  name: master
  platform:
    ovirt:
      cpu:
        cores: ${MASTER_CPU}
        sockets: 1
      memoryMB: ${MASTER_MEM}
      osDisk:
        # 31 is used to trigger the instance customization (the disk size is 16 Gi)
        sizeGB: 31
      vmType: server
      instanceTypeID:
  replicas: 3
platform:
  ovirt:
    ovirt_cluster_id: ${OVIRT_ENGINE_CLUSTER_ID}
    ovirt_storage_domain_id: ${OVIRT_STORAGE_DOMAIN_ID}
    api_vip: ${OVIRT_APIVIP}
    ingress_vip: ${OVIRT_INGRESSVIP}
    ovirt_network_name: ${OVIRT_ENGINE_NETWORK}
pullSecret: >
  ${PULL_SECRET}
sshKey: |
  ${SSH_PUB_KEY}
EOF

Properties

Property Value Description
Resource requests (cpu) 10m Used in .resources.requests of the pod running this step.
Resource requests (memory) 10Mi Used in .resources.requests of the pod running this step.
Resource limits (memory) 200Mi Used in .resources.limits of the pod running this step.

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/ipi/conf/ovirt/generate-install-config/release-4.6-4.7/ipi-conf-ovirt-generate-install-config-release-4.6-4.7-ref.yaml

Owners:

Approvers:

Reviewers:

Source code for this page located on GitHub