Commit fdc3db6
committed
TEMPORARY: ignore KUBE_SSH_USER on GCE
DO NOT MERGE. Revert this commit before merging the PR.
Every GCE job sets KUBE_SSH_USER=prow, and that takes precedence over
discovery, so the presubmits on this PR would never reach
resolveSSHUserFromCluster and the new code path would go unexercised.
Ignoring the variable for GCE makes those jobs derive the user instead --
"ubuntu" on the Ubuntu jobs, "admin" on COS -- which is what the change
does once a job opts in by dropping the variable for real.
This works with the key those jobs already have: kops installs whatever
it is given as --ssh-public-key into GCE instance metadata under that
same derived username, so the preset-k8s-ssh key is authorized for
"prow" and for "ubuntu"/"admin" alike.
Scoped to gce so the AWS, Azure and DigitalOcean presubmits are
unaffected. No test changes are needed, since the unit tests do not go
through initialize().1 parent 28e30ce commit fdc3db6
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
141 | 154 | | |
142 | 155 | | |
143 | 156 | | |
| |||
0 commit comments