forked from infra/ansible
blockerbugs: remove deploymentconfig
We want to use deployment, and jskladan claims he's already done the migration: infra/tickets#12142 (comment) let's remove deploymentconfig to avoid confusion. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
59704e4da7
commit
3357c380dd
1 changed files with 0 additions and 162 deletions
|
|
@ -1,162 +0,0 @@
|
|||
---
|
||||
apiVersion: apps.openshift.io/v1
|
||||
kind: DeploymentConfig
|
||||
metadata:
|
||||
labels:
|
||||
app: blockerbugs
|
||||
service: blockerbugs
|
||||
name: blockerbugs
|
||||
spec:
|
||||
replicas: 0
|
||||
selector:
|
||||
app: blockerbugs
|
||||
deploymentconfig: blockerbugs
|
||||
strategy:
|
||||
type: Recreate
|
||||
recreateParams:
|
||||
mid:
|
||||
failurePolicy: Abort
|
||||
execNewPod:
|
||||
containerName: blockerbugs
|
||||
# BBA would automatically proceed with upgrade_db if necessary
|
||||
# init_db isn't dropping anything, so it's safe to call every time the pod starts
|
||||
command: ["python", "/opt/app-root/src/blockerbugs/cli.py", "init_db"]
|
||||
# and then just the gunicorn for the frontend part
|
||||
volumes:
|
||||
- blockerbugs-secret-volume
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: blockerbugs
|
||||
deploymentconfig: blockerbugs
|
||||
spec:
|
||||
containers:
|
||||
- name: blockerbugs
|
||||
image: blockerbugs:latest
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
resources: {}
|
||||
env:
|
||||
{% if env == 'staging' %}
|
||||
- name: POSTGRESQL_USER
|
||||
value: "{{ stg_blockerbugs_db_user }}"
|
||||
{% else %}
|
||||
- name: POSTGRESQL_USER
|
||||
value: "{{ prod_blockerbugs_db_user }}"
|
||||
{% endif %}
|
||||
- name: POSTGRESQL_DATABASE
|
||||
value: "blockerbugs"
|
||||
- name: POSTGRESQL_SERVICE_HOST
|
||||
value: "db01{{ env_suffix }}.{{datacenter}}.fedoraproject.org"
|
||||
- name: POSTGRESQL_SERVICE_PORT
|
||||
value: "5432"
|
||||
{% if env == 'staging' %}
|
||||
- name: POSTGRESQL_PASSWORD
|
||||
value: "{{ stg_blockerbugs_db_password }}"
|
||||
- name: SECRET_KEY
|
||||
value: "{{ stg_blockerbugs_secret_key }}"
|
||||
- name: PAGURE_REPO_TOKEN
|
||||
value: "{{ stg_blockerbugs_pagure_repo_token_secret }}"
|
||||
- name: PAGURE_REPO_WEBHOOK_KEY
|
||||
value: "{{ stg_blockerbugs_pagure_repo_webhook_key_secret }}"
|
||||
- name: BUGZILLA_API_KEY
|
||||
value: "{{ stg_blockerbugs_bz_api_key }}"
|
||||
- name: PAGURE_URL
|
||||
value: "https://stg.pagure.io/"
|
||||
- name: PAGURE_API
|
||||
value: "https://stg.pagure.io/api/0/"
|
||||
- name: BUGZILLA_URL
|
||||
value: "https://bugzilla.stage.redhat.com"
|
||||
- name: FORGEJO_BOT_ACCESS_TOKEN
|
||||
value: "{{ stg_blockerbugs_forge_bot_access_token }}"
|
||||
- name: FORGEJO_REPO_WEBHOOK_SECRET
|
||||
value: "{{ stg_blockerbugs_forge_repo_webhook_secret }}"
|
||||
{% else %}
|
||||
- name: POSTGRESQL_PASSWORD
|
||||
value: "{{ prod_blockerbugs_db_password }}"
|
||||
- name: SECRET_KEY
|
||||
value: "{{ prod_blockerbugs_secret_key }}"
|
||||
- name: PAGURE_REPO_TOKEN
|
||||
value: "{{ prod_blockerbugs_pagure_repo_token_secret }}"
|
||||
- name: PAGURE_REPO_WEBHOOK_KEY
|
||||
value: "{{ prod_blockerbugs_pagure_repo_webhook_key_secret }}"
|
||||
- name: BUGZILLA_API_KEY
|
||||
value: "{{ prod_blockerbugs_bz_api_key }}"
|
||||
- name: PAGURE_URL
|
||||
value: "https://pagure.io/"
|
||||
- name: PAGURE_API
|
||||
value: "https://pagure.io/api/0/"
|
||||
- name: BUGZILLA_URL
|
||||
value: "https://bugzilla.redhat.com"
|
||||
- name: FORGEJO_BOT_ACCESS_TOKEN
|
||||
value: "{{ prod_blockerbugs_forge_bot_access_token }}"
|
||||
- name: FORGEJO_REPO_WEBHOOK_SECRET
|
||||
value: "{{ prod_blockerbugs_forge_repo_webhook_secret }}"
|
||||
{% endif %}
|
||||
- name: BLOCKERBUGS_URL
|
||||
value: "https://qa{{ env_suffix }}.fedoraproject.org/blockerbugs/"
|
||||
- name: BLOCKERBUGS_API
|
||||
value: "https://qa{{ env_suffix }}.fedoraproject.org/blockerbugs/api/v0/"
|
||||
- name: FAS_BASE_URL
|
||||
value: "https://admin{{ env_suffix }}.fedoraproject.org/accounts/"
|
||||
- name: FAS_ADMIN_GROUP
|
||||
value: "qa-admin"
|
||||
- name: PAGURE_BOT_USERNAME
|
||||
value: "blockerbot"
|
||||
- name: PAGURE_BOT_ENABLED
|
||||
value: "True"
|
||||
- name: PAGURE_REPO
|
||||
value: "fedora-qa/blocker-review"
|
||||
- name: FORGEJO_REPO
|
||||
value: "quality/blocker-review"
|
||||
- name: FORGEJO_BOT_USERNAME
|
||||
value: "blockerbot"
|
||||
- name: FORGEJO_BOT_ENABLED
|
||||
value: "True"
|
||||
- name: FORGEJO_URL
|
||||
value: "https://forge{{ env_suffix }}.fedoraproject.org/"
|
||||
- name: FORGEJO_API
|
||||
value: "https://forge{{ env_suffix }}.fedoraproject.org/api/v1/"
|
||||
- name: FORGEJO_ADMIN_ORG
|
||||
value: "quality"
|
||||
- name: FORGEJO_ADMIN_TEAM
|
||||
value: "members"
|
||||
- name: BODHI_URL
|
||||
value: "https://bodhi{{ env_suffix }}.fedoraproject.org/"
|
||||
- name: OPENSHIFT_PROD
|
||||
{% if env == 'staging' %}
|
||||
value: "0"
|
||||
{% else %}
|
||||
value: "1"
|
||||
{% endif %}
|
||||
volumeMounts:
|
||||
- name: blockerbugs-secret-volume
|
||||
mountPath: /opt/app-root/secret/
|
||||
readOnly: true
|
||||
readinessProbe:
|
||||
timeoutSeconds: 5
|
||||
initialDelaySeconds: 5
|
||||
httpGet:
|
||||
path: /blockerbugs/
|
||||
port: 8080
|
||||
livenessProbe:
|
||||
timeoutSeconds: 15
|
||||
initialDelaySeconds: 30
|
||||
httpGet:
|
||||
path: /blockerbugs/
|
||||
port: 8080
|
||||
volumes:
|
||||
- name: blockerbugs-secret-volume
|
||||
secret:
|
||||
secretName: blockerbugs-secret
|
||||
|
||||
triggers:
|
||||
- type: ConfigChange
|
||||
- type: ImageChange
|
||||
imageChangeParams:
|
||||
automatic: true
|
||||
containerNames:
|
||||
- blockerbugs
|
||||
from:
|
||||
kind: ImageStreamTag
|
||||
name: blockerbugs:latest
|
||||
Loading…
Add table
Add a link
Reference in a new issue