29 lines
758 B
YAML
29 lines
758 B
YAML
|
|
apiVersion: secrets.hashicorp.com/v1beta1
|
||
|
|
kind: VaultStaticSecret
|
||
|
|
metadata:
|
||
|
|
name: quay-cluster-pull
|
||
|
|
namespace: stalwart
|
||
|
|
spec:
|
||
|
|
type: kv-v2
|
||
|
|
mount: secret
|
||
|
|
path: quay/robots/cluster_pull
|
||
|
|
destination:
|
||
|
|
name: quay-cluster-pull
|
||
|
|
create: true
|
||
|
|
overwrite: true
|
||
|
|
type: kubernetes.io/dockerconfigjson
|
||
|
|
transformation:
|
||
|
|
excludeRaw: true
|
||
|
|
excludes:
|
||
|
|
- .*
|
||
|
|
templates:
|
||
|
|
.dockerconfigjson:
|
||
|
|
text: >-
|
||
|
|
{"auths":{"registry.quorate.internal":{"auth":"{{ printf "%s:%s" (get .Secrets "username") (get .Secrets "token") | b64enc }}"}}}
|
||
|
|
refreshAfter: 1h
|
||
|
|
rolloutRestartTargets:
|
||
|
|
- kind: Deployment
|
||
|
|
name: stalwart
|
||
|
|
- kind: Deployment
|
||
|
|
name: stalwart-controller
|
||
|
|
vaultAuthRef: default
|