generated from bcgov/quickstart-openshift-emerald
-
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.
- Loading branch information
0 parents
commit ee52da0
Showing
123 changed files
with
26,598 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
name: Bug | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the Bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Expected Behaviour** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Actual Behaviour** | ||
A clear and concise description of what you expected to happen. | ||
|
||
** Steps To Reproduce** | ||
Steps to reproduce the behaviour: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
name: Custom issue template | ||
about: Describe this issue template's purpose here | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
name: Decision | ||
about: This is a big decision that has been made or raised to PO | ||
title: '' | ||
labels: decision | ||
assignees: '' | ||
|
||
--- |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Documentation | ||
about: Documentation for a specific area or need | ||
title: '' | ||
labels: documentation | ||
assignees: '' | ||
|
||
--- | ||
|
||
**As a** *(User Type/Persona)* **I want** *(Feature/enhancement)* **So That** *(Value, why is this wanted, what is the user trying to accomplish)* | ||
|
||
**Additional Context** | ||
- enter text here | ||
- enter text here | ||
|
||
**Acceptance Criteria** | ||
- [ ] Given (Context), When (action carried out), Then (expected outcome) | ||
- [ ] Given (Context), When (action carried out), Then (expected outcome) | ||
|
||
**Definition of Done** | ||
- [ ] Ready to Demo in Sprint Review | ||
- [ ] Does what I have made have appropriate test coverage? | ||
- [ ] Documentation and/or scientific documentation exists and can be found | ||
- [ ] Peer Reviewed by 2 people on the team | ||
- [ ] Manual testing of all PRs in Dev and Prod | ||
- [ ] Merged |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: Epic | ||
about: A User Story Large enough that it cannot be completed in a single sprint, the | ||
desired end state of a feature | ||
title: '' | ||
labels: epic | ||
assignees: '' | ||
|
||
--- | ||
|
||
**As a** *(User Type/Persona)* **I want** *(Feature/enhancement)* **So That** *(Value, why is this wanted, what is the user trying to accomplish)* | ||
|
||
**Additional Context** | ||
|
||
- enter text here | ||
- enter text here | ||
|
||
**Acceptance Criteria** | ||
|
||
- [ ] Given (Context), When (action carried out), Then (expected outcome) | ||
- [ ] Given (Context), When (action carried out), Then (expected outcome) |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Feature request / user story | ||
about: Suggest an idea from the perspective of a user | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**As a** *(User Type/Persona)* **I want** *(Feature/enhancement)* **So That** *(Value, why is this wanted, what is the user trying to accomplish)* | ||
|
||
**Additional Context** | ||
- enter text here | ||
- enter text here | ||
|
||
**Acceptance Criteria** | ||
- [ ] Given (Context), When (action carried out), Then (expected outcome) | ||
- [ ] Given (Context), When (action carried out), Then (expected outcome) | ||
|
||
**Definition of Done** | ||
- [ ] Ready to Demo in Sprint Review | ||
- [ ] Does what I have made have appropriate test coverage? | ||
- [ ] Documentation and/or scientific documentation exists and can be found | ||
- [ ] Peer Reviewed by 2 people on the team | ||
- [ ] Manual testing of all PRs in Dev and Prod | ||
- [ ] Merged |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: Question | ||
about: Ask us a question! | ||
title: '' | ||
labels: question | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the task** | ||
basic description of the task, is it focuse on research with users or the business area? is it design focused on either co-design or wireframing? is it User Testing or compiling results? | ||
|
||
**Acceptance Criteria** | ||
- [ ] what is required for this task to be complete? | ||
- what is the finishing point or end state of this task? | ||
- [ ] what is the output of this task? | ||
|
||
**SME/User Contact** | ||
(may want to use a persona to fill this in) | ||
|
||
**Additional context** | ||
- any additional details that could not be captured above |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Task | ||
about: Work for the team that cannot be written as a user story | ||
title: '' | ||
labels: task | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the task** | ||
A clear and concise description of what the task is. | ||
|
||
**Acceptance Criteria** | ||
- [ ] first | ||
- [ ] second | ||
- [ ] third | ||
|
||
**Additional context** | ||
- Add any other context about the task here. | ||
- Or here |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: UX Task | ||
about: This is a Task for UX Research, Design or Testing | ||
title: '' | ||
labels: ux | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the task** | ||
basic description of the task, is it focuse on research with users or the business area? is it design focused on either co-design or wireframing? is it User Testing or compiling results? | ||
|
||
**Acceptance Criteria** | ||
- [ ] what is required for this task to be complete? | ||
- what is the finishing point or end state of this task? | ||
- [ ] what is the output of this task? | ||
|
||
**SME/User Contact** | ||
(may want to use a persona to fill this in) | ||
|
||
**Additional context** | ||
- any additional details that could not be captured above |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Matched against repo root (asterisk) | ||
* @mishraomp @DerekRoberts | ||
|
||
# Matched against directories | ||
# /.github/workflows/ @mishraomp @DerekRoberts | ||
|
||
# See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!-- Provide a general summary of your changes in the Title above --> | ||
|
||
# Description | ||
|
||
Please provide a summary of the change and the issue fixed. Please include relevant context. List dependency changes. | ||
|
||
Fixes # (issue) | ||
|
||
## Type of change | ||
|
||
Please delete options that are not relevant. | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] This change requires a documentation update | ||
|
||
# How Has This Been Tested? | ||
|
||
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration | ||
|
||
- [ ] Test A | ||
- [ ] Test B | ||
|
||
|
||
## Checklist | ||
|
||
<!-- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
<!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||
|
||
- [ ] I have read the [CONTRIBUTING](CONTRIBUTING.md) doc | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] My changes generate no new warnings | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] New and existing unit tests pass locally with my changes | ||
- [ ] Any dependent changes have already been accepted and merged | ||
|
||
|
||
## Further comments | ||
|
||
<!-- If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc... --> |
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 |
---|---|---|
@@ -0,0 +1,120 @@ | ||
name: .Deploys | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
### Required | ||
release: | ||
description: Deployment release; usually PR number, test or prod | ||
required: true | ||
type: string | ||
|
||
### Typical / recommended | ||
autoscaling: | ||
description: Autoscaling enabled or not for the deployments | ||
required: false | ||
type: string | ||
default: false | ||
build_outputs: | ||
description: Build outputs | ||
required: false | ||
type: string | ||
default: 'true' | ||
environment: | ||
description: Environment name; omit for PRs | ||
required: false | ||
type: string | ||
tag: | ||
description: Container tag; usually PR number | ||
required: false | ||
type: string | ||
default: ${{ github.event.number }} | ||
test: | ||
description: Run tests after deployment? | ||
required: false | ||
type: string | ||
default: "true" | ||
|
||
### Usually a bad idea / not recommended | ||
directory: | ||
description: 'Chart directory' | ||
default: 'charts/${{ github.event.repository.name }}' | ||
required: false | ||
type: string | ||
timeout-minutes: | ||
description: 'Timeout minutes' | ||
default: 10 | ||
required: false | ||
type: number | ||
values: | ||
description: 'Values file' | ||
default: 'values.yaml' | ||
required: false | ||
type: string | ||
params: | ||
description: 'Extra parameters to pass to helm upgrade' | ||
default: '' | ||
required: false | ||
type: string | ||
|
||
env: | ||
repo_release: ${{ github.event.repository.name }}-${{ inputs.release }} | ||
package_tag: ${{ inputs.tag }} | ||
|
||
jobs: | ||
deploys: | ||
name: Helm | ||
if: ${{ inputs.build_outputs != '' }} | ||
environment: ${{ inputs.environment }} | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: ${{ inputs.timeout-minutes }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Deploy | ||
working-directory: ${{ inputs.directory }} | ||
shell: bash | ||
run: | | ||
oc login --token=${{ secrets.oc_token }} --server=${{ vars.oc_server }} | ||
oc project ${{ vars.OC_NAMESPACE }} # Safeguard! | ||
# Interrupt any previous jobs (status = pending-upgrade) | ||
PREVIOUS=$(helm status ${{ env.repo_release }} -o json | jq .info.status || true) | ||
if [[ ${PREVIOUS} =~ pending ]]; then | ||
echo "Rollback triggered" | ||
helm rollback ${{ env.repo_release }} || \ | ||
helm uninstall ${{ env.repo_release }} | ||
fi | ||
# Clean previous deployments for PR pipeline, if any | ||
if [[ '${{inputs.environment}}' == '' ]]; then | ||
helm uninstall ${{ env.repo_release }} || true | ||
fi | ||
# Deploy Helm Chart | ||
helm dependency update | ||
helm package --app-version="${{ env.package_tag }}" --version=${{ inputs.tag }} . | ||
helm upgrade \ | ||
--set global.autoscaling=${{ inputs.autoscaling }} \ | ||
--set-string global.repository=${{ github.repository }} \ | ||
--set-string global.secrets.databasePassword=${{ secrets.DB_PASSWORD }} \ | ||
--set-string backend.containers[0].tag="${{ env.package_tag }}" \ | ||
--set-string backend.initContainers[0].tag="${{ env.package_tag }}" \ | ||
--set-string frontend.containers[0].tag="${{ env.package_tag }}" \ | ||
${{ inputs.params }} \ | ||
--install --wait --atomic ${{ env.repo_release }} \ | ||
--timeout ${{ inputs.timeout-minutes }}m \ | ||
--values ${{ inputs.values }} \ | ||
./${{ github.event.repository.name }}-${{ inputs.tag }}.tgz | ||
# print history | ||
helm history ${{ env.repo_release }} | ||
# Remove old build runs, build pods and deployment pods | ||
oc delete po --field-selector=status.phase==Succeeded | ||
tests: | ||
name: Tests | ||
needs: [deploys] | ||
if: ${{ inputs.test == 'true' && inputs.build_outputs != '' }} | ||
uses: ./.github/workflows/.tests.yml | ||
with: | ||
target: ${{ inputs.release }} |
Oops, something went wrong.