-
Notifications
You must be signed in to change notification settings - Fork 1
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: embed templates into operator plugin #5
Conversation
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.
Great to see it was possible without a lot of changes. I think we should make clear separation between loading files (in this case to a special tmp folder) and processing templates. For details see my comments below.
Co-authored-by: Bartosz Majsak <[email protected]>
Co-authored-by: Bartosz Majsak <[email protected]>
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.
Hopefully the last round :)
pkg/kfapp/ossm/ossm_manifests.go
Outdated
const ( | ||
ControlPlaneDir = "templates/control-plane" | ||
AuthDir = "templates/authorino" | ||
) |
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.
I would move them next to //go:embed
, otherwise they're local per func invocation.
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.
moved it with the const baseOutputDir
in types.go 22c5bd0
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.
Great job! Just a couple of nits :)
Co-authored-by: Bartosz Majsak <[email protected]>
Co-authored-by: Bartosz Majsak <[email protected]>
Co-authored-by: Bartosz Majsak <[email protected]>
Co-authored-by: Bartosz Majsak <[email protected]>
Co-authored-by: Bartosz Majsak <[email protected]>
embed templates to OSSM plugin Co-authored-by: Bartosz Majsak <[email protected]>
embed templates to OSSM plugin Co-authored-by: Bartosz Majsak <[email protected]>
This PR essentially moves the Service Mesh/Authorization specific resource files that were previously found in our manifests fork in the
/service-mesh/
folder into the operator's code base.embed
functionality in golangembed
creates a read only FS, we use/tmp/ossm-installer/ns/kfdef-name/templates/...
to create our finalized template yaml filesTo test:
quay.io/maistra-dev/opendatahub-operator:v0.0.5-embed