Step: ipi-conf-openstack-enable-octavia

The ipi-conf-openstack-enable-octavia amends cloud config to enable Octavia LB support

Container image used for this step: ocp/cli-jq:latest

ocp/cli-jq:latest 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
#!/usr/bin/env bash
if test ! -f "${KUBECONFIG}"
then
  echo "No kubeconfig, can't fetch cloud config."
  exit 0
fi

cp -Lrvf ${KUBECONFIG} /tmp/kubeconfig && export KUBECONFIG=/tmp/kubeconfig
oc get configmap cloud-provider-config -n openshift-config -o jsonpath='{.data.config}' > /tmp/config
echo "[LoadBalancer]" >> /tmp/config
echo "use-octavia=true" >> /tmp/config

oc delete configmap cloud-provider-config -n openshift-config
oc create configmap cloud-provider-config -n openshift-config --from-file=config=/tmp/config

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/ipi/conf/openstack/enable-octavia/ipi-conf-openstack-enable-octavia-ref.yaml

Owners:

Approvers:

Reviewers:

Source code for this page located on GitHub