Skip to content

Commit

Permalink
Support configuration with Google PubSub (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvowles authored Dec 9, 2023
1 parent 927bbae commit cded88d
Show file tree
Hide file tree
Showing 33 changed files with 645 additions and 46 deletions.
29 changes: 28 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ these instructions. Without modification of the values in the charts, it is not

Please feel free to visit our https://docs.featurehub.io[documentation] for further information.

== Steps
== Local Development/Testing

The helm chart on the kind cluster installs with a default of Postgres and NATs. There
are deploy scripts for using both, but a simple

$ helm upgrade -i featurehub featurehub -n featurehub

will work as long as the other kinD dependencies are installed. Below are the setup
instructions for ensuring that kinD is installed and configured correctly (it needs
an ingress running on port 80) before installing the charts.

=== 1. Install KinD

Expand Down Expand Up @@ -131,6 +140,24 @@ out exactly what is wrong, and so should the endpoint.

== Changelog [[changelog]]

=== 4.1.0
- support Google Pub/Sub configuration (including local dev)
- clearly delineate application params vs env var based deployment
- add better documentation and links
- annotate for all fields so helmdocs pics up docs
- add changelog

=== 4.0.9
- Upgrade to support NATS
- Upgrade to support Sync Waves for ArgoCD

=== 4.0.8
- Ensure chart is properly tested
- Fix values issue with env vars as secrets

=== 4.0.7
- Introduce env vars as secrets

=== 4.0.6

Release for version 1.7.0
Expand Down
2 changes: 2 additions & 0 deletions ct-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
docker run -it --workdir=/data --volume $PWD:/data quay.io/helmpack/chart-testing:v3.7.1 /bin/bash
5 changes: 5 additions & 0 deletions ct-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
cd helm/featurehub
helm repo add bitnami https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
helm repo add nats https://nats-io.github.io/k8s/helm/charts/
ct lint --config ../../.github/ct.yaml --chart-dirs . --charts . --target-branch main
2 changes: 2 additions & 0 deletions helm/deploy-nats.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
helm upgrade -i featurehub featurehub --set dacha.envAsApplicationProperties=false,edge.envAsApplicationProperties=false,managementRepository.envAsApplicationProperties=false,nats.enabled=true,googlepubsub.enabled=false --namespace featurehub
3 changes: 3 additions & 0 deletions helm/deploy-pubsub.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
helm upgrade -i pubsub-emulator pubsub-emulator --namespace featurehub --wait
helm upgrade -i featurehub featurehub --set googlepubsub.enabled=true,nats.enabled=false --namespace featurehub
15 changes: 13 additions & 2 deletions helm/featurehub/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
apiVersion: v2
name: featurehub
description: FeatureHub Release
description: "FeatueHub is an Enterprise Grade, Cloud Native Feature Management platform that is available to suite any organisations requirements.
This fully supported Helm chart is the Open Source version of the product, which has all the same features as the [SaaS product](https://app.featurehub.io).
The project is hosted on [Github](https://github.com/featurehub-io/featurehub). It supports Postgres, MySQL, MariaDB or Oracle Database deployments, and uses
NATS or Google PubSub as a streaming layer. Kinesis is available but has limited testing. Documentation on configuration is provided on [Featurehub Docs](https://docs.featurehub.io/featurehub/latest/configuration.html)
NATS and Postgres are *NOT* requirements of the project and are included only for evaluation convenience and evaluation. It is expected people will install
their own requirements.
"
type: application
version: 4.0.9
version: 4.1.0
icon: https://raw.githubusercontent.com/featurehub-io/featurehub/main/docs/modules/ROOT/images/fh_icon.png
appVersion: "1.7.0"
maintainers:
- name: FeatureHub
email: info@featurehub.io
url: https://github.com/featurehub-io/featurehub-helm
dependencies:
- name: postgresql
version: 12.1.13
Expand Down
9 changes: 9 additions & 0 deletions helm/featurehub/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Copyright 2023 Anyways Labs Ltd

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit cded88d

Please sign in to comment.