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

Add a WithValueTranslator option to Reconciller. #114

Merged

Commits on Dec 2, 2021

  1. Add a WithValueTranslator option to Reconciller.

    A Translator is a way to produces helm values based on the fetched custom
    resource itself (unlike `Mapper` which can only see `Values`).
    
    This way the code which converts the custom resource to Helm values can first
    convert an `Unstructured` into a regular struct, and then rely on Go type
    safety rather than work with a tree of maps from `string` to `interface{}`.
    
    Thanks to having access to a `Context`, the code can also safely access the
    network, for example in order to retrieve other resources from the k8s cluster,
    when they are referenced by the custom resource.
    porridge committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    09a6eb4 View commit details
    Browse the repository at this point in the history