Giter Club home page Giter Club logo

hoppscotch-helm's Introduction

Hoppscotch Helm Charts [WIP]

Chart Version hoppscotch Version

Disclaimer

These charts are still a work in progress. They provide a base that deploys the 3 components [backend, web, admin] as seperate deployments. However I think that currently the frontend/admin don't allow envs dynamic envs. As long as this is not implemented I fear this way of deploying will not work.

Also I am not a maintainer or in any way related to the hoppscotch project, I made this as a starter template and hope that the hoppscotch team will transfer this repo over to their org.

Please create an issue or submit a pull request for any issues or missing features.

Contents

Usage

Helm must be installed to use the charts. Please refer to Helm's documentation to get started.

Once Helm is set up properly, add the repo as follows:

helm repo add hoppscotch https://wdaan.github.io/hoppscotch-helm/

You can then run helm search repo hoppscotch to see the charts.

Installing

helm install hoppscotch hoppscotch/hoppscotch

Upgrading

helm upgrade hoppscotch hoppscotch/hoppscotch

Configuration

You can configure this chart by updating create a custom values file.

See the hoppscotch documentation for more information.

YAML

You can also configure this chart using YAML. See the values.yaml file for the default values under global.env.

Contributing

Feel free to open up a PR.

License

MIT License.

hoppscotch-helm's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar wdaan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hoppscotch-helm's Issues

Provide a postgresql by default

Hi thank for you work it could interersting to have by default a postgresql database like in the docker-compose what do you think ?

Many issues

Hello, thank you for your work but I can't install your chart, I have several issues.
If I install it with helm install hoppscotch hoppscotch/hoppscotch -f values.yaml the global.env are not taken:

coalesce.go:223 : warning : destination for hoppscotch.admin.env is a table. Ignore values that are not tables ([])
coalesce.go:223 : warning: destination for hoppscotch.backend.env is a table. Ignore non-table value ([])
coalesce.go:223 : warning : destination for hoppscotch.web.env is a table. Ignore non-table value ([])

I also have a issue with ingress:
Error: template: hoppscotch/templates/web/ingress.yaml:3:23: executing "hoppscotch/templates/web/ingress.yaml" at <.Values.service.httpPort>: nil pointer evaluating interface {}.httpPort"

I cloned your repo, and the global.env works, but the containers are in crashloopbackoff
standard_init_linux.go:228: exec user process caused: operation not permitted and same issue with ingress.

I doesn't understand why, thanks for your help.

hoppscotch.env_vars - cannot handle strings

It seems as the hoppscotch.env_vars helper function doesn't support env values containing string.

I guess you could remove the if-statement altogether, but I might miss something.

{{/* Format env vars */}}
{{- define "hoppscotch.env_vars" -}}
  {{- with . -}}
    {{- $result := list -}}
    {{- range $name, $value := . -}}
        {{- if or (kindIs "float64" $value) (kindIs "bool" $value) -}}
          {{- $result = append $result (dict "name" $name "value" ($value | toString)) -}}
        {{- else -}}
          {{- $result = append $result (dict "name" $name "value" $value) -}}
        {{- end -}}
      {{- end -}}
    {{- toYaml $result | nindent 0 -}}
  {{- end -}}
{{- end -}}

global:
  env:
    DATABASE_URL: postgresql://postgres:testpass@hoppscotch-db:5432/hoppscotch

Error details

Error: INSTALLATION FAILED: template: hoppscotch/templates/web/deployment.yaml:44:17: executing "hoppscotch/templates/web/deployment.yaml" at <include "hoppscotch.env_vars" (deepCopy .Values.web.env | merge .Values.global.env)>: error calling include: template: hoppscotch/templates/_helpers.tpl:104:67: executing "hoppscotch.env_vars" at <tpl $value $>: error calling tpl: cannot retrieve Template.Basepath from values inside tpl function: postgresql://postgres:OwSv34O76Z@my-release-postgresql.postgres-system.svc.cluster.local:5432/hoppscotch: "BasePath" is not a value

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.