diff --git a/roles/openshift-apps/testdays/templates/deploymentconfig.yml.j2 b/roles/openshift-apps/testdays/templates/deploymentconfig.yml.j2 deleted file mode 100644 index 02b93c7eb5..0000000000 --- a/roles/openshift-apps/testdays/templates/deploymentconfig.yml.j2 +++ /dev/null @@ -1,124 +0,0 @@ ---- -apiVersion: apps.openshift.io/v1 -kind: DeploymentConfig -metadata: - labels: - app: testdays-old - service: testdays-old - name: testdays -spec: - replicas: 0 - selector: - app: testdays-old - deploymentconfig: testdays - strategy: - type: Recreate - recreateParams: - mid: - failurePolicy: Abort - execNewPod: - containerName: testdays - # We only need to init the database the first time, after we just need to check - # for DB upgrades - command: ["python", "/opt/app-root/src/testdays/cli.py", "init_db"] - template: - metadata: - labels: - app: testdays-old - deploymentconfig: testdays - spec: - containers: - - name: testdays - image: testdays:latest - ports: - - containerPort: 8080 - resources: {} - env: - - name: POSTGRESQL_USER - value: "{{ testdays_db_user }}" - - name: POSTGRESQL_PASSWORD - value: "{{ testdays_db_pass }}" - - name: POSTGRESQL_DATABASE - value: "{{ testdays_db_name }}" - - name: POSTGRESQL_SERVICE_HOST - value: "db01{{ env_suffix }}.rdu3.fedoraproject.org" - - name: POSTGRESQL_SERVICE_PORT - value: "5432" - - name: SECRET_KEY - value: "{{ testdays_secret_key }}" - - name: RESULTSDB_URL - value: "http://resultsdb.testdays.svc.cluster.local:8081/api/v2.0" - - name: OPENSHIFT_PROD - value: "1" - - triggers: - - type: ConfigChange - - type: ImageChange - imageChangeParams: - automatic: true - containerNames: - - testdays - from: - kind: ImageStreamTag - name: testdays:latest ---- -apiVersion: apps.openshift.io/v1 -kind: DeploymentConfig -metadata: - labels: - app: resultsdb-old - service: resultsdb-old - name: resultsdb -spec: - replicas: 0 - selector: - app: resultsdb-old - deploymentconfig: resultsdb - strategy: - type: Recreate - recreateParams: - mid: - failurePolicy: Abort - execNewPod: - containerName: resultsdb - # We only need to init the database the first time, after we just need to check - # for DB upgrades - command: ["python", "/opt/app-root/src/resultsdb/cli.py", "init_db"] - template: - metadata: - labels: - app: resultsdb-old - deploymentconfig: resultsdb - spec: - containers: - - name: resultsdb - image: resultsdb:latest - ports: - - containerPort: 8080 - resources: {} - env: - - name: POSTGRESQL_USER - value: "{{ resultsdb_testdays_db_user }}" - - name: POSTGRESQL_PASSWORD - value: "{{ resultsdb_testdays_db_pass }}" - - name: POSTGRESQL_DATABASE - value: "{{ resultsdb_testdays_db_name }}" - - name: POSTGRESQL_SERVICE_HOST - value: "db01{{ env_suffix }}.rdu3.fedoraproject.org" - - name: POSTGRESQL_SERVICE_PORT - value: "5432" - - name: SECRET_KEY - value: "{{ resultsdb_testdays_secret_key }}" - - name: OPENSHIFT_PROD - value: "1" - - triggers: - - type: ConfigChange - - type: ImageChange - imageChangeParams: - automatic: true - containerNames: - - resultsdb - from: - kind: ImageStreamTag - name: resultsdb:latest