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

App Template 3 won't build inside a Nix sandbox #18

Closed
Goorzhel opened this issue Apr 16, 2024 · 3 comments
Closed

App Template 3 won't build inside a Nix sandbox #18

Goorzhel opened this issue Apr 16, 2024 · 3 comments

Comments

@Goorzhel
Copy link
Contributor

It does JSON schema validation using a web $ref, frustrating attempts to build it inside a sandbox.

I have a vague idea for a workaround, which is to munge the source repo ...

mkDerivation {
  src = fetchFromGitHub {...}
  buildPhase = ''
    cp -r $src $out
    cp -rf $out/charts/library/common/*schema* \
           $out/charts/other/app-template
  '';
}

... and special-case the chart somewhere in nixhelm, but I haven't found a non-ugly way to do that. So I've filed this as a placeholder until I figure it out.

@Goorzhel Goorzhel changed the title App Template 3 requires network access App Template 3 won't build inside a Nix sandbox Apr 16, 2024
@Goorzhel
Copy link
Contributor Author

Helm 3.16.0 will fix this.

@farcaller
Copy link
Owner

I think we're at 3.16.2 in nixpkgs now. Is it still an issue @Goorzhel ?

@Goorzhel
Copy link
Contributor Author

Goorzhel commented Oct 28, 2024

Nope: kubelib.buildHelmChart {extraOpts = ["--skip-schema-validation"]; ...} should suffice.

I would have preferred not to discard schema validation entirely, but I can't justify the effort to make it work with this case alone. If more cases appear, I could set about moving the helm pull to buildPhase and making installPhase configurable. Until then, this issue has no more gas in it.

@Goorzhel Goorzhel closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants