Skip to content

Commit

Permalink
remove custom GKE test
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell committed Sep 26, 2023
1 parent 9ddbfb2 commit 4ae724b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 97 deletions.
15 changes: 0 additions & 15 deletions .github/actions/kots-e2e/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ inputs:
description: 'AWS region for uploading support bundle'
default: 'us-east-1'
required: false
gke-service-key:
description: 'Service key to authenticate a Google Cloud service account'
required: false
replicated-api-token:
description: 'Replicated API token for C11y matrix'
required: false
Expand All @@ -76,12 +73,6 @@ outputs:
runs:
using: "composite"
steps:
# - name: Create a GKE cluster
# if: inputs.k8s-distribution == 'gke'
# uses: ./.github/actions/kots-gke-create
# with:
# service-key: ${{ inputs.gke-service-key }}

- name: Create a local k3s cluster
if: inputs.k8s-distribution == 'k3s-local'
uses: replicatedhq/action-k3s@main
Expand Down Expand Up @@ -159,9 +150,3 @@ runs:
with:
api-token: ${{ inputs.replicated-api-token }}
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }}

# - name: Delete GKE cluster if created
# if: ${{ always() && inputs.platform == 'gke' }}
# uses: ./.github/actions/kots-gke-delete
# with:
# service-key: ${{ inputs.gke-service-key }}
82 changes: 0 additions & 82 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1151,87 +1151,6 @@ jobs:
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }}


# validate-gke-install:
# runs-on: ubuntu-20.04
# needs: [ enable-tests, can-run-ci, build-kots, build-kurl-proxy, build-migrations, push-minio, push-mc, push-rqlite ]
# env:
# APP_SLUG: helm-install-order
# steps:
# - name: Checkout
# uses: actions/checkout@v3

# - name: Create cluster
# uses: ./.github/actions/kots-gke-create
# with:
# service-key: ${{ secrets.GOOGLE_CLOUD_CREDENTIALS }}

# - name: download kots binary
# uses: actions/download-artifact@v3
# with:
# name: kots
# path: bin/

# - run: chmod +x bin/kots

# - name: reserve capacity
# run: |
# # https://cloud.google.com/kubernetes-engine/docs/how-to/capacity-provisioning
# kubectl apply -f ./.github/actions/kots-gke-create/reserve-capacity.yaml
# sleep 10
# kubectl wait pod -l app=capacity-res-job --for=condition=Ready --timeout=600s --all

# - name: run the test
# run: |
# set +e
# echo ${{ secrets.HELM_INSTALL_ORDER_LICENSE }} | base64 -d > license.yaml
# ./bin/kots \
# install "$APP_SLUG/automated" \
# --license-file license.yaml \
# --no-port-forward \
# --namespace "$APP_SLUG" \
# --shared-password password \
# --kotsadm-registry ttl.sh \
# --kotsadm-namespace automated-${{ github.run_id }} \
# --wait-duration 5m \
# --kotsadm-tag 24h

# EXIT_CODE=$?
# if [ $EXIT_CODE -ne 0 ]; then
# echo "------pods:"
# kubectl -n "$APP_SLUG" get pods
# echo "------kotsadm logs"
# kubectl logs -l app=kotsadm --tail=100 --namespace "$APP_SLUG"
# exit $EXIT_CODE
# fi

# COUNTER=1
# while [ "$(./bin/kots get apps --namespace "$APP_SLUG" | awk 'NR>1{print $2}')" != "ready" ]; do
# ((COUNTER += 1))
# if [ $COUNTER -gt 600 ]; then
# echo "Timed out waiting for app to be ready"
# ./bin/kots get apps --namespace "$APP_SLUG"
# echo "kotsadm logs:"
# kubectl logs -l app=kotsadm --tail=100 --namespace "$APP_SLUG"
# exit 1
# fi
# sleep 1
# done

# - name: Generate support bundle on failure
# if: failure()
# uses: ./.github/actions/generate-support-bundle
# with:
# kots-namespace: "$APP_SLUG"
# aws-access-key-id: '${{ secrets.E2E_SUPPORT_BUNDLE_AWS_ACCESS_KEY_ID }}'
# aws-secret-access-key: '${{ secrets.E2E_SUPPORT_BUNDLE_AWS_SECRET_ACCESS_KEY }}'

# - name: Delete the GKE cluster
# if: always()
# uses: ./.github/actions/kots-gke-delete
# with:
# service-key: ${{ secrets.GOOGLE_CLOUD_CREDENTIALS }}


validate-kots-pull:
runs-on: ubuntu-20.04
needs: [ enable-tests, can-run-ci, cmx-versions, build-push-kotsadm-image, build-kurl-proxy, build-migrations, push-minio, push-mc, push-rqlite ]
Expand Down Expand Up @@ -3467,7 +3386,6 @@ jobs:
- validate-kots-upgrade
- validate-remove-app
- validate-registry-check
# - validate-gke-install
- validate-kots-helm-release-secret-migration
- validate-native-helm-v2
- validate-deployment-orchestration
Expand Down

0 comments on commit 4ae724b

Please sign in to comment.