We have so many env variables for SSH:
JENKINS_GCE_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/ssh-private
GCE_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/ssh-private
KUBE_SSH_KEY_PATH=/etc/ssh-key-secret/ssh-private
AWS_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/aws-ssh-private
AZURE_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/azure-ssh-private
We should only have 3 variables and the preset for each cloud provider will supply the files at the same path regardless of the cloud being used.
KUBE_SSH_USER=prow
KUBE_SSH_PUBLIC_KEY_PATH=/etc/ssh-key-secret/ssh-public
KUBE_SSH_PRIVATE_KEY_PATH=/etc/ssh-key-secret/ssh-private
KUBE_SSH_KEY_PATH=/etc/ssh-key-secret/ssh-private is very widely used and will be offered temporarily before being deprecated. It's being deprecated because it's ambigous and most jobs will need a public key anyway.
Also, the Azure keys don't exist in Secret Manager or defined in the k8s.io repo. 😕
test-infra/config/prow/config.yaml
Line 956 in 9043617
We have so many env variables for SSH:
JENKINS_GCE_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/ssh-privateGCE_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/ssh-privateKUBE_SSH_KEY_PATH=/etc/ssh-key-secret/ssh-privateAWS_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/aws-ssh-privateAZURE_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/azure-ssh-privateWe should only have 3 variables and the preset for each cloud provider will supply the files at the same path regardless of the cloud being used.
KUBE_SSH_KEY_PATH=/etc/ssh-key-secret/ssh-privateis very widely used and will be offered temporarily before being deprecated. It's being deprecated because it's ambigous and most jobs will need a public key anyway.Also, the Azure keys don't exist in Secret Manager or defined in the k8s.io repo. 😕