avionix
avionix copied to clipboard
Issue while deploying a chart from local directory
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 Can you provide the error and stack trace you were getting? Thanks!
@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 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 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