-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore/2310 test env data #2472
Chore/2310 test env data #2472
Conversation
- create | ||
apiGroups: | ||
- '' | ||
resources: |
Check notice
Code scanning / SonarCloud
Allowing command execution is security sensitive
- name: load-test-data | ||
image: openshift/origin-cli |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if we run a command in a pod with our django image?
- name: load-test-data
image: "{{ .Values.backend.image.repository }}:{{ .Values.defaultImageTag | default .Values.backend.image.tag }}"
imagePullPolicy: {{ .Values.backend.image.pullPolicy }}
env:
- name: DJANGO_SECRET_KEY
valueFrom:
secretKeyRef:
key: django-secret-key
name: {{ include "cas-bciers.fullname" . }}-backend
- name: DB_USER
valueFrom:
secretKeyRef:
key: user
name: cas-obps-postgres-pguser-registration
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: cas-obps-postgres-pguser-registration
- name: DB_NAME
valueFrom:
secretKeyRef:
key: dbname
name: cas-obps-postgres-pguser-registration
- name: DB_PORT
valueFrom:
secretKeyRef:
key: pgbouncer-port
name: cas-obps-postgres-pguser-registration
- name: DB_HOST
valueFrom:
secretKeyRef:
key: pgbouncer-host
name: cas-obps-postgres-pguser-registration
- name: BACKEND_HOST
value: {{ .Values.backend.route.host }}
command:
- bash
- '-c'
- |
poetry run python manage.py load_test_data
1aaaf6a
to
1a0a3b8
Compare
1a0a3b8
to
675cba7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Adds test fixtures specific for the test environment & supporting k8s architecture to load them via a job