Skip to content

Commit

Permalink
dynamic validate-endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell committed Nov 6, 2023
1 parent a295a56 commit 066b561
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3493,13 +3493,17 @@ jobs:
sleep 1
done
# get the version of the replicated-sdk that is running and set it as an output
REPLICATED_SDK_VERSION=$(kubectl get deploy replicated -n "$KOTS_NAMESPACE" -o jsonpath='{.spec.template.spec.containers[0].image}' | grep -oE '[^:]+$')
echo "replicated-sdk-version=$REPLICATED_SDK_VERSION" >> "$GITHUB_OUTPUT"
- run: rm -rf ./replicated-sdk
- name: Checkout replicated-sdk
uses: actions/checkout@v3
with:
repository: replicatedhq/replicated-sdk
path: replicated-sdk
ref: main # TODO: make this variable based on version of SDK running in the cluster
ref: ${{ steps.upgrade-to-replicated-sdk.outputs.replicated-sdk-version }}

- name: Validate endpoints
uses: ./replicated-sdk/.github/actions/validate-endpoints
Expand Down Expand Up @@ -3566,13 +3570,17 @@ jobs:
sleep 1
done
# get the version of the replicated-sdk that is running and set it as an output
REPLICATED_SDK_VERSION=$(kubectl get deploy replicated -n "$KOTS_NAMESPACE" -o jsonpath='{.spec.template.spec.containers[0].image}' | grep -oE '[^:]+$')
echo "replicated-sdk-version=$REPLICATED_SDK_VERSION" >> "$GITHUB_OUTPUT"
- run: rm -rf ./replicated-sdk
- name: Checkout replicated-sdk
uses: actions/checkout@v3
with:
repository: replicatedhq/replicated-sdk
path: replicated-sdk
ref: main # TODO: mmake this variable based on version of SDK running in the cluster
ref: ${{ steps.replicated-sdk-subchart-native-helm-v1.outputs.replicated-sdk-version }}

- name: Validate endpoints
uses: ./replicated-sdk/.github/actions/validate-endpoints
Expand Down Expand Up @@ -3639,13 +3647,17 @@ jobs:
sleep 1
done
# get the version of the replicated-sdk that is running and set it as an output
REPLICATED_SDK_VERSION=$(kubectl get deploy replicated -n "$KOTS_NAMESPACE" -o jsonpath='{.spec.template.spec.containers[0].image}' | grep -oE '[^:]+$')
echo "replicated-sdk-version=$REPLICATED_SDK_VERSION" >> "$GITHUB_OUTPUT"
- run: rm -rf ./replicated-sdk
- name: Checkout replicated-sdk
uses: actions/checkout@v3
with:
repository: replicatedhq/replicated-sdk
path: replicated-sdk
ref: main # TODO: make this variable based on version of SDK running in the cluster
ref: ${{ steps.replicated-sdk-subchart-replicated-helm.outputs.replicated-sdk-version }}

- name: Validate endpoints
uses: ./replicated-sdk/.github/actions/validate-endpoints
Expand Down

0 comments on commit 066b561

Please sign in to comment.