-
Notifications
You must be signed in to change notification settings - Fork 58
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
tool to generate a helm chart from an ACM MCE release #709
Conversation
extracts and templateizes the manifests from an MCE OLM release bundle https://issues.redhat.com/browse/ARO-10315 Signed-off-by: Gerd Oberlechner <[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.
Please add tests, many of these files mutate or operator on internal data structures, which should be tested from the beginning on.
Signed-off-by: Gerd Oberlechner <[email protected]>
Signed-off-by: Gerd Oberlechner <[email protected]>
Signed-off-by: Gerd Oberlechner <[email protected]>
Signed-off-by: Gerd Oberlechner <[email protected]>
i've added some basic tests revolving around the structure of the expected YAMLs. |
tooling/mcerepkg/main.go
Outdated
// load OLM bundle manifests | ||
img, err := crane.Load(mceOlmBundle) | ||
if err != nil { | ||
return err |
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.
Please wrap error to make debugging easier
imageRegistryParamName = "imageRegistry" | ||
) | ||
|
||
type Customizer func(unstructured.Unstructured) (unstructured.Unstructured, map[string]string, error) |
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.
Is this type enforced from outside? Why is it not using pointers? Could save some memory using i.e.:
type Customizer func(*unstructured.Unstructured) (map[string]string, error)
and update the object in the method
Signed-off-by: Gerd Oberlechner <[email protected]>
Signed-off-by: Gerd Oberlechner <[email protected]>
What this PR does
extracts and templateizes the manifests from an MCE OLM release bundle
https://issues.redhat.com/browse/ARO-10315
this is part 1 or 2 - this part introduces the base repackage tool
part 2 will use it to replace the current ACM installation (with OLM) to one with helm (without OLM)
Jira:
Link to demo recording:
Special notes for your reviewer