mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #8002 from GoogleCloudPlatform/revert-7990-jenkinsKeys
Revert "Make jenkins e2e runs reuse one SSH key."
This commit is contained in:
		@@ -34,29 +34,6 @@ if [[ "${CIRCLECI:-}" == "true" ]]; then
 | 
			
		||||
    WORKSPACE=`pwd`
 | 
			
		||||
else
 | 
			
		||||
    # Jenkins?
 | 
			
		||||
    # Copy GCE keys so we don't keep cycling them.
 | 
			
		||||
    # To set this up, you must know the <project>, <zone>, and <instance> that
 | 
			
		||||
    # on which your jenkins jobs are running. Then do:
 | 
			
		||||
    #
 | 
			
		||||
    # # Get into the instance.
 | 
			
		||||
    # $ gcloud compute ssh --project="<prj>" ssh --zone="<zone>" <instance>
 | 
			
		||||
    #
 | 
			
		||||
    # # Generate a key by ssh'ing into itself, then exit.
 | 
			
		||||
    # $ gcloud compute ssh --project="<prj>" ssh --zone="<zone>" <instance>
 | 
			
		||||
    # $ ^D
 | 
			
		||||
    #
 | 
			
		||||
    # # Copy the keys to the desired location, e.g. /var/lib/jenkins/gce_keys/
 | 
			
		||||
    # $ sudo mkdir -p /var/lib/jenkins/gce_keys/
 | 
			
		||||
    # $ sudo cp ~/.ssh/google_compute_engine /var/lib/jenkins/gce_keys/
 | 
			
		||||
    # $ sudo cp ~/.ssh/google_compute_engine.pub /var/lib/jenkins/gce_keys/
 | 
			
		||||
    #
 | 
			
		||||
    # Move the permissions to jenkins.
 | 
			
		||||
    # $ sudo chown -R jenkins /var/lib/jenkins/gce_keys/
 | 
			
		||||
    # $ sudo chgrp -R jenkins /var/lib/jenkins/gce_keys/
 | 
			
		||||
    mkdir -p ${WORKSPACE}/.ssh/
 | 
			
		||||
    cp /var/lib/jenkins/gce_keys/google_compute_engine ${WORKSPACE}/.ssh/
 | 
			
		||||
    cp /var/lib/jenkins/gce_keys/google_compute_engine.pub ${WORKSPACE}/.ssh/
 | 
			
		||||
 | 
			
		||||
    export HOME=${WORKSPACE} # Nothing should want Jenkins $HOME
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
@@ -97,6 +74,7 @@ echo "E2E_OPT: ${E2E_OPT}"                         # hack/e2e.go options
 | 
			
		||||
echo "E2E_SET_CLUSTER_API_VERSION: ${E2E_SET_CLUSTER_API_VERSION:-<not set>}" # optional, for GKE, set CLUSTER_API_VERSION to git hash
 | 
			
		||||
echo "--------------------------------------------------------------------------------"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# AWS variables
 | 
			
		||||
export KUBE_AWS_INSTANCE_PREFIX=${E2E_CLUSTER_NAME}
 | 
			
		||||
export KUBE_AWS_ZONE=${E2E_ZONE}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user