Skip to content

Commit

Permalink
ci: migrate to k3s
Browse files Browse the repository at this point in the history
  • Loading branch information
bbortt committed Sep 13, 2024
1 parent 9fd70e9 commit 9a97719
Show file tree
Hide file tree
Showing 24 changed files with 966 additions and 514 deletions.
6 changes: 5 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ updates:
schedule:
interval: "daily"
- package-ecosystem: "gitsubmodule"
directory: "/argo-cd/"
directory: "/argo-cd"
schedule:
interval: "daily"
- package-ecosystem: "cargo"
directory: "/utilities"
schedule:
interval: "daily"
17 changes: 2 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,14 @@ jobs:
with:
command: test
args: --bin propeller
- name: Install Kubernetes Cluster
uses: nolar/setup-k3d-k3s@v1
with:
version: latest
# k3d-kube
k3d-name: kube
k3d-args: '-p 10250:10250 --no-rollback --k3s-arg --disable=traefik,servicelb,metrics-server@server:*'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Integration Tests
uses: actions-rs/cargo@v1
env:
RUST_BACKTRACE: 1
RUST_TEST_THREADS: 1
with:
command: test
args: --test *
- name: Extract argocd-server Logs
if: failure()
run: kubectl logs --selector=app.kubernetes.io/name=argocd-server --tail=-1
- name: Print Kubernetes Cluster Status
if: failure()
run: kubectl get all
args: --test * -- --nocapture
- name: Build Binary
uses: actions-rs/cargo@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .idea/propeller.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/runConfigurations/Integration_Test_propeller.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/runConfigurations/propeller__rotate.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

133 changes: 90 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ vaultrs = "0.7.2"

[dev-dependencies]
assert_cmd = "2.0.16"
base64 = "0.22.1"
k8s-openapi = { version = "0.22.0", features = ["latest"] }
kube = { version = "0.94.0", features = ["client", "runtime", "rustls-tls"] }
ntest = "0.9.3"
predicates = "3.1.2"
rustls = "0.23.12"
schemars = "0.8.21"
testcontainers-modules = { version = "0.10.0", features = ["hashicorp_vault", "postgres"] }
testcontainers-modules = { version = "0.10.0", features = ["hashicorp_vault", "k3s", "postgres"] }
tokio-postgres = "0.7.11"
utilities = {path="utilities"}
Loading

0 comments on commit 9a97719

Please sign in to comment.