Skip to content

Commit bbb96b3

Browse files
Merge pull request #6429 from bbguimaraes/steps_merge
Minor fixes to the step registry
2 parents 5fa7431 + f981c57 commit bbb96b3

12 files changed

+19
-20
lines changed

ci-operator/step-registry/ipi/deprovision/artifacts/artifacts/ipi-deprovision-artifacts-artifacts-commands.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function queue() {
99
LIVE="$(jobs | wc -l)"
1010
done
1111
echo "${@}"
12-
if [[ -n "${FILTER}" ]]; then
12+
if [[ -n "${FILTER:-}" ]]; then
1313
"${@}" | "${FILTER}" >"${TARGET}" &
1414
else
1515
"${@}" >"${TARGET}" &

ci-operator/step-registry/ipi/deprovision/artifacts/artifacts/ipi-deprovision-artifacts-artifacts-ref.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ref:
22
as: ipi-deprovision-artifacts-artifacts
3-
from: cli
3+
from: stable:cli
44
commands: ipi-deprovision-artifacts-artifacts-commands.sh
55
resources:
66
requests:

ci-operator/step-registry/ipi/deprovision/artifacts/bootstrap/ipi-deprovision-artifacts-bootstrap-commands.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
#!/bin/bash
22

33
set -o nounset
4-
set -o errext
4+
set -o errexit
55
set -o pipefail
66

7-
export PATH=$PATH:/tmp/shared
8-
97
echo "Gathering installer artifacts ..."
108
# we don't have jq, so the python equivalent of
119
# jq '.modules[].resources."aws_instance.bootstrap".primary.attributes."public_ip" | select(.)'
1210
bootstrap_ip=$(python -c \
1311
'import sys, json; d=reduce(lambda x,y: dict(x.items() + y.items()), map(lambda x: x["resources"], json.load(sys.stdin)["modules"])); k="aws_instance.bootstrap"; print d[k]["primary"]["attributes"]["public_ip"] if k in d else ""' \
14-
< ${ARTIFACT_DIR}/installer/terraform.tfstate
12+
< "${SHARED_DIR}/terraform.tfstate"
1513
)
1614

1715
if [ -n "${bootstrap_ip}" ]

ci-operator/step-registry/ipi/deprovision/artifacts/bootstrap/ipi-deprovision-artifacts-bootstrap-ref.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ref:
22
as: ipi-deprovision-artifacts-bootstrap
3-
from: "TODO(skuznets): need an image with ssh+jq+curl"
3+
from: stable:cli # TODO(skuznets): need an image with ssh+jq+curl
44
commands: ipi-deprovision-artifacts-bootstrap-commands.sh
55
resources:
66
requests:
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22

33
set -o nounset
4-
set -o errext
4+
set -o errexit
55
set -o pipefail
66

77
echo "Running must-gather..."
88
mkdir -p ${ARTIFACT_DIR}/must-gather
9-
oc --insecure-skip-tls-verify adm must-gather --dest-dir ${ARTIFACT_DIR}/must-gather > ${ARTIFACT_DIR}/must-gather/must-gather.log
9+
oc --insecure-skip-tls-verify adm must-gather --dest-dir ${ARTIFACT_DIR}/must-gather > ${ARTIFACT_DIR}/must-gather/must-gather.log

ci-operator/step-registry/ipi/deprovision/artifacts/must-gather/ipi-deprovision-artifacts-must-gather-ref.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ref:
22
as: ipi-deprovision-artifacts-must-gather
3-
from: cli
3+
from: stable:cli
44
commands: ipi-deprovision-artifacts-must-gather-commands.sh
55
resources:
66
requests:
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
22

33
set -o nounset
4-
set -o errext
4+
set -o errexit
55
set -o pipefail
66

77
echo "Deprovisioning cluster ..."
8-
openshift-install --dir ${ARTIFACT_DIR}/installer destroy cluster
8+
cp -ar "${SHARED_DIR}" /tmp/installer
9+
openshift-install --dir /tmp/installer destroy cluster

ci-operator/step-registry/ipi/deprovision/deprovision/ipi-deprovision-deprovision-ref.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ref:
22
as: ipi-deprovision-deprovision
3-
from: installer
3+
from: stable:installer
44
commands: ipi-deprovision-deprovision-commands.sh
55
resources:
66
requests:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
set -o nounset
4-
set -o errext
4+
set -o errexit
55
set -o pipefail
66

7-
# TODO(skuznets): oh boy
7+
# TODO(skuznets): oh boy

ci-operator/step-registry/ipi/install/install/ipi-install-install-ref.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ref:
22
as: ipi-install-install
3-
from: installer
3+
from: stable:installer
44
commands: ipi-install-install-commands.sh
55
resources:
66
requests:

ci-operator/step-registry/ipi/install/rbac/ipi-install-rbac-commands.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
set -o nounset
4-
set -o errext
4+
set -o errexit
55
set -o pipefail
66

77
# We want the cluster to be able to access these images
@@ -12,7 +12,7 @@ oc adm policy add-role-to-group system:image-puller system:authenticated --nam
1212
oc adm policy add-role-to-user admin system:serviceaccount:ci:ci-chat-bot --namespace "${NAMESPACE}"
1313

1414
# Role for giving the e2e pod permissions to update imagestreams
15-
cat <<EOF | oc apply -f -
15+
oc apply -f - <<EOF
1616
kind: Role
1717
apiVersion: authorization.openshift.io/v1
1818
metadata:
@@ -28,4 +28,4 @@ rules:
2828
EOF
2929

3030
# Give the e2e pod access to the imagestream-updater role
31-
oc adm policy add-role-to-user ${JOB_NAME_SAFE}-imagestream-updater --serviceaccount default --namespace "${NAMESPACE}"
31+
oc adm policy add-role-to-user "${JOB_NAME_SAFE}-imagestream-updater" --serviceaccount default --namespace "${NAMESPACE}" --role-namespace "${NAMESPACE}"

ci-operator/step-registry/ipi/install/rbac/ipi-install-rbac-ref.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ref:
22
as: ipi-install-rbac
3-
from: cli
3+
from: stable:cli
44
commands: ipi-install-rbac-commands.sh
55
resources:
66
requests:

0 commit comments

Comments
 (0)