Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:


- name: Authenticate to GCloud
id: gcp-auth
if: inputs.cluster-type == 'gke'
uses: google-github-actions/auth@v3
with:
Expand All @@ -73,9 +74,20 @@ jobs:
with:
install_components: "gke-gcloud-auth-plugin"

- name: Configure GKE auth plugin
if: inputs.cluster-type == 'gke'
run: echo "USE_GKE_GCLOUD_AUTH_PLUGIN=True" >> "$GITHUB_ENV"
- name: Use stored gcloud credentials
if: steps.gcp-auth.outcome == 'success'
env:
GCP_CREDENTIALS_JSON: ${{ secrets.ROXIE_CI_AUTOMATION_GCP_SA }}
run: |
echo "USE_GKE_GCLOUD_AUTH_PLUGIN=True" >> "$GITHUB_ENV"
expected_account="$(jq -er '.client_email' <<< "$GCP_CREDENTIALS_JSON")"
if [[ "$(gcloud config get-value core/account)" != "$expected_account" ]]; then
echo "::error::gcloud's active account does not match the CI service account"
exit 1
fi
# setup-gcloud already stored these credentials. Avoid the file-override crash:
# https://github.com/google-github-actions/auth/issues/535
echo "CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE=" >> "$GITHUB_ENV"

- name: Download production infractl
uses: stackrox/actions/infra/install-infractl@v1.0.48
Expand Down
2 changes: 1 addition & 1 deletion cmd/subshell.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func runCommandOrSubshell(roxieConfig deployer.RoxieConfig, centralDeploymentInf
shellPath := resolveShellPath()
log.Infof("Spawning sub-shell: %s", shellPath)
printBanner(centralDeploymentInfo)
cmd = exec.Command(shellPath, "-i")
cmd = exec.Command(shellPath, "-l", "-i")
} else {
// args is non-empty.
cmd = exec.Command(args[0], args[1:]...)
Expand Down
Loading