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(thirdparty): auth svc charts #452

Merged
merged 9 commits into from
Sep 21, 2021

Conversation

lewisdaly
Copy link
Contributor

@lewisdaly lewisdaly commented Sep 20, 2021

The thirdparty charts have 3 separate services, so I'm going to add them all one at a time to make it easier to review and debug.

This PR adds support for the auth-svc, which stores and validates consents, and checks transactions for valid signatures before approving them.

It has 2 prerequisites (mysql, redis), which aren't installed in the chart, but I did include an example of how an end user might install them on their own.

Part of mojaloop/project#2450

@lewisdaly lewisdaly changed the title feat(thirdparty): Auth-Svc Charts feat(thirdparty): auth svc charts Sep 20, 2021
Copy link
Member

@mdebarros mdebarros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @lewisdaly,

Made some minor change suggestions.

Let me know what you think.

Otherwise looks good.

template:
metadata:
labels:
{{- include "auth-svc.selectorLabels" . | nindent 8 }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be labels not selectorLabels, btw this is also something that needs to be fixed in the ml-operator chart.

selectorLabels should only be used for selectors ;D

configMap:
name: auth-svc-config
items:
{{- range $k, $v := index .Values.config }}
Copy link
Member

@mdebarros mdebarros Sep 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason that this generally loads all config files, but the above volumeMounts a specific file production.json?

If you are not planning to do something like that, I would just define the config files you need.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I can do that.

I thought this approach would be more generic, in case we wanted to specify more than one file and be able to switch between them easily. That is similar to the approach we use when switching development environments with convict - see https://github.com/mojaloop/auth-service/tree/master/config for example

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not a fan of that approach, i.e. uploading multiple configurations and selecting the desired one based on the target environment.

I would prefer to be explicit, i.e. if it's the dev environment, then only configure the dev environment configs, etc.

@lewisdaly
Copy link
Contributor Author

@mdebarros ready to go again.

Copy link
Member

@mdebarros mdebarros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@lewisdaly lewisdaly merged commit 2dc34e4 into mojaloop:master Sep 21, 2021
@lewisdaly lewisdaly deleted the feat/pisp-charts branch September 21, 2021 23:37
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.

None yet

3 participants