-
Notifications
You must be signed in to change notification settings - Fork 2.1k
add cluster-launch-installer-src template #2068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add cluster-launch-installer-src template #2068
Conversation
|
/assign @bbguimaraes |
bbguimaraes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you diff the two openshift-ansible templates, there's this section:
--- ci-operator/templates/cluster-launch-e2e.yaml
+++ ci-operator/templates/cluster-launch-src.yaml
…
@@ -57,11 +59,22 @@
secret:
secretName: ${JOB_NAME_SAFE}-cluster-profile
+ initContainers:
+ - name: cli
+ image: ${IMAGE_CLI}
+ volumeMounts:
+ - name: shared-tmp
+ mountPath: /tmp/shared
+ command:
+ - cp
+ - /usr/bin/oc
+ - /tmp/shared/oc
+
containers:
# Once admin.kubeconfig exists, executes shared testsIt is meant to copy the oc binary from the cli image to a shared directory to make it accessible to the test container, which uses the src image (i.e. the component image) and may not contain it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is missing these changes: #2062
ec26e62 to
1668277
Compare
|
@bbguimaraes fixed - must've based this off of an older version of |
bbguimaraes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few other discrepancies that show up in the diffs.
Also, can you put the blank lines back? They generate unnecessary noise when comparing the two templates (or remove them from the other file too, I don't really care either way).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-- name: IMAGE_TESTS
+- name: LOCAL_IMAGE_SRC
+ required: true
+- name: IMAGE_CLIIMAGE_CLI needs to be a parameter of the template or we won't get its value from ci-operator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- export PATH=/usr/libexec/origin:$PATH
+ export PATH=/tmp/shared:$PATHThe binary is placed in a different location in this template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- cp "$(which oc)" /tmp/shared/That's already done by the init container.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- mkdir -p /tmp/output
- cd /tmp/outputWe can't cd out of the repository's directory or ${TEST_COMMAND} will likely fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT
+ trap 'rc=$?; if test "${rc}" -ne 0; then touch /tmp/exit; fi; exit "${rc}"' EXITThis one's still outstanding from #2062.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To clarify - I should be checking /tmp/setup-success, right?
1668277 to
3e4c08a
Compare
|
@bbguimaraes Addressed comments Full diff of 15c15,17
< - name: IMAGE_TESTS
---
> - name: LOCAL_IMAGE_SRC
> required: true
> - name: IMAGE_CLI
60c62,71
<
---
> initContainers:
> - name: cli
> image: ${IMAGE_CLI}
> volumeMounts:
> - name: shared-tmp
> mountPath: /tmp/shared
> command:
> - cp
> - /usr/bin/oc
> - /tmp/shared/oc
65c76
< image: ${IMAGE_TESTS}
---
> image: ${LOCAL_IMAGE_SRC}
92c103
< export PATH=/usr/libexec/origin:$PATH
---
> export PATH=/tmp/shared:$PATH
96,98c107
<
< cp "$(which oc)" /tmp/shared/
<
---
>
180,183c189
<
< mkdir -p /tmp/output
< cd /tmp/output
<
---
>
193,211d198
< # TODO: the test binary should really be a more structured command - most of these flags should be
< # autodetected from the running cluster.
< # TODO: bump nodes up to 40 again
< function run-tests() {
< if [[ -n "${TEST_FOCUS:-}" ]]; then
< ginkgo -v -noColor -nodes="${TEST_PARALLELISM:-30}" $( which extended.test ) -- \
< -ginkgo.focus="${TEST_FOCUS}" -ginkgo.skip="${TEST_SKIP:-"\\[local\\]"}" \
< -e2e-output-dir /tmp/artifacts -report-dir /tmp/artifacts/junit \
< -test.timeout=2h ${PROVIDER_ARGS-} || rc=$?
< fi
< if [[ -n "${TEST_FOCUS_SERIAL:-}" ]]; then
< ginkgo -v -noColor -nodes=1 $( which extended.test ) -- \
< -ginkgo.focus="${TEST_FOCUS_SERIAL}" -ginkgo.skip="${TEST_SKIP_SERIAL:-"\\[local\\]"}" \
< -e2e-output-dir /tmp/artifacts -report-dir /tmp/artifacts/junit/serial \
< -test.timeout=2h ${PROVIDER_ARGS-} || rc=$?
< fi
< exit ${rc:-0}
< }
< |
3e4c08a to
2cc9f71
Compare
|
With the small difference between |
|
@wking I don't use For this PR I'm just copying the pattern for pre-4.0 templates. |
|
@wking: as @ecordell said, the fundamental difference between the two templates is which image to use for the @ecordell: comparing that diff and the diff between the openshift-ansible templates, the only thing missing is:
Add that and we should be done with this. |
2cc9f71 to
49ce38a
Compare
|
@bbguimaraes Added the |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bbguimaraes, ecordell The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Differences from
cluster-launch-installer-e2e:LOCAL_IMAGE_SRCinstead ofIMAGE_TESTS