Skip to content

Commit

Permalink
Set up Kind cluster by helm/kind-action
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Iwai <[email protected]>
  • Loading branch information
tenzen-y committed Jan 1, 2025
1 parent bce83b6 commit 6ec06ed
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,15 @@ jobs:
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Setup Kind Cluster
uses: helm/[email protected]
with:
node_image: kindest/node:${{ matrix.kubernetes-version }}
kubectl_version: ${{ matrix.kubernetes-version }}
cluster_name: "kind"
- name: Run tests
env:
USE_EXISTING_CLUSTER: true
RELEASE_VERSION: test
CONTROLLER_VERSION: v2
TEST_KIND_IMAGE: kindest/node:${{ matrix.kubernetes-version }}
Expand Down
10 changes: 6 additions & 4 deletions test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ var _ = ginkgo.SynchronizedBeforeSuite(func() []byte {
err := bootstrapKindCluster()
gomega.Expect(err).ToNot(gomega.HaveOccurred())
}
gomega.Expect(runCommand(kindPath, "load", "docker-image", mpiOperatorImage, openMPIImage, intelMPIImage, mpichImage)).Should(gomega.HaveOccurred())

ginkgo.By("Obtaining clients")
restConfig, err := controllerruntime.GetConfig()
gomega.Expect(err).ToNot(gomega.HaveOccurred())
Expand Down Expand Up @@ -164,10 +166,10 @@ func bootstrapKindCluster() error {
if err != nil {
return fmt.Errorf("creating kind cluster: %w", err)
}
err = runCommand(kindPath, "load", "docker-image", mpiOperatorImage, openMPIImage, intelMPIImage, mpichImage)
if err != nil {
return fmt.Errorf("loading container images: %w", err)
}
//err = runCommand(kindPath, "load", "docker-image", mpiOperatorImage, openMPIImage, intelMPIImage, mpichImage)
//if err != nil {
// return fmt.Errorf("loading container images: %w", err)
//}
return nil
}

Expand Down

0 comments on commit 6ec06ed

Please sign in to comment.