Merge branch 'feature/check-oc-config-prod' into 'master'
Align the dev and prod openshift configs, and validate that they remain correct See merge request cara/cara!230
This commit is contained in:
commit
2645ff2a43
3 changed files with 29 additions and 7 deletions
|
|
@ -42,7 +42,7 @@ test_dev:
|
||||||
- python ./config-generate.py ${CARA_INSTANCE} --output-directory ./${CARA_INSTANCE}/expected
|
- python ./config-generate.py ${CARA_INSTANCE} --output-directory ./${CARA_INSTANCE}/expected
|
||||||
- python ./config-normalise.py ./${CARA_INSTANCE}/actual ./${CARA_INSTANCE}/actual-normed
|
- python ./config-normalise.py ./${CARA_INSTANCE}/actual ./${CARA_INSTANCE}/actual-normed
|
||||||
- python ./config-normalise.py ./${CARA_INSTANCE}/expected ./${CARA_INSTANCE}/expected-normed
|
- python ./config-normalise.py ./${CARA_INSTANCE}/expected ./${CARA_INSTANCE}/expected-normed
|
||||||
- diff -u ./test-cara/actual-normed/ ./${CARA_INSTANCE}/expected-normed/
|
- diff -u ./${CARA_INSTANCE}/actual-normed/ ./${CARA_INSTANCE}/expected-normed/
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
|
@ -59,6 +59,15 @@ check_openshift_config_test-cara:
|
||||||
OC_TOKEN: "${OPENSHIFT_CONFIG_CHECKER_TOKEN_TEST_CARA}"
|
OC_TOKEN: "${OPENSHIFT_CONFIG_CHECKER_TOKEN_TEST_CARA}"
|
||||||
|
|
||||||
|
|
||||||
|
check_openshift_config_prod:
|
||||||
|
extends: .test_openshift_config
|
||||||
|
variables:
|
||||||
|
CARA_INSTANCE: 'cara'
|
||||||
|
BRANCH: 'master'
|
||||||
|
OC_SERVER: openshift.cern.ch
|
||||||
|
OC_TOKEN: "${OPENSHIFT_CONFIG_CHECKER_TOKEN_PROD}"
|
||||||
|
|
||||||
|
|
||||||
# A development installation of CARA tested with pytest.
|
# A development installation of CARA tested with pytest.
|
||||||
test_dev-39:
|
test_dev-39:
|
||||||
variables:
|
variables:
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,9 @@
|
||||||
namespace: openshift
|
namespace: openshift
|
||||||
type: Source
|
type: Source
|
||||||
triggers:
|
triggers:
|
||||||
|
- type: ImageChange
|
||||||
|
imageChange: {}
|
||||||
|
- type: ConfigChange
|
||||||
- generic:
|
- generic:
|
||||||
secretReference:
|
secretReference:
|
||||||
name: gitlab-cara-webhook-secret
|
name: gitlab-cara-webhook-secret
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,7 @@
|
||||||
kind: DeploymentConfig
|
kind: DeploymentConfig
|
||||||
metadata:
|
metadata:
|
||||||
name: cara-app
|
name: cara-app
|
||||||
|
labels: {app: cara-app}
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
|
|
@ -81,16 +82,18 @@
|
||||||
app: cara-app
|
app: cara-app
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: cara-app
|
- name: cara-webservice
|
||||||
env:
|
env:
|
||||||
- name: APP_NAME
|
- name: APP_NAME
|
||||||
value: cara-voila
|
value: cara-voila
|
||||||
image: '${PROJECT_NAME}/cara-app'
|
image: '${PROJECT_NAME}/cara-webservice'
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
resources: {}
|
resources:
|
||||||
|
limits: { cpu: '1', memory: 1Gi }
|
||||||
|
requests: { cpu: 1m, memory: 512Mi }
|
||||||
terminationMessagePath: /dev/termination-log
|
terminationMessagePath: /dev/termination-log
|
||||||
terminationMessagePolicy: File
|
terminationMessagePolicy: File
|
||||||
dnsPolicy: ClusterFirst
|
dnsPolicy: ClusterFirst
|
||||||
|
|
@ -117,10 +120,10 @@
|
||||||
imageChangeParams:
|
imageChangeParams:
|
||||||
automatic: true
|
automatic: true
|
||||||
containerNames:
|
containerNames:
|
||||||
- cara-app
|
- cara-webservice
|
||||||
from:
|
from:
|
||||||
kind: ImageStreamTag
|
kind: ImageStreamTag
|
||||||
name: 'cara-app:latest'
|
name: 'cara-webservice:latest'
|
||||||
namespace: ${PROJECT_NAME}
|
namespace: ${PROJECT_NAME}
|
||||||
-
|
-
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|
@ -165,7 +168,6 @@
|
||||||
selector:
|
selector:
|
||||||
app: cara-router
|
app: cara-router
|
||||||
triggers:
|
triggers:
|
||||||
- type: ConfigChange
|
|
||||||
- type: ImageChange
|
- type: ImageChange
|
||||||
imageChangeParams:
|
imageChangeParams:
|
||||||
automatic: true
|
automatic: true
|
||||||
|
|
@ -181,6 +183,9 @@
|
||||||
kind: DeploymentConfig
|
kind: DeploymentConfig
|
||||||
metadata:
|
metadata:
|
||||||
name: cara-webservice
|
name: cara-webservice
|
||||||
|
labels:
|
||||||
|
image: cara-webservice
|
||||||
|
app: cara-webservice
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
|
|
@ -196,6 +201,8 @@
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: COOKIE_SECRET
|
key: COOKIE_SECRET
|
||||||
name: auth-service-secrets
|
name: auth-service-secrets
|
||||||
|
- name: REPORT_PARALLELISM
|
||||||
|
value: '3'
|
||||||
- name: APP_NAME
|
- name: APP_NAME
|
||||||
value: cara-webservice
|
value: cara-webservice
|
||||||
- name: CARA_CALCULATOR_PREFIX
|
- name: CARA_CALCULATOR_PREFIX
|
||||||
|
|
@ -260,6 +267,9 @@
|
||||||
kind: DeploymentConfig
|
kind: DeploymentConfig
|
||||||
metadata:
|
metadata:
|
||||||
name: cara-calculator-open
|
name: cara-calculator-open
|
||||||
|
labels:
|
||||||
|
image: cara-webservice
|
||||||
|
app: cara-calculator-open
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue