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

Release #15

Merged
merged 7 commits into from
Dec 6, 2023
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: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
Helm Charts for [Ever Platform](https://github.com/ever-co).

Content:
- [Ever Gauzy Helm Chart](https://github.com/ever-co/ever-charts/tree/develop/charts/ever-gauzy) ([README](https://github.com/ever-co/ever-charts/blob/develop/charts/ever-gauzy/README.md))
- [Ever Gauzy Platform Helm Chart](https://github.com/ever-co/ever-charts/tree/develop/charts/ever-gauzy) ([README](https://github.com/ever-co/ever-charts/blob/develop/charts/ever-gauzy/README.md))
- [Ever Gauzy API Helm Chart](https://github.com/ever-co/ever-charts/tree/develop/charts/ever-gauzy-api) ([README](https://github.com/ever-co/ever-charts/blob/develop/charts/ever-gauzy-api/README.md))

## 🔗 Links

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: v2
name: gauzy-api
name: ever-gauzy-api
description: A Helm chart for Ever Gauzy Platform
type: application
version: 0.1.0
appVersion: "1.16.0"
keywords:
- "gauzy-api"
- "ever-gauzy-api"
dependencies:
- name: postgresql
condition: global.env.production
Expand Down
22 changes: 11 additions & 11 deletions charts/gauzy-api/README.md → charts/ever-gauzy-api/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
###### based on [Ever-Gauzy](https://github.com/ever-co/ever-gauzy)

# Ever-Gauzy-API
# Ever Gauzy API

[Ever-Gauzy](https://github.com/ever-co/ever-gauzy) An Open Business Management Platform for Collaborative, On-Demand and Sharing Economies.
[Ever Gauzy](https://github.com/ever-co/ever-gauzy) - Open Business Management Platform for Collaborative, On-Demand and Sharing Economies.

- Enterprise Resource Planning (ERP) software.
- Customer Relationship Management (CRM) software.
Expand All @@ -14,7 +14,7 @@

```console
helm repo add ever-co https://charts.ever.co
helm install ever-co/gauzy-api
helm install ever-co/ever-gauzy-api
```

## Introduction
Expand All @@ -27,9 +27,9 @@ To install the chart with the release name `my-release`:

```console
$ # Helm 2
helm install --name my-release ever-co/gauzy-api
helm install --name my-release ever-co/ever-gauzy-api
$ # Helm 3
helm install my-release ever-co/gauzy-api
helm install my-release ever-co/ever-gauzy-api
```

The command deploys ever-gauzy on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Expand All @@ -54,7 +54,7 @@ The command removes nearly all the Kubernetes components associated with the cha
| `global.baseUrls.api` | The base URL for the API | `""` |
| `global.baseUrls.client` | The base URL for the client | `""` |
| `replicaCount` | Number of ever-gauzy API replicas | `1` |
| `image.repository` | Repository for API image | `ghcr.io/ever-co/gauzy-api-demo` |
| `image.repository` | Repository for API image | `ghcr.io/ever-co/ever-gauzy-api-demo` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.tag` | Image tag | `"latest"` |
| `imagePullSecrets` | List of Docker registry secret names | `[]` |
Expand Down Expand Up @@ -152,10 +152,10 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm

```console
$ # Helm 2
helm install ever-co/gauzy-api --name my-release \
helm install ever-co/ever-gauzy-api --name my-release \
--set global.env.production=true
$ # Helm 3
helm install my-release ever-co/gauzy-api \
helm install my-release ever-co/ever-gauzy-api \
--set global.env.production=true
```

Expand All @@ -164,10 +164,10 @@ provided while installing the chart. For example:

```console
$ # Helm 2
helm install ever-co/gauzy-api --name my-release -f values.yaml
helm install ever-co/ever-gauzy-api --name my-release -f values.yaml
$ # Helm 3
helm install my-release ever-co/gauzy-api -f values.yaml
helm install my-release ever-co/ever-gauzy-api -f values.yaml
```

> **Tip**: You can use the default [values.yaml](https://github.com/ever-co/ever-charts/blob/develop/charts/gauzy-api/values.yaml) and look on [examples](https://github.com/ever-co/ever-charts/tree/develop/charts/gauzy-api/examples).
> **Tip**: You can use the default [values.yaml](https://github.com/ever-co/ever-charts/blob/develop/charts/ever-gauzy-api/values.yaml) and look on [examples](https://github.com/ever-co/ever-charts/tree/develop/charts/ever-gauzy-api/examples).

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "gauzy-api.name" -}}
{{- define "ever-gauzy-api.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

Expand All @@ -10,7 +10,7 @@ Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "gauzy-api.fullname" -}}
{{- define "ever-gauzy-api.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand All @@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "gauzy-api.chart" -}}
{{- define "ever-gauzy-api.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "gauzy-api.labels" -}}
helm.sh/chart: {{ include "gauzy-api.chart" . }}
{{ include "gauzy-api.selectorLabels" . }}
{{- define "ever-gauzy-api.labels" -}}
helm.sh/chart: {{ include "ever-gauzy-api.chart" . }}
{{ include "ever-gauzy-api.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
Expand All @@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{/*
Selector labels
*/}}
{{- define "gauzy-api.selectorLabels" -}}
app.kubernetes.io/name: {{ include "gauzy-api.name" . }}
{{- define "ever-gauzy-api.selectorLabels" -}}
app.kubernetes.io/name: {{ include "ever-gauzy-api.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "gauzy-api.serviceAccountName" -}}
{{- define "ever-gauzy-api.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "gauzy-api.fullname" .) .Values.serviceAccount.name }}
{{- default (include "ever-gauzy-api.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
Expand All @@ -64,14 +64,14 @@ Create the name of the service account to use
{{/*
Create a variable based on demo env
*/}}
{{- define "gauzy-api.demoenv" -}}
{{- define "ever-gauzy-api.demoenv" -}}
{{- if not .Values.global.env.demo -}}
true
{{- else -}}
false
{{- end -}}
{{- end -}}
{{- define "gauzy-api.nodeenv" -}}
{{- define "ever-gauzy-api.nodeenv" -}}
{{- if not .Values.global.env.demo -}}
development
{{- else -}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "gauzy-api.fullname" . }}
name: {{ include "ever-gauzy-api.fullname" . }}
labels:
{{- include "gauzy-api.labels" . | nindent 4 }}
{{- include "ever-gauzy-api.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "gauzy-api.selectorLabels" . | nindent 6 }}
{{- include "ever-gauzy-api.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "gauzy-api.labels" . | nindent 8 }}
{{- include "ever-gauzy-api.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand All @@ -25,7 +25,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "gauzy-api.serviceAccountName" . }}
serviceAccountName: {{ include "ever-gauzy-api.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
Expand All @@ -38,11 +38,11 @@ spec:
{{- . | toYaml | trim | nindent 12 }}
{{- end }}
- name: DEMO
value: {{ include "gauzy-api.demoenv" . | quote }}
value: {{ include "ever-gauzy-api.demoenv" . | quote }}
- name: API_HOST
value: 0.0.0.0
- name: NODE_ENV
value: {{ include "gauzy-api.nodeenv" . | quote }}
value: {{ include "ever-gauzy-api.nodeenv" . | quote }}
- name: API_BASE_URL
value: {{ .Values.global.baseUrls.api | quote }}
- name: CLIENT_BASE_URL
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "gauzy-api.fullname" . -}}
{{- $fullName := include "ever-gauzy-api.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
Expand All @@ -17,7 +17,7 @@ kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "gauzy-api.labels" . | nindent 4 }}
{{- include "ever-gauzy-api.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "gauzy-api.fullname" . }}
name: {{ include "ever-gauzy-api.fullname" . }}
labels:
{{- include "gauzy-api.labels" . | nindent 4 }}
{{- include "ever-gauzy-api.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
Expand All @@ -12,4 +12,4 @@ spec:
protocol: TCP
name: http
selector:
{{- include "gauzy-api.selectorLabels" . | nindent 4 }}
{{- include "ever-gauzy-api.selectorLabels" . | nindent 4 }}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "gauzy-api.serviceAccountName" . }}
name: {{ include "ever-gauzy-api.serviceAccountName" . }}
labels:
{{- include "gauzy-api.labels" . | nindent 4 }}
{{- include "ever-gauzy-api.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ global:
replicaCount: 1

image:
repository: ghcr.io/ever-co/gauzy-api-demo
repository: ghcr.io/ever-co/ever-gauzy-api-demo
pullPolicy: IfNotPresent
tag: "latest"
imagePullSecrets: []
Expand Down
4 changes: 2 additions & 2 deletions charts/ever-gauzy/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
###### based on [Ever-Gauzy](https://github.com/ever-co/ever-gauzy)

# Ever-Gauzy
# Ever Gauzy

[Ever-Gauzy](https://github.com/ever-co/ever-gauzy) An Open Business Management Platform for Collaborative, On-Demand and Sharing Economies.
[Ever Gauzy](https://github.com/ever-co/ever-gauzy) - Open Business Management Platform for Collaborative, On-Demand and Sharing Economies.

- Enterprise Resource Planning (ERP) software.
- Customer Relationship Management (CRM) software.
Expand Down
Loading