Skip to content

Commit 6529c3d

Browse files
authored
refactor: remove unused test-files (#470)
* refactor: use new wh annotations Signed-off-by: Bence Csati <[email protected]> * refactor: remove unused test files Signed-off-by: Bence Csati <[email protected]> * Update kind.yaml Signed-off-by: Bence Csati <[email protected]> --------- Signed-off-by: Bence Csati <[email protected]>
1 parent 08c9f22 commit 6529c3d

17 files changed

+5
-569
lines changed

deploy/examples/cr-transit-unseal.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ spec:
242242
# with `caNamespaces:` it will find in the "central-vault-tls" Secrets.
243243
# This will be mounted automatically by the webhook into the Pod.
244244
vaultAnnotations:
245-
vault.security.banzaicloud.io/vault-addr: https://central-vault.default:8200
246-
vault.security.banzaicloud.io/vault-role: tenant
247-
vault.security.banzaicloud.io/vault-path: tenant/kubernetes
248-
vault.security.banzaicloud.io/vault-tls-secret: "central-vault-tls"
245+
secrets-webhook.security.bank-vaults.io/vault-addr: https://central-vault.default:8200
246+
secrets-webhook.security.bank-vaults.io/vault-role: tenant
247+
secrets-webhook.security.bank-vaults.io/vault-path: tenant/kubernetes
248+
secrets-webhook.security.bank-vaults.io/vault-tls-secret: "central-vault-tls"
249249

250250
# Persistence done in the same way as for central-vault
251251
volumes:

test/acceptance_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ func prepareEnv(t *testing.T, testName string, k8sRes []string) *k8s.KubectlOpti
393393
vaultAddress := fmt.Sprintf("https://vault.%s.svc.cluster.local:8200", namespaceName)
394394
if v.(map[string]interface{})["kind"] == "Secret" || v.(map[string]interface{})["kind"] == "ConfigMap" {
395395
if a, ok := v.(map[string]interface{})["metadata"].(map[string]interface{})["annotations"].(map[string]interface{}); ok {
396-
a["vault.security.banzaicloud.io/vault-addr"] = vaultAddress
396+
a["secrets-webhook.security.bank-vaults.io/vault-addr"] = vaultAddress
397397
}
398398
}
399399

test/deploy/test-configmap-dev.yaml

-20
This file was deleted.

test/deploy/test-configmap.yaml

-15
This file was deleted.

test/deploy/test-cronjob.yaml

-24
This file was deleted.

test/deploy/test-custom-resource.yaml

-46
This file was deleted.

test/deploy/test-deploy-ct.yaml

-52
This file was deleted.

test/deploy/test-deploy-templating.yaml

-75
This file was deleted.

test/deploy/test-deploy-va.yaml

-57
This file was deleted.

test/deploy/test-deployment-env-from.yaml

-26
This file was deleted.

0 commit comments

Comments
 (0)