Skip to content
Snippets Groups Projects
Verified Commit 5fb6d449 authored by Hugo Renard's avatar Hugo Renard
Browse files

add rc reset admin pass job

parent f11d59e1
No related branches found
No related tags found
No related merge requests found
apiVersion: batch/v1
kind: Job
metadata:
name: ${FQDN}-reset-admin-pass
namespace: ${NS}
spec:
template:
spec:
restartPolicy: Never
containers:
- name: wrench
image: libresh/wrench
args:
- rc
- user
- pass
- --mongo-url=$(MONGO_URL)
- $(ADMIN_USER)
- $(ADMIN_PASS)
env:
- name: MONGO_URL
valueFrom:
secretKeyRef:
key: MONGO_URL
name: ${FQDN}-app
- name: ADMIN_USER
valueFrom:
configMapKeyRef:
key: ADMIN_USERNAME
name: ${FQDN}-config
- name: ADMIN_PASS
valueFrom:
secretKeyRef:
key: ADMIN_PASS
name: ${FQDN}-app
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment