Added some sample yaml as a refresher
All checks were successful
continuous-integration/publish-helm Helm publish succeeded

This commit is contained in:
2026-01-08 14:43:51 +11:00
parent 5e5a7c9b4f
commit 9e2829f9bf
5 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
YAML to test Secret sync in a simple sample project
- create vso-demo namespace
- deploy yaml
- create revised version of secret in vault and note it is synchronised

View File

@@ -0,0 +1,12 @@
apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultAuth
metadata:
name: vault-auth
namespace: vso-demo
spec:
vaultConnectionRef: vault
method: kubernetes
mount: kubernetes
kubernetes:
role: vso-demo
serviceAccount: demo-sync

View File

@@ -0,0 +1,7 @@
apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultConnection
metadata:
name: vault
namespace: vso-demo
spec:
address: http://vault.vault.svc:8200

View File

@@ -0,0 +1,3 @@
path "kv/data/vso-demo/myapp" {
capabilities = ["read"]
}

View File

@@ -0,0 +1,14 @@
apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultStaticSecret
metadata:
name: myapp-secret
namespace: vso-demo
spec:
vaultAuthRef: vault-auth
mount: kv
type: kv-v2
path: vso-demo/myapp
destination:
name: myapp
create: true
refreshAfter: 30s