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

feat(mojaloop/#2352): update and standardise helm charts to use netwo… #527

Closed
wants to merge 6 commits into from

Conversation

mdebarros
Copy link
Member

…rking v1 (#508)

feat(mojaloop/#2352): update and standardise helm charts to use networking v1 - mojaloop/project#2352

Notes

This PR is re-created from #506 which includes some fixes based on tests on k8s v1.24

Changes:

Update the Chart.yaml's and standardise all charts to helm v3 (API v2)

- move any dependencies in the requirements.yaml to Charts.yaml
- update the apiVersion for helm in all the Charts.yaml to 2.0
- add the common dependency to each chart that already has an ingress
- remove all requirements.lock 
- update maintainers in chart.yaml to include tomd@crosslaketech.com
- bump chart versions 

Update the ingress and networking API to v1 and standardise where possible

  • if the chart has an ingress template the chart is not on the exclusion list (see below) => the ingress template is updated to be a clone of the bitnami example (a version of what already exists in the charts repo)
  • updates the values files for the new ingress settings
  • ensure the updated values files have the correct hostname for the ingress
  • checks for paths and extra paths correctly allowed for (i.e. all charts with extraPaths or extraHosts are on e
  • ensure the updated values files have the correct port number for the ingress
    - update config/default.json files for values.ingress.api.host or similar to use .Values.ingress.hostname
    - _helper.tpl's updated to use correct ingress APIs and remove redundant ingress logic and templates

General Maintenance

- Fixed lint issue
- Removed forensicloggingsidecar, centralenduserregistry, kube-system from lint scripts since they are no longer supported
- Updated Maintainers list for each chart

Exclusion list of charts

  • i.e. these charts are not yet standardised to the new ingress modeled on the bitnami example :
  • Any existing ingress in these charts has been updated "in place" rather than replaced with the newer standardised bitnami modeled chart.
  • So the ingress.yaml, config/*json, _helper.tpls , values.yaml files etc have been updated to use the latest ingress but they remain non-standard compared to the rest of the code-base.
  • "finance-portal-settlement-management",
  • "finance-portal",
  • "thirdparty",
  • "thirdparty/chart-tp-api-svc",
  • "thirdparty/chart-consent-oracle",
  • "thirdparty/chart-auth-svc",
  • "mojaloop-simulator",
  • "keycloak",
  • "monitoring",
  • "monitoring/promfana",
  • "monitoring/elk",
  • "ml-testing-toolkit/chart-keycloak",
  • "ml-testing-toolkit/chart-backend",
  • "ml-testing-toolkit/chart-frontend",
  • "ml-testing-toolkit/chart-connection-manager-backend",
  • "ml-testing-toolkit/chart-connection-manager-frontend"

Co-authored-by: tdaly61 tdaly61@gmail.com
Co-authored-by: Sam 10507686+elnyry-sam-k@users.noreply.github.com

mdebarros and others added 6 commits October 19, 2022 19:28
…rking v1 (#508)

feat(mojaloop/#2352): update and standardise helm charts to use networking v1 - mojaloop/project#2352

# Notes

This PR is re-created from #506 which includes some fixes based on tests on k8s v1.24

# Changes:

## Update the Chart.yaml's and standardise all charts to helm v3 (API v2)
    - move any dependencies in the requirements.yaml to Charts.yaml
    - update the apiVersion for helm in all the Charts.yaml to 2.0
    - add the common dependency to each chart that already has an ingress
    - remove all requirements.lock 
    - update maintainers in chart.yaml to include tomd@crosslaketech.com
    - bump chart versions 

## Update the ingress and networking API to v1 and standardise where possible 
   -  if the chart has an ingress template the chart  is not on the exclusion list (see below) => the ingress template is updated to be a clone of the bitnami example (a version of what already exists in the charts repo)
   - updates the values files for the new ingress settings
   - ensure the updated values files have the correct hostname for the ingress
   - checks for paths and extra paths correctly allowed for (i.e. all charts with extraPaths or extraHosts are on e
   - ensure the updated values files have the correct port number for the ingress
    - update config/default.json files for values.ingress.api.host or similar to use .Values.ingress.hostname
    - _helper.tpl's updated to use correct ingress APIs and remove redundant ingress logic and templates

## General Maintenance
    - Fixed lint issue
    - Removed forensicloggingsidecar, centralenduserregistry, kube-system from lint scripts since they are no longer supported
    - Updated Maintainers list for each chart

## Exclusion list of charts
- i.e. these charts are not yet standardised to the new ingress modeled on the bitnami example :
- Any existing ingress in these charts has been updated "in place" rather than replaced with the newer standardised bitnami modeled chart.
- So the ingress.yaml, config/*json, _helper.tpls , values.yaml files etc have been updated to use the latest ingress but they remain non-standard compared to the rest of the code-base.
- "finance-portal-settlement-management",
- "finance-portal",
- ~"thirdparty"~,
- ~"thirdparty/chart-tp-api-svc"~,
- ~"thirdparty/chart-consent-oracle"~,
- ~"thirdparty/chart-auth-svc"~,
- ~"mojaloop-simulator"~,
- "keycloak",
- "monitoring",
- "monitoring/promfana",
- "monitoring/elk",
- "ml-testing-toolkit/chart-keycloak",
- "ml-testing-toolkit/chart-backend",
- "ml-testing-toolkit/chart-frontend",
- "ml-testing-toolkit/chart-connection-manager-backend",
- "ml-testing-toolkit/chart-connection-manager-frontend"

Co-authored-by: tdaly61 <tdaly61@gmail.com>
Co-authored-by: Sam <10507686+elnyry-sam-k@users.noreply.github.com>
- fixed als-admin api ingress service port from 4002 to 4001
- fixed formatting issues in for protocol_versions configs
* chore: bumped up ttk-ui

* chore: some change in appversion
- fixed als api ingress service port fix from 4002/4001 to 80
- fixed formatting issues in for protocol_versions configs
feat: added example backend chart for mojaloop (#517) - mojaloop/project#3000
- updated mojaloop/values.yaml to include CONFIG section with YAML Anchor variables to make configurations easier
- added example-mojaloop-backend for external backend dependencies to enable deployments on Kubernetes v1.22+
    - updated shell helper scripts to include example-mojaloop-backend charts
- updates CI config to add helm dependency repos and updated readme

Co-authored-by: Miguel de Barros <miguel@debarros.me>
# Conflicts:
#	.changelog/release-v14.1.0.md
#	README.md
#	lint-charts.sh
#	ml-testing-toolkit/Chart.yaml
#	ml-testing-toolkit/chart-backend/Chart.yaml
#	mojaloop-simulator/Chart.yaml
#	mojaloop/Chart.yaml
#	mojaloop/values.yaml
#	package.sh
#	update-charts-dep.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants