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

improve helm chart docs and the connector examples #14

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Please refer to the [official documentation](https://helm.sh/docs/intro/install/

```bash
helm repo add hasura https://hasura.github.io/helm-charts/
helm repo update
```

You can then see the charts by running:
Expand All @@ -17,6 +18,8 @@ You can then see the charts by running:
helm search repo hasura
```

> You can change the repo name `hasura` to another one if getting conflicts.

For more information, have a look at the [Using Helm](https://helm.sh/docs/intro/using_helm/#helm-repo-working-with-repositories) documentation.

## Contributing
Expand Down
12 changes: 12 additions & 0 deletions charts/graphql-data-connector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@ This chart deploys the GraphQL Data Connector service.

```bash
helm repo add hasura https://hasura.github.io/helm-charts
helm repo update
```

> You can change the repo name `hasura` to another one if getting conflicts.

## Get Started

```bash
helm install [RELEASE_NAME] hasura/graphql-data-connector
```
See [configuration](#parameters) below.

See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation.

## Parameters

| Name | Description | Value |
Expand Down
6 changes: 3 additions & 3 deletions charts/graphql-data-connector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ autoscaling:
## Resource requests and limits of deployment pods
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
## Example:
## requests:
## cpu: 250m
## memory: 256Mi
## limits:
## memory: "2Gi"
## cpu: "1"
##
resources: {}

Expand Down
3 changes: 3 additions & 0 deletions charts/graphql-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ This chart deploys the GraphQL Engine service with a Postgres instance for metad

```bash
helm repo add hasura https://hasura.github.io/helm-charts
helm repo update
```

> You can change the repo name `hasura` to another one if getting conflicts.

## Get Started

### Install Helm Chart
Expand Down
6 changes: 3 additions & 3 deletions charts/graphql-engine/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ autoscaling:
## Resource requests and limits of deployment pods
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
## Example:
## requests:
## cpu: 250m
## memory: 256Mi
## limits:
## memory: "4Gi"
## cpu: "2"
##
resources: {}

Expand Down
3 changes: 3 additions & 0 deletions charts/hasura-enterprise-stack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ Components included in this package:

```bash
helm repo add hasura https://hasura.github.io/helm-charts
helm repo update
```

> You can change the repo name `hasura` to another one if getting conflicts.

> The Bitnami repository has been moved to OCI-based registries that are GA supported in by Helm since v3.8.0. If you use the helm chart prior to v3.8.0, you need to enable the [experiment environment](https://helm.sh/docs/topics/registries/#oci-support-prior-to-v380).

## Get Started
Expand Down
30 changes: 30 additions & 0 deletions charts/hasura-enterprise-stack/examples/05-data-connector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,33 @@ graphql-engine:
secret:
adminSecret: "hasura"
eeLicenseKey: "<license-key>"

## Enable graphql-data-connector and mongo-data-connector health checks
## if you enable graphql-data-connector and face the race condition issue
## because connector pods start up longer than graphql-engine. to Do not uncomment the health check container if you don't use the connector or graphql-engine pods are failed to start.
##
## Note: change the <connector> to the data source that graphql-engine will connect
## Accepted values: athena, mariadb, mysql, oracle, snowflake
##
# initContainers:
# - name: wait-for-graphql-data-connector
# image: atkrad/wait4x:2
# args:
# - http
# - http://{{ .Release.Name }}-graphql-data-connector:8081/api/v1/<connector>/health
# - --expect-status-code
# - "200"
# - --timeout
# - 300s
# imagePullPolicy: IfNotPresent
#
# - name: wait-for-mongo-data-connector
# image: atkrad/wait4x:2
# args:
# - http
# - http://{{ .Release.Name }}-mongo-data-connector:8081/health
# - --expect-status-code
# - "200"
# - --timeout
# - 300s
# imagePullPolicy: IfNotPresent
12 changes: 12 additions & 0 deletions charts/mongo-data-connector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@ This chart deploys the GraphQL Data Connector service.

```bash
helm repo add hasura https://hasura.github.io/helm-charts
helm repo update
```

> You can change the repo name `hasura` to another one if getting conflicts.

## Get Started

```bash
helm install [RELEASE_NAME] hasura/mongo-data-connector
```
See [configuration](#parameters) below.

See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation.

## Parameters

| Name | Description | Value |
Expand Down
6 changes: 3 additions & 3 deletions charts/mongo-data-connector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ autoscaling:
## Resource requests and limits of deployment pods
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
## Example:
## requests:
## cpu: 250m
## memory: 256Mi
## limits:
## memory: "2Gi"
## cpu: "1"
##
resources: {}

Expand Down
12 changes: 12 additions & 0 deletions charts/postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,20 @@ This chart deploys a PostgreSQL instance for metadata storage.

```bash
helm repo add hasura https://hasura.github.io/helm-charts
helm repo update
```

> You can change the repo name `hasura` to another one if getting conflicts.

## Get Started

```bash
helm install [RELEASE_NAME] hasura/postgres
```
See [configuration](#parameters) below.

See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation.

## Parameters

### Global parameters
Expand Down
6 changes: 3 additions & 3 deletions charts/postgres/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ extraVolumeMounts: []
## Resource requests and limits of deployment pods
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
## Example
## requests:
## cpu: 250m
## memory: 256Mi
## limits:
## memory: "4Gi"
## cpu: "2"
##
resources: {}

Expand Down
Loading