Skip to content

Commit

Permalink
restart pods after dataset is created (#776)
Browse files Browse the repository at this point in the history
Signed-off-by: Kamesh Akella <[email protected]>
  • Loading branch information
kami619 committed Apr 18, 2024
1 parent 5e42971 commit 82f0f7e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/actions/keycloak-restart-pods/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Restart Keycloak Pods
description: Restart Keycloak Pods and wait

inputs:
project:
description: OpenShift project where Keycloak is running
required: true

runs:
using: "composite"
steps:
- id: restart-keycloak-pods
shell: bash
run: |
kubectl delete pods -n "${{ inputs.project }}" -l app=keycloak
kubectl wait --for=condition=Ready --timeout=1200s keycloaks.k8s.keycloak.org/keycloak -n "${{ inputs.project }}"
5 changes: 5 additions & 0 deletions .github/workflows/rosa-scaling-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ jobs:
ROSA_CLUSTER_NAME: ${{ inputs.clusterName || format('gh-{0}', github.repository_owner) }}
NAMESPACE: ${{ env.PROJECT }}

- name: Restart Keycloak Pods after dataset creation
uses: ./.github/actions/keycloak-restart-pods
with:
project: ${{ env.PROJECT }}

- name: Create AWS EC2 instances
id: create_aws_ec2_instances
uses: ./.github/actions/ec2-create-instances
Expand Down

0 comments on commit 82f0f7e

Please sign in to comment.