-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pin Kind node image used in EphemeralCluster
By default, `kind` would install a node image for Kubernetes 1.24, which is a couple minor versions past what we deploy to cloud environments and which runs afoul of some Terraform bugs[1]. Pin the Kind node image we use to a Kubernetes 1.22 image, to match the Kind we use in other CI contexts. We also make sure to install the `kind` CLI ourselves in the CI workflow, to guarantee that the node image we pin comes from the same release. [1]: hashicorp/terraform-provider-kubernetes#1724
- Loading branch information
1 parent
b941855
commit 9d43671
Showing
3 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,11 @@ jobs: | |
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Install latest version of Kind | ||
# We should always make sure that the `kind` CLI we install is from the | ||
# same release as the node image version used by | ||
# `janus_core::test_util::kubernetes::EphemeralCluster` | ||
run: go install sigs.k8s.io/[email protected] | ||
- name: lint | ||
run: cargo fmt --message-format human -- --check | ||
- name: clippy | ||
|
@@ -35,7 +40,8 @@ jobs: | |
- name: test | ||
env: | ||
RUST_LOG: trace | ||
run: cargo test --verbose | ||
# set PATH to ensure we use go binaries installed above | ||
run: PATH=$(go env GOPATH)/bin:$PATH cargo test --verbose | ||
- name: document | ||
env: | ||
CARGO_TARGET_DIR: "target/doc-deny" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters