Step: ovn-conf

The ovn configure step changes the networkType from OpenshiftSDN to OVNKubernetes in the install-config.yaml It will also create a configMap with a gateway-mode config if ${GATEWAY_MODE} exists

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

In addition to the default environment, the step exposes the following:

Variable Name Type Variable Content
GATEWAY_MODE Parameter[?]

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
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail

curl -L https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64 -o /tmp/yq && chmod +x /tmp/yq

touch "${SHARED_DIR}/install-config.yaml"
/tmp/yq w -i "${SHARED_DIR}/install-config.yaml" 'networking.networkType' OVNKubernetes

echo "install-config.yaml"
echo "-------------------"
cat ${SHARED_DIR}/install-config.yaml | grep -v "password\|username"

if [[ ! -z "${GATEWAY_MODE}" ]]; then
  echo "Overriding OVN gateway mode with \"${GATEWAY_MODE}\""
  cat >> "${SHARED_DIR}/manifest_cluster-network-00-gateway-mode.yaml" << EOF
apiVersion: v1
kind: ConfigMap
metadata:
    name: gateway-mode-config
    namespace: openshift-network-operator
data:
    mode: "${GATEWAY_MODE}"
immutable: true
EOF
  echo "manifest_cluster-network-00-gateway-mode.yaml"
  echo "---------------------------------------------"
  cat ${SHARED_DIR}/manifest_cluster-network-00-gateway-mode.yaml
fi

Properties

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

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/ovn/conf/ovn-conf-ref.yaml

Owners:

Approvers:

Reviewers:

Source code for this page located on GitHub