feat: added extraObjects to Oathkeeper chart#754
feat: added extraObjects to Oathkeeper chart#754khusseini wants to merge 3 commits intoory:masterfrom
Conversation
Demonsthere
left a comment
There was a problem hiding this comment.
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.
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