Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(helm): consolidate values files into one #1563

Merged
merged 4 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
description: 'frontend Tag, could be tag or sha'
required: true
type: string
autoscaling:
description: 'Autoscaling enabled or not for the deployments'
required: false
type: boolean
default: true

target:
description: 'PR number, test or prod.'
Expand Down Expand Up @@ -59,6 +64,7 @@ jobs:
working-directory: ${{ inputs.directory }}
shell: bash
run: |

# Login to OpenShift (NOTE: project command is a safeguard)
oc login --token=${{ secrets.oc_token }} --server=${{ vars.oc_server }}
oc project ${{ vars.oc_namespace }}
Expand All @@ -78,6 +84,8 @@ jobs:
--set-string backend.initContainers[0].tag="${{ inputs.migrations_tag }}" \
--set-string frontend.containers[0].tag="${{ inputs.frontend_tag }}" \
--set-string global.secrets.databasePassword=${{ secrets.DB_PASSWORD }} \
--set backend.autoscaling.enabled=${{ inputs.autoscaling }} \
--set frontend.autoscaling.enabled=${{ inputs.autoscaling }} \
--install --wait --atomic ${{ github.event.repository.name }}-${{ inputs.target }} \
--timeout ${{ inputs.timeout-minutes }}m \
--values ${{ inputs.values }} .
3 changes: 2 additions & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,5 @@ jobs:
migrations_tag: ${{ needs.builds.outputs.migrations_tag }}
frontend_tag: ${{ needs.builds.outputs.frontend_tag }}
target: ${{ github.event.number }}
values: values-pr.yaml
values: values.yaml
autoscaling: false
10 changes: 5 additions & 5 deletions charts/quickstart-openshift/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
dependencies:
- name: component
repository: https://bcgov.github.io/helm-service
version: 0.0.13
version: 0.0.15
- name: component
repository: https://bcgov.github.io/helm-service
version: 0.0.13
version: 0.0.15
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 13.1.5
- name: component
repository: https://bcgov.github.io/helm-service
version: 0.0.13
digest: sha256:8e1d9672f32629d18ec3a17bcc447c8ee9531d9ae9147db8dfd86f3f876af563
generated: "2023-10-26T02:03:54.085557072Z"
version: 0.0.15
digest: sha256:471a90305798e31c3ff09fba0e9fb90cb302a97854ee635e93e3c57f7bee9464
generated: "2023-10-31T18:29:18.1228354-07:00"
6 changes: 3 additions & 3 deletions charts/quickstart-openshift/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ appVersion: "1.16.0"
dependencies:
- name: component
condition: backend.enabled
version: 0.0.13
version: 0.0.15
repository: https://bcgov.github.io/helm-service
alias: backend

- name: component
condition: frontend.enabled
version: 0.0.13
version: 0.0.15
repository: https://bcgov.github.io/helm-service
alias: frontend

Expand All @@ -46,6 +46,6 @@ dependencies:

- name: component
condition: backup.enabled
version: 0.0.13
version: 0.0.15
repository: https://bcgov.github.io/helm-service
alias: backup
Loading