Merge pull request #14961 from justinsb/kubetest_honor_kops_arch

kubetest: pass through KOPS_ARCH if set
This commit is contained in:
Kubernetes Prow Robot 2023-01-07 16:29:27 -08:00 committed by GitHub
commit a2700827b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -182,6 +182,14 @@ func (d *deployer) env() []string {
fmt.Sprintf("KOPS_FEATURE_FLAGS=%v", d.featureFlags()),
"KOPS_RUN_TOO_NEW_VERSION=1",
}...)
// Pass-through some env vars if set (on all clouds)
for _, k := range []string{"KOPS_ARCH"} {
if v := os.Getenv(k); v != "" {
vars = append(vars, k+"="+v)
}
}
if d.CloudProvider == "aws" {
// Pass through some env vars if set
for _, k := range []string{"AWS_PROFILE", "AWS_SHARED_CREDENTIALS_FILE"} {