-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CMAN poc. * use jvm at this point. * use jvm at this point. * use jvm at this point. * use jvm at this point. * use jvm at this point. * use jvm at this point. * use jvm at this point. * native mode. * native mode. * Add access logging. * CMAN related changes. * try reading from vault. * revert back on certs. * update to java 21. * update to java 21. * fix path of vault. * fix path of vault. * fix network policy name for HELM ownership. * fix helm component name * add compatibility * updating the version. * port * disable access logs by default * update versions.
- Loading branch information
Showing
13 changed files
with
88 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,8 +57,35 @@ jobs: | |
needs: | ||
- builds | ||
runs-on: ubuntu-22.04 | ||
environment: test | ||
env: | ||
project_name: nr-oracle | ||
app_name: nr-oracle-service | ||
environment: development | ||
secret_path_env: dev # this path is different from the path in the broker | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Broker | ||
id: broker | ||
uses: bcgov-nr/[email protected] | ||
with: | ||
broker_jwt: ${{ secrets.BROKER_JWT }} | ||
provision_role_id: ${{ secrets.PROVISION_ROLE }} | ||
project_name: ${{ env.project_name }} | ||
app_name: ${{ env.app_name }} | ||
environment: ${{ env.environment }} | ||
- name: Import Secrets | ||
id: secrets | ||
uses: hashicorp/[email protected] | ||
with: | ||
url: https://vault-iit.apps.silver.devops.gov.bc.ca | ||
token: ${{ steps.broker.outputs.vault_token }} | ||
exportEnv: 'false' | ||
secrets: | | ||
apps/data/${{ env.secret_path_env }}/${{ env.project_name }}/${{ env.app_name }}/rar dbHost | DB_HOST; | ||
apps/data/${{ env.secret_path_env }}/${{ env.project_name }}/${{ env.app_name }}/rar dbName | DB_NAME; | ||
apps/data/${{ env.secret_path_env }}/${{ env.project_name }}/${{ env.app_name }}/rar dbPassword | DB_PWD; | ||
apps/data/${{ env.secret_path_env }}/${{ env.project_name }}/${{ env.app_name }}/rar dbUser | DB_USER; | ||
- name: Deploy to OpenShift | ||
shell: bash | ||
run: | | ||
|
@@ -70,4 +97,14 @@ jobs: | |
oc project ${{ vars.oc_namespace }} | ||
# Deploy Helm Chart | ||
helm upgrade --install --wait --atomic nr-oracle-service-${{ github.event.number }} --set nameOverride=nr-oracle-service-${{ github.event.number }} --set image.tag=pr-${{ github.event.number }} --set app.envs.DB_HOST=${{ secrets.DB_HOST }} --set app.envs.DB_NAME=${{ secrets.DB_NAME }} --set app.envs.DB_PASSWORD=${{ secrets.DB_PASSWORD }} --set app.envs.DB_USER=${{ secrets.DB_USER }} --set image.repository=ghcr.io/${{ github.repository }}/nr-oracle-service --set image.repositoryInit=ghcr.io/${{ github.repository }}/nr-oracle-service-init --set namespace=${{ vars.oc_namespace }} --timeout 10m charts/nr-oracle-service --debug | ||
helm upgrade --install nr-oracle-service-${{ github.event.number }} \ | ||
--set-string image.tag=${{ github.sha }} \ | ||
--set-string app.envs.DB_HOST=${{ steps.secrets.outputs.DB_HOST }} \ | ||
--set-string app.envs.DB_NAME=${{ steps.secrets.outputs.DB_NAME }} \ | ||
--set-string app.envs.DB_PASSWORD=${{ steps.secrets.outputs.DB_PWD }} \ | ||
--set-string app.envs.DB_USER=${{ steps.secrets.outputs.DB_USER }} \ | ||
--set-string app.envs.DB_PORT="${{ secrets.DB_PORT }}" \ | ||
--set-string image.repository="ghcr.io/${{ github.repository }}/nr-oracle-service" \ | ||
--set-string image.repositoryInit="ghcr.io/${{ github.repository }}/nr-oracle-service-init" \ | ||
--set-string namespace=${{ vars.oc_namespace }} \ | ||
--timeout 10m charts/nr-oracle-service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,4 @@ nb-configuration.xml | |
|
||
# Plugin directory | ||
/.quarkus/cli/plugins/ | ||
cman_certificate.crt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters