-
Notifications
You must be signed in to change notification settings - Fork 0
/
zarf.yaml
34 lines (33 loc) · 1.29 KB
/
zarf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/zarf/main/zarf.schema.json
kind: ZarfPackageConfig
metadata:
name: valkey-test
description: "A test that Valkey can be connected to and is functional"
version: 0.1.0
components:
- name: test-valkey-connectivity
required: true
manifests:
- name: valkey-cli
namespace: valkey-cli
files:
- valkey/uds-package.yaml
- valkey/valkey-cli.yaml
images:
- docker.io/bitnami/valkey:7.2.5-debian-12-r5
actions:
onDeploy:
after:
- cmd: ./zarf tools kubectl get secret -n valkey-cli valkey --template='{{ index .data "valkey-password" }}' | base64 -d
mute: true
setVariables:
- name: VALKEY_PASSWORD
sensitive: true
- cmd: |
./zarf tools kubectl exec -n valkey-cli valkey-cli -c valkey-cli -- \
sh -c "echo \"ping\\nset foo bar\\nget foo\" | valkey-cli -h valkey-master.valkey.svc.cluster.local -a ${ZARF_VAR_VALKEY_PASSWORD}"
setVariables:
- name: VALKEY_OUTPUT
- cmd: echo ${ZARF_VAR_VALKEY_OUTPUT} | grep PONG
- cmd: echo ${ZARF_VAR_VALKEY_OUTPUT} | grep OK
- cmd: echo ${ZARF_VAR_VALKEY_OUTPUT} | grep bar