Skip to content

Commit

Permalink
feat: enable tear-down feature flags for dev testing (#2946)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-valiollahi authored Dec 24, 2024
1 parent 8296aa9 commit 93ff48f
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 181 deletions.
44 changes: 22 additions & 22 deletions charts/tfrs-apps/charts/tfrs-frontend/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ data:
"exclusion_reports.create_effective_date": "2019-01-01",
"api_base": "https://tfrs-backend{{ .Values.suffix }}.apps.silver.devops.gov.bc.ca/api",
"tear_down.bceid.widgets.balance": false,
"tear_down.bceid.widgets.feedback": false,
"tear_down.bceid.widgets.website": false,
"tear_down.bceid.widgets.creditTransactions": false,
"tear_down.bceid.widgets.fileSubmissions": false,
"tear_down.bceid.header.creditInformation": false,
"tear_down.bceid.navigation.transactions": false,
"tear_down.bceid.navigation.fileSubmissions": false,
"tear_down.bceid.navigation.helpLink": false,
"tear_down.bceid.organization.creditInformation": false,
"tear_down.bceid.organization.roles.fileSubmission": false,
"tear_down.bceid.organization.roles.creditTransfers": false,
"tear_down.idir.widgets.balance": false,
"tear_down.idir.widgets.creditTransactions": false,
"tear_down.idir.widgets.fileSubmissions": false,
"tear_down.idir.navigation.transactions": false,
"tear_down.idir.navigation.fileSubmissions": false,
"tear_down.idir.navigation.helpLink": false,
"tear_down.idir.organizations.tableColumns.complianceUnits": false,
"tear_down.idir.organizations.tableColumns.inReserve": false,
"tear_down.idir.organization.creditInformation": false
};
"tear_down.bceid.widgets.balance": true,
"tear_down.bceid.widgets.feedback": true,
"tear_down.bceid.widgets.website": true,
"tear_down.bceid.widgets.creditTransactions": true,
"tear_down.bceid.widgets.fileSubmissions": true,
"tear_down.bceid.header.creditInformation": true,
"tear_down.bceid.navigation.transactions": true,
"tear_down.bceid.navigation.fileSubmissions": true,
"tear_down.bceid.navigation.helpLink": true,
"tear_down.bceid.organization.creditInformation": true,
"tear_down.bceid.organization.roles.fileSubmission": true,
"tear_down.bceid.organization.roles.creditTransfers": true,
"tear_down.idir.widgets.balance": true,
"tear_down.idir.widgets.creditTransactions": true,
"tear_down.idir.widgets.fileSubmissions": true,
"tear_down.idir.navigation.transactions": true,
"tear_down.idir.navigation.fileSubmissions": true,
"tear_down.idir.navigation.helpLink": true,
"tear_down.idir.organizations.tableColumns.complianceUnits": true,
"tear_down.idir.organizations.tableColumns.inReserve": true,
"tear_down.idir.organization.creditInformation": true
};
42 changes: 21 additions & 21 deletions frontend/public/config/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ window.tfrs_config = {
'credit_calculation_api.enabled': true,
'exclusion_reports.enabled': true,

'tear_down.bceid.widgets.balance': false,
'tear_down.bceid.widgets.feedback': false,
'tear_down.bceid.widgets.website': false,
'tear_down.bceid.widgets.creditTransactions': false,
'tear_down.bceid.widgets.fileSubmissions': false,
'tear_down.bceid.header.creditInformation': false,
'tear_down.bceid.navigation.transactions': false,
'tear_down.bceid.navigation.fileSubmissions': false,
'tear_down.bceid.navigation.helpLink': false,
"tear_down.bceid.organization.creditInformation": false,
'tear_down.bceid.organization.roles.fileSubmission': false,
'tear_down.bceid.organization.roles.creditTransfers': false,
'tear_down.idir.widgets.balance': false,
'tear_down.idir.widgets.creditTransactions': false,
'tear_down.idir.widgets.fileSubmissions': false,
'tear_down.idir.navigation.transactions': false,
'tear_down.idir.navigation.fileSubmissions': false,
'tear_down.idir.navigation.helpLink': false,
'tear_down.idir.organizations.tableColumns.complianceUnits': false,
'tear_down.idir.organizations.tableColumns.inReserve': false,
'tear_down.idir.organization.creditInformation': false
'tear_down.bceid.widgets.balance': true,
'tear_down.bceid.widgets.feedback': true,
'tear_down.bceid.widgets.website': true,
'tear_down.bceid.widgets.creditTransactions': true,
'tear_down.bceid.widgets.fileSubmissions': true,
'tear_down.bceid.header.creditInformation': true,
'tear_down.bceid.navigation.transactions': true,
'tear_down.bceid.navigation.fileSubmissions': true,
'tear_down.bceid.navigation.helpLink': true,
"tear_down.bceid.organization.creditInformation": true,
'tear_down.bceid.organization.roles.fileSubmission': true,
'tear_down.bceid.organization.roles.creditTransfers': true,
'tear_down.idir.widgets.balance': true,
'tear_down.idir.widgets.creditTransactions': true,
'tear_down.idir.widgets.fileSubmissions': true,
'tear_down.idir.navigation.transactions': true,
'tear_down.idir.navigation.fileSubmissions': true,
'tear_down.idir.navigation.helpLink': true,
'tear_down.idir.organizations.tableColumns.complianceUnits': true,
'tear_down.idir.organizations.tableColumns.inReserve': true,
'tear_down.idir.organization.creditInformation': true
}
42 changes: 21 additions & 21 deletions openshift-v4/templates/frontend/frontend-dc-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,27 +115,27 @@ objects:
"exclusion_reports.create_effective_date": "2019-01-01",
"api_base": "https://${BACKEND_HOST}/api",
"tear_down.bceid.widgets.balance": false,
"tear_down.bceid.widgets.feedback": false,
"tear_down.bceid.widgets.website": false,
"tear_down.bceid.widgets.creditTransactions": false,
"tear_down.bceid.widgets.fileSubmissions": false,
"tear_down.bceid.header.creditInformation": false,
"tear_down.bceid.navigation.transactions": false,
"tear_down.bceid.navigation.fileSubmissions": false,
"tear_down.bceid.navigation.helpLink": false,
"tear_down.bceid.organization.creditInformation": false,
"tear_down.bceid.organization.roles.fileSubmission": false,
"tear_down.bceid.organization.roles.creditTransfers": false,
"tear_down.idir.widgets.balance": false,
"tear_down.idir.widgets.creditTransactions": false,
"tear_down.idir.widgets.fileSubmissions": false,
"tear_down.idir.navigation.transactions": false,
"tear_down.idir.navigation.fileSubmissions": false,
"tear_down.idir.navigation.helpLink": false,
"tear_down.idir.organizations.tableColumns.complianceUnits": false,
"tear_down.idir.organizations.tableColumns.inReserve": false,
"tear_down.idir.organization.creditInformation": false
"tear_down.bceid.widgets.balance": true,
"tear_down.bceid.widgets.feedback": true,
"tear_down.bceid.widgets.website": true,
"tear_down.bceid.widgets.creditTransactions": true,
"tear_down.bceid.widgets.fileSubmissions": true,
"tear_down.bceid.header.creditInformation": true,
"tear_down.bceid.navigation.transactions": true,
"tear_down.bceid.navigation.fileSubmissions": true,
"tear_down.bceid.navigation.helpLink": true,
"tear_down.bceid.organization.creditInformation": true,
"tear_down.bceid.organization.roles.fileSubmission": true,
"tear_down.bceid.organization.roles.creditTransfers": true,
"tear_down.idir.widgets.balance": true,
"tear_down.idir.widgets.creditTransactions": true,
"tear_down.idir.widgets.fileSubmissions": true,
"tear_down.idir.navigation.transactions": true,
"tear_down.idir.navigation.fileSubmissions": true,
"tear_down.idir.navigation.helpLink": true,
"tear_down.idir.organizations.tableColumns.complianceUnits": true,
"tear_down.idir.organizations.tableColumns.inReserve": true,
"tear_down.idir.organization.creditInformation": true
};
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
Expand Down
234 changes: 117 additions & 117 deletions openshift-v4/templates/frontend/frontend-dc-others.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,124 +5,124 @@ metadata:
name: tfrs-frontend-dc
creationTimestamp:
parameters:
- name: NAME
description: tfrs
value: tfrs
required: true
- name: SUFFIX
displayName:
description: sample is -pr-0
required: true
- name: VERSION
displayName:
description: image tag name for output
required: true
- name: KEYCLOAK_AUTHORITY
displayName: keycloak.authority
description:
required: true
- name: KEYCLOAK_CLIENT_ID
displayName: keycloak.client_id
description: Values tfrs-dev tfrs tfrs
required: true
- name: KEYCLOAK_CALLBACK_URL
displayName: keycloak.callback_url
description:
- name: KEYCLOAK_LOGOUT_URL
displayName: keycloak.post_logout_url
description:
required: true
- name: FRONTEND_HOST
displayName: Frontend route host name
description:
required: true
- name: BACKEND_HOST
displayName: Backend route host name
description:
required: true
- name: NAME
description: tfrs
value: tfrs
required: true
- name: SUFFIX
displayName:
description: sample is -pr-0
required: true
- name: VERSION
displayName:
description: image tag name for output
required: true
- name: KEYCLOAK_AUTHORITY
displayName: keycloak.authority
description:
required: true
- name: KEYCLOAK_CLIENT_ID
displayName: keycloak.client_id
description: Values tfrs-dev tfrs tfrs
required: true
- name: KEYCLOAK_CALLBACK_URL
displayName: keycloak.callback_url
description:
- name: KEYCLOAK_LOGOUT_URL
displayName: keycloak.post_logout_url
description:
required: true
- name: FRONTEND_HOST
displayName: Frontend route host name
description:
required: true
- name: BACKEND_HOST
displayName: Backend route host name
description:
required: true
objects:
- kind: Service
apiVersion: v1
metadata:
name: ${NAME}-frontend${SUFFIX}
spec:
ports:
- name: web
protocol: TCP
port: 8080
targetPort: 8080
selector:
- kind: Service
apiVersion: v1
metadata:
name: ${NAME}-frontend${SUFFIX}
type: ClusterIP
sessionAffinity: None
status:
loadBalancer: {}
- kind: Route
apiVersion: v1
metadata:
name: ${NAME}-frontend${SUFFIX}
creationTimestamp:
labels:
frontend: 'true'
annotations: {}
spec:
host: ${FRONTEND_HOST}
to:
kind: Service
spec:
ports:
- name: web
protocol: TCP
port: 8080
targetPort: 8080
selector:
name: ${NAME}-frontend${SUFFIX}
type: ClusterIP
sessionAffinity: None
status:
loadBalancer: {}
- kind: Route
apiVersion: v1
metadata:
name: ${NAME}-frontend${SUFFIX}
weight: 100
port:
targetPort: web
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
wildcardPolicy: None
- kind: ConfigMap
apiVersion: v1
metadata:
name: ${NAME}-keycloak-config${SUFFIX}
creationTimestamp:
data:
features.js: |
window.tfrs_config = {
"keycloak.enabled": true,
"keycloak.authority": "${KEYCLOAK_AUTHORITY}" ,
"keycloak.client_id": "${KEYCLOAK_CLIENT_ID}",
"keycloak.callback_url": "${KEYCLOAK_CALLBACK_URL}",
"keycloak.post_logout_url": "${KEYCLOAK_LOGOUT_URL}",
"debug.enabled": false,
"secure_document_upload.enabled": true,
"secure_document_upload.max_file_size": 50000000,
"fuel_codes.enabled": true,
"keycloak.custom_login": true,
"credit_transfer.enabled": true,
"compliance_reporting.enabled": true,
"credit_calculation_api.enabled": true,
"compliance_reporting.starting_year": 2017,
"compliance_reporting.create_effective_date": "2019-01-01",
"exclusion_reports.create_effective_date": "2019-01-01",
"exclusion_reports.enabled": true,
"api_base": "https://${BACKEND_HOST}/api",
creationTimestamp:
labels:
frontend: "true"
annotations: {}
spec:
host: ${FRONTEND_HOST}
to:
kind: Service
name: ${NAME}-frontend${SUFFIX}
weight: 100
port:
targetPort: web
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
wildcardPolicy: None
- kind: ConfigMap
apiVersion: v1
metadata:
name: ${NAME}-keycloak-config${SUFFIX}
creationTimestamp:
data:
features.js: |
window.tfrs_config = {
"keycloak.enabled": true,
"keycloak.authority": "${KEYCLOAK_AUTHORITY}" ,
"keycloak.client_id": "${KEYCLOAK_CLIENT_ID}",
"keycloak.callback_url": "${KEYCLOAK_CALLBACK_URL}",
"keycloak.post_logout_url": "${KEYCLOAK_LOGOUT_URL}",
"debug.enabled": false,
"secure_document_upload.enabled": true,
"secure_document_upload.max_file_size": 50000000,
"fuel_codes.enabled": true,
"keycloak.custom_login": true,
"credit_transfer.enabled": true,
"compliance_reporting.enabled": true,
"credit_calculation_api.enabled": true,
"compliance_reporting.starting_year": 2017,
"compliance_reporting.create_effective_date": "2019-01-01",
"exclusion_reports.create_effective_date": "2019-01-01",
"exclusion_reports.enabled": true,
"api_base": "https://${BACKEND_HOST}/api",
"tear_down.bceid.widgets.balance": false,
"tear_down.bceid.widgets.feedback": false,
"tear_down.bceid.widgets.website": false,
"tear_down.bceid.widgets.creditTransactions": false,
"tear_down.bceid.widgets.fileSubmissions": false,
"tear_down.bceid.header.creditInformation": false,
"tear_down.bceid.navigation.transactions": false,
"tear_down.bceid.navigation.fileSubmissions": false,
"tear_down.bceid.navigation.helpLink": false,
"tear_down.bceid.organization.creditInformation": false,
"tear_down.bceid.organization.roles.fileSubmission": false,
"tear_down.bceid.organization.roles.creditTransfers": false,
"tear_down.idir.widgets.balance": false,
"tear_down.idir.widgets.creditTransactions": false,
"tear_down.idir.widgets.fileSubmissions": false,
"tear_down.idir.navigation.transactions": false,
"tear_down.idir.navigation.fileSubmissions": false,
"tear_down.idir.navigation.helpLink": false,
"tear_down.idir.organizations.tableColumns.complianceUnits": false,
"tear_down.idir.organizations.tableColumns.inReserve": false,
"tear_down.idir.organization.creditInformation": false
};
"tear_down.bceid.widgets.balance": true,
"tear_down.bceid.widgets.feedback": true,
"tear_down.bceid.widgets.website": true,
"tear_down.bceid.widgets.creditTransactions": true,
"tear_down.bceid.widgets.fileSubmissions": true,
"tear_down.bceid.header.creditInformation": true,
"tear_down.bceid.navigation.transactions": true,
"tear_down.bceid.navigation.fileSubmissions": true,
"tear_down.bceid.navigation.helpLink": true,
"tear_down.bceid.organization.creditInformation": true,
"tear_down.bceid.organization.roles.fileSubmission": true,
"tear_down.bceid.organization.roles.creditTransfers": true,
"tear_down.idir.widgets.balance": true,
"tear_down.idir.widgets.creditTransactions": true,
"tear_down.idir.widgets.fileSubmissions": true,
"tear_down.idir.navigation.transactions": true,
"tear_down.idir.navigation.fileSubmissions": true,
"tear_down.idir.navigation.helpLink": true,
"tear_down.idir.organizations.tableColumns.complianceUnits": true,
"tear_down.idir.organizations.tableColumns.inReserve": true,
"tear_down.idir.organization.creditInformation": true
};

0 comments on commit 93ff48f

Please sign in to comment.