Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into chore/update-kn-e…
…vent-jobs
- Loading branch information
Showing
6 changed files
with
115 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
ci-operator/step-registry/openshift/microshift/infra/conformance-setup/OWNERS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
approvers: | ||
- microshift-approvers | ||
options: {} | ||
reviewers: | ||
- microshift-reviewers |
23 changes: 23 additions & 0 deletions
23
...croshift/infra/conformance-setup/openshift-microshift-infra-conformance-setup-commands.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
set -xeuo pipefail | ||
|
||
|
||
IP_ADDRESS="$(cat "${SHARED_DIR}"/public_address)" | ||
HOST_USER="$(cat "${SHARED_DIR}"/ssh_user)" | ||
INSTANCE_PREFIX="${HOST_USER}@${IP_ADDRESS}" | ||
|
||
echo "Using Host $IP_ADDRESS" | ||
|
||
mkdir -p "${HOME}/.ssh" | ||
cat <<EOF >"${HOME}/.ssh/config" | ||
Host ${IP_ADDRESS} | ||
User ${HOST_USER} | ||
IdentityFile ${CLUSTER_PROFILE_DIR}/ssh-privatekey | ||
StrictHostKeyChecking accept-new | ||
ServerAliveInterval 30 | ||
ServerAliveCountMax 1200 | ||
EOF | ||
chmod 0600 "${HOME}/.ssh/config" | ||
|
||
ssh "${INSTANCE_PREFIX}" "cat ~/microshift/origin/skip.txt || true" > "${SHARED_DIR}/conformance-skip.txt" | ||
cp "${SHARED_DIR}/conformance-skip.txt" "${ARTIFACT_DIR}/conformance-skip.txt" |
11 changes: 11 additions & 0 deletions
11
...ft/infra/conformance-setup/openshift-microshift-infra-conformance-setup-ref.metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"path": "openshift/microshift/infra/conformance-setup/openshift-microshift-infra-conformance-setup-ref.yaml", | ||
"owners": { | ||
"approvers": [ | ||
"microshift-approvers" | ||
], | ||
"reviewers": [ | ||
"microshift-reviewers" | ||
] | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
.../microshift/infra/conformance-setup/openshift-microshift-infra-conformance-setup-ref.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ref: | ||
as: openshift-microshift-infra-conformance-setup | ||
from: test-runtime | ||
grace_period: 10m | ||
commands: openshift-microshift-infra-conformance-setup-commands.sh | ||
resources: | ||
requests: | ||
cpu: 50m | ||
memory: 100Mi | ||
env: | ||
- name: HOME | ||
default: /tmp/secret | ||
credentials: | ||
- namespace: test-credentials | ||
name: microshift-rhsm-creds | ||
mount_path: /var/run/rhsm/ | ||
documentation: >- | ||
This step copies conformance tests relevant files from MicroShift VM into $SHARED_DIR for later use. |