-
Notifications
You must be signed in to change notification settings - Fork 244
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
Fixing kubeconfig path and login session for 4.x cluster #3528
Fixing kubeconfig path and login session for 4.x cluster #3528
Conversation
ping @amitkrout Thanks for your input 🙂 |
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.
++ mktemp -d
+ TMP_DIR=/tmp/tmp.7tuJJ0OiAJ
+ cp /tmp/admin.kubeconfig /tmp/tmp.7tuJJ0OiAJ/kubeconfig
+ chmod 640 /tmp/tmp.7tuJJ0OiAJ/kubeconfig
+ export KUBECONFIG=/tmp/tmp.7tuJJ0OiAJ/kubeconfig
+ KUBECONFIG=/tmp/tmp.7tuJJ0OiAJ/kubeconfig
+ odo login -u developer -p developer
Connecting to the OpenShift cluster
Login successful.
You have access to the following projects and can switch between them with 'odo project set <project-name>':
* ci-operator-hub-project
myproject
Using project "ci-operator-hub-project".
+ oc whoami
developer
+ make test-integration
ginkgo -randomizeAllSpecs -slowSpecThreshold=120 -timeout 7200s -nodes=2 tests/integration/
Running Suite: Integration Suite
================================
looks good to me.
/lgtm
Trusting @amitkrout’s judgement on this |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: girishramnani The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
||
# KUBECONFIG cleanup only if CI is set | ||
if [ ! -f $CI ]; then | ||
rm -rf $KUBECONFIG |
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.
removing the kubeconfig should happen in the file where it was created (in the test scripts)
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.
removing the kubeconfig should happen in the file where it was created (in the test scripts)
This kubeconfig will not get used in the test script reason #3501 (comment) . So rather than keeping two kubeconfig, one in configure-installer-tests-cluster.sh
other with the tests. I am just deleting it at the end.
Codecov Report
@@ Coverage Diff @@
## master #3528 +/- ##
=======================================
Coverage 46.18% 46.18%
=======================================
Files 112 112
Lines 11333 11333
=======================================
Hits 5234 5234
Misses 5593 5593
Partials 506 506 Continue to review full report at Codecov.
|
/retest Please review the full test history for this PR and help us cut down flakes. |
12 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
80c2b14
to
e633aa6
Compare
/lgtm |
/refresh |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
What type of PR is this?
/kind bug
/kind cleanup
/kind feature
What does does this PR do / why we need it:
Configuring kubeconfig path and login session for test script running against 4.x cluster
Which issue(s) this PR fixes:
Fixes #3501
How to test changes / Special notes to the reviewer:
Test script should use the developer login session and pr openshift/release#9431 should not fail.