-
-
Notifications
You must be signed in to change notification settings - Fork 279
feat: added extraObjects to Oathkeeper chart #754
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
base: master
Are you sure you want to change the base?
Conversation
Demonsthere
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello there!
I don't have any issues with the feature, but I see how we could reuse it easier in other charts. Please ass the extra-manifest as a template to the https://github.com/ory/k8s/tree/master/helm/charts/ory-commons/templates library and we can easily include it from there. This will make reusing this much simpler :)
|
@Demonsthere I moved the template to ory-commons helm chart templates folder. Sorry it took me a while to do this. |
Demonsthere
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few things here, as this wont work this way. The ory-commons is a library chart, and doesnt have Values or manifests, but only functions like https://github.com/ory/k8s/blob/master/helm/charts/ory-commons/templates/_helpers.tpl#L4
You need to refactor the extra manifests into a template function, then add the library as a dependency to oathkeeper as in https://github.com/ory/k8s/blob/master/helm/charts/keto/Chart.yaml#L29
then you have access to the functions inside which can be called similar to https://github.com/ory/k8s/blob/master/helm/charts/keto/templates/deployment.yaml#L97
So in the end, you should have in oathkeeper the extra-manifests.yaml file with a structure similar to
{{- with .Values.extraObjects }}
{{ include "ory.generateExtraObjects" . }}
{{- end }}|
Hey there @khusseini no worries ;) I have written more details on how i think this change should be implemented. If you have any questions, please ping me 😉 |
Related Issue or Design Document
Implements #753
Checklist
If this pull request addresses a security vulnerability,
I confirm that I got approval (please contact security@ory.sh) from the maintainers to push the changes.
Further comments