Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,27 @@ presubmits:
secret:
secretName: sentry-dsn
trigger: (?m)^/test( | .* )services-valid,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- master
context: ci/prow/step-registry-shellcheck
decorate: true
labels:
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-release-master-step-registry-shellcheck
rerun_command: /test step-registry-shellcheck
spec:
containers:
- command:
- hack/validate-registry-commands.sh
image: registry.svc.ci.openshift.org/ci/shellcheck
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
trigger: (?m)^/test( | .* )step-registry-shellcheck,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
Expand Down
11 changes: 11 additions & 0 deletions ci-operator/step-registry/ipi/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
approvers:
- smarterclayton
- wking
- stevekuznetsov
- vrutkovs
- abhinavdahiya
- deads2k
- crawford
- ewolinetz
- csrwng
- staebler
11 changes: 11 additions & 0 deletions ci-operator/step-registry/ipi/deprovision/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
approvers:
- smarterclayton
- wking
- stevekuznetsov
- vrutkovs
- abhinavdahiya
- deads2k
- crawford
- ewolinetz
- csrwng
- staebler
11 changes: 11 additions & 0 deletions ci-operator/step-registry/ipi/deprovision/artifacts/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
approvers:
- smarterclayton
- wking
- stevekuznetsov
- vrutkovs
- abhinavdahiya
- deads2k
- crawford
- ewolinetz
- csrwng
- staebler
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
approvers:
- smarterclayton
- wking
- stevekuznetsov
- vrutkovs
- abhinavdahiya
- deads2k
- crawford
- ewolinetz
- csrwng
- staebler
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
function queue() {
local TARGET="${1}"
shift
local LIVE="$(jobs | wc -l)"
local LIVE
LIVE="$(jobs | wc -l)"
while [[ "${LIVE}" -ge 45 ]]; do
sleep 1
LIVE="$(jobs | wc -l)"
Expand Down Expand Up @@ -83,4 +84,4 @@ while IFS= read -r i; do
done < /tmp/containers

echo "Snapshotting prometheus (may take 15s) ..."
queue ${ARTIFACT_DIR}/metrics/prometheus.tar.gz oc --insecure-skip-tls-verify exec -n openshift-monitoring prometheus-k8s-0 -- tar cvzf - -C /prometheus .
queue ${ARTIFACT_DIR}/metrics/prometheus.tar.gz oc --insecure-skip-tls-verify exec -n openshift-monitoring prometheus-k8s-0 -- tar cvzf - -C /prometheus .
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
approvers:
- smarterclayton
- wking
- stevekuznetsov
- vrutkovs
- abhinavdahiya
- deads2k
- crawford
- ewolinetz
- csrwng
- staebler
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ then
echo "${USER_NAME:-default}:x:$(id -u):0:${USER_NAME:-default} user:${HOME}:/sbin/nologin" >> /etc/passwd
fi
fi
eval $(ssh-agent)
eval "$(ssh-agent)"
ssh-add /etc/openshift-installer/ssh-privatekey
ssh -A -o PreferredAuthentications=publickey -o StrictHostKeyChecking=false -o UserKnownHostsFile=/dev/null core@${bootstrap_ip} /bin/bash -x /usr/local/bin/installer-gather.sh
scp -o PreferredAuthentications=publickey -o StrictHostKeyChecking=false -o UserKnownHostsFile=/dev/null core@${bootstrap_ip}:log-bundle.tar.gz ${ARTIFACT_DIR}/installer/bootstrap-logs.tar.gz
fi
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
approvers:
- smarterclayton
- wking
- stevekuznetsov
- vrutkovs
- abhinavdahiya
- deads2k
- crawford
- ewolinetz
- csrwng
- staebler
11 changes: 11 additions & 0 deletions ci-operator/step-registry/ipi/deprovision/deprovision/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
approvers:
- smarterclayton
- wking
- stevekuznetsov
- vrutkovs
- abhinavdahiya
- deads2k
- crawford
- ewolinetz
- csrwng
- staebler
11 changes: 11 additions & 0 deletions ci-operator/step-registry/ipi/install/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
approvers:
- smarterclayton
- wking
- stevekuznetsov
- vrutkovs
- abhinavdahiya
- deads2k
- crawford
- ewolinetz
- csrwng
- staebler
11 changes: 11 additions & 0 deletions ci-operator/step-registry/ipi/install/install/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
approvers:
- smarterclayton
- wking
- stevekuznetsov
- vrutkovs
- abhinavdahiya
- deads2k
- crawford
- ewolinetz
- csrwng
- staebler
11 changes: 11 additions & 0 deletions ci-operator/step-registry/ipi/install/rbac/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
approvers:
- smarterclayton
- wking
- stevekuznetsov
- vrutkovs
- abhinavdahiya
- deads2k
- crawford
- ewolinetz
- csrwng
- staebler
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ oc adm policy add-role-to-group system:image-puller system:authenticated --nam
oc adm policy add-role-to-user admin system:serviceaccount:ci:ci-chat-bot --namespace "${NAMESPACE}"

# Role for giving the e2e pod permissions to update imagestreams
cat <<EOF
cat <<EOF | oc apply -f -
kind: Role
apiVersion: authorization.openshift.io/v1
metadata:
Expand All @@ -25,7 +25,7 @@ rules:
- apiGroups: ["image.openshift.io"]
resources: ["imagestreams", "imagestreamtags"]
verbs: ["get", "create", "update", "delete", "list"]
EOF | oc apply -f -
EOF

# Give the e2e pod access to the imagestream-updater role
oc adm policy add-role-to-user ${JOB_NAME_SAFE}-imagestream-updater --serviceaccount default --namespace "${NAMESPACE}"
oc adm policy add-role-to-user ${JOB_NAME_SAFE}-imagestream-updater --serviceaccount default --namespace "${NAMESPACE}"
5 changes: 4 additions & 1 deletion hack/validate-owners.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ ci-operator/jobs/openvswitch/ovn-kubernetes
EOF
)

no_owners=$(find ci-operator/config/ ci-operator/jobs/ -mindepth 2 -type d ! -exec test -e '{}/OWNERS' \; -print | sort)
# mindepth for "jobs" and "configs" is 2, while "step-registry" is 1, so do these in separate steps
no_owners_jobs_configs=$(find ci-operator/config/ ci-operator/jobs/ -mindepth 2 -type d ! -exec test -e '{}/OWNERS' \; -print | sort)
no_owners_reg=$(find ci-operator/step-registry -mindepth 1 -type d ! -exec test -e '{}/OWNERS' \; -print | sort)
no_owners=$(echo "${no_owners_jobs_configs}"$'\n'"${no_owners_reg}" | sort)
false_neg=$(comm -13 <(echo "$WHITELIST") <(echo "$no_owners"))
false_pos=$(comm -23 <(echo "$WHITELIST") <(echo "$no_owners"))

Expand Down
6 changes: 6 additions & 0 deletions hack/validate-registry-commands.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail

# This script checks all shell scripts in the step registry and errors if shellcheck detects error or warning level syntax issues

find ci-operator/step-registry -name "*.sh" -print0 | xargs -0 -n1 shellcheck -S warning