Skip to content
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

Fix authentication for test clusters #115

Merged
merged 1 commit into from
Sep 13, 2018
Merged

Fix authentication for test clusters #115

merged 1 commit into from
Sep 13, 2018

Conversation

adrcunha
Copy link
Contributor

Instead of relying on default options, use basic authentication for test cluster.

Also make acquire_cluster_admin_role() handle auth through certificates, since it's used also on deployment.

Part of knative/build#286

@knative-prow-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrcunha

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 11, 2018
@adrcunha adrcunha requested a review from jessiezcc September 11, 2018 22:42
Instead of relying on default options, use basic authentication for test cluster.

Also make `acquire_cluster_admin_role()` handle auth through certificates, since it's used also on deployment.
kubectl config set-credentials cluster-admin \
--username=admin --password=${password}
else
local cert=$(mktemp)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is mktemp set?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mktemp is a standard UNIX tool.

@jessiezcc
Copy link
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 13, 2018
@knative-prow-robot knative-prow-robot merged commit b5ab6fc into knative:master Sep 13, 2018
adrcunha added a commit to knative/serving that referenced this pull request Oct 10, 2018
Instead of relying on default options, use basic authentication for test cluster.

Also make acquire_cluster_admin_role() handle auth through certificates, since it's used also on deployment.

Backport of knative/test-infra#115
adrcunha added a commit to knative/serving that referenced this pull request Oct 10, 2018
Instead of relying on default options, use basic authentication for test cluster.

Also make acquire_cluster_admin_role() handle auth through certificates, since it's used also on deployment.

Backport of knative/test-infra#115
knative-prow-robot pushed a commit to knative/serving that referenced this pull request Oct 11, 2018
…2208)

* Fix SSH keys workaround for kubetest

Create the ~/.ssh dir if it doesn't exist, don't assume it always exist.

Backported from knative/test-infra#151

* Fix authentication for test clusters

Instead of relying on default options, use basic authentication for test cluster.

Also make acquire_cluster_admin_role() handle auth through certificates, since it's used also on deployment.

Backport of knative/test-infra#115

* Increase E2E tests timeout to 20 minutes

Currently 10 minutes may not be enough, for example as in #1701.

Backport of #1702.

* Drop Dockerfile in test images

* removed dockerfiles
* moved test images to the same location
* adjust repo
* fix command and docs
* update upload-test-images.sh
* preserve import paths
* fix appYaml path
* preserve path in upload-test-images.sh

Backport of #1792.
adrcunha added a commit to knative/build that referenced this pull request Oct 11, 2018
Instead of relying on default options, use basic authentication for test cluster.

Also make `acquire_cluster_admin_role()` handle auth through certificates, since it's used also on deployment.

Backport of knative/test-infra#115.
knative-prow-robot pushed a commit to knative/build that referenced this pull request Oct 11, 2018
* Fix SSH keys workaround for kubetest

Create the ~/.ssh dir if it doesn't exist, don't assume it always exist.

Backported from knative/test-infra#151.

* Rename //tests to //test to keep naming uniform across the repos

Backported from #253.

* Use the latest GKE for integration tests

Backported from #271.

* Fix authentication for test clusters

Instead of relying on default options, use basic authentication for test cluster.

Also make `acquire_cluster_admin_role()` handle auth through certificates, since it's used also on deployment.

Backport of knative/test-infra#115.

* Use new valid deploy key, delete old key

Because the old private key was in the public repo, GitHub would periodically disable the key, breaking integration tests, and org owners would get spammed with security alerts whenever the repo was forked.

This is a new deploy key with read-only access to the repo, and since the private key matter is only included base64'ed in `0-secret.yaml`, GitHub should not alert on it.

Backported from #298.
Cynocracy pushed a commit to Cynocracy/test-infra that referenced this pull request Jun 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants