avionix icon indicating copy to clipboard operation
avionix copied to clipboard

Issue while deploying a chart from local directory

Open Pradyumnakashyap opened this issue 4 years ago • 4 comments

Could not deploy the Helm chart in a local directory on Windows, error with the arguments! Followed the example on - https://github.com/zbrookle/avionix/blob/master/examples/external_helm_charts_example.py The example also seems to be a little confusing. could you please provide a better example if the feature is enabled ?

Pradyumnakashyap avatar Mar 23 '21 08:03 Pradyumnakashyap

@Pradyumnakashyap Can you provide the error and stack trace you were getting? Thanks!

zbrookle avatar Mar 23 '21 22:03 zbrookle

@zbrookle Sorry for the late reply, before we even get to the stack trace, could you let me know if a helm command like below could be managed with Avionix ? If yes, could you provide an example for the same ? command - helm install app-name ./$localdirectory/<chart_name> Thanks !

Pradyumnakashyap avatar Mar 25 '21 11:03 Pradyumnakashyap

@Pradyumnakashyap This part of the example in the docs should work. What might be confusing you on Windows is that the path name that I have in the example is a unix style path, yours would probably look more along the lines of "C:\path\to\chart"

from avionix import ChartBuilder, ChartDependency, ChartInfo

if __name__ == "__main__":
    builder = ChartBuilder(
        ChartInfo(
            api_version="3.2.4",
            name="app-name",
            version="0.1.0",
            app_version="v1",
            dependencies=[
                ChartDependency(
                    "local-chart",
                    "0.1.0",
                    "file:///path/to/my/local-chart",
                    "local-repo",
                    is_local=True,
                ),
            ],
        ),
        [],
    )
    builder.install_chart({"dependency-update": None})

zbrookle avatar Mar 27 '21 14:03 zbrookle

@zbrookle I'm getting an error when I try the above example with the correct directory -

avionix.errors.HelmError: Getting updates for unmanaged Helm repositories... Error: could not find protocol handler for: c

Pradyumnakashyap avatar Mar 31 '21 09:03 Pradyumnakashyap