Skip to content

Commit

Permalink
chore: post release cleanup (#83)
Browse files Browse the repository at this point in the history
* chore: remove workaround in CI

Signed-off-by: Bence Csati <[email protected]>

* fix: deploy with garden

Signed-off-by: Bence Csati <[email protected]>

---------

Signed-off-by: Bence Csati <[email protected]>
  • Loading branch information
csatib02 authored Jun 25, 2024
1 parent 4850584 commit a846081
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 28 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,7 @@ jobs:
name: "[helm-chart] package"

- name: Test
# Workaround until we have a release
# run: nix develop --impure .#ci -c make test-e2e
run: nix develop --impure .#ci -c make test-e2e-local
run: nix develop --impure .#ci -c make test-e2e
env:
KIND_K8S_VERSION: ${{ matrix.k8s_version }}
LOAD_IMAGE_ARCHIVE: ${{ github.workspace }}/docker.tar
Expand Down
1 change: 1 addition & 0 deletions .yamlignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/deploy/
/e2e/deploy/
/e2e/test/
/.github/
1 change: 1 addition & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ extends: default

rules:
line-length: disable
document-start: disable
10 changes: 4 additions & 6 deletions e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ import (
"sigs.k8s.io/e2e-framework/third_party/helm"
)

const (
defaultTimeout = 2 * time.Minute
)
const defaultTimeout = 2 * time.Minute

var testenv env.Environment

Expand Down Expand Up @@ -113,14 +111,14 @@ func TestMain(m *testing.M) {

// Unsealing and Vault access only works in the default namespace at the moment
testenv.Setup(useNamespace("default"))

testenv.Setup(installVault, waitForVaultTLS)
testenv.Finish(uninstallVault)
} else {
// Unsealing and Vault access only works in the default namespace at the moment
testenv.Setup(useNamespace("default"))
}

testenv.Setup(installVault, waitForVaultTLS)
testenv.Finish(uninstallVault)

os.Exit(testenv.Run(m))
}

Expand Down
25 changes: 6 additions & 19 deletions garden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,24 @@ spec:
name: oci://ghcr.io/bank-vaults/helm-charts/vault-operator
version: "1.22.2"

---
kind: Deploy
type: kubernetes
name: vault
dependencies:
- deploy.vault-operator
spec:
namespace: default
files:
- ./e2e/deploy/vault/rbac.yaml
- ./e2e/deploy/vault/vault.yaml

---
kind: Build
type: container
name: secrets-webhook
name: secrets-webhook-image
exclude:
- .direnv/**/*
- .devenv/**/*
- build/**/*
- e2e/**/*
- examples/**/*

---
kind: Deploy
type: helm
name: secrets-webhook
dependencies:
- deploy.vault
variables:
repository: ${actions.build.secrets-webhook.outputs.deployment-image-name}
tag: ${actions.build.secrets-webhook.version}
- build.secrets-webhook-image
- deploy.vault-operator
spec:
namespace: secrets-webhook
chart:
Expand All @@ -46,5 +33,5 @@ spec:
- ./e2e/deploy/secrets-webhook/values.yaml
values:
image:
repository: ${var.repository}
tag: ${var.tag}
repository: ${actions.build.secrets-webhook-image.outputs.deployment-image-name}
tag: ${actions.build.secrets-webhook-image.version}
1 change: 1 addition & 0 deletions project.garden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ scan:
- .devenv/**/*
- build/**/*
- e2e/**/*
- examples/**/*

0 comments on commit a846081

Please sign in to comment.