kojibuilder: drop trying to add identity in prod as it is already included with api

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-07-28 15:53:57 -07:00
parent fa6096d33d
commit f834a8443c

View file

@ -19,7 +19,9 @@ do
/usr/sbin/ipset add osbuildapi $j
done
# in both stg and prod apparently we use idenity.adpi.openshift.com for auth
{% if env == 'staging' %}
# in stg we need to add identity.api because we are using api.stage above.
# in prod this is already the same as api.openshift.com, so skip it.
RESOLVEQUERY=`resolvectl --cache=no --legend=no query identity.api.openshift.com 2> /dev/null`
test $? -eq 0 || exit $?
@ -29,3 +31,4 @@ for j in $NEWIDENTITYIPS
do
/usr/sbin/ipset add osbuildapi $j
done
{% endif %}