9 Commits

Author SHA1 Message Date
James Read 0450089618 Merge pull request #2 from captainswain/feat/ingress
Add configurable ingress, rename all files to `.yaml` for conformity.

I'm going to merge this as clearly the chart lints, and is installable. Thanks @captainswain for your patience while we fiddle with and fix the CI job.

I'll do some testing offline on one of my Kubernetes clusters to see what sort of a timeout we need to set here on GitHub (that's why the job is still failing).
2024-10-04 15:36:54 +01:00
James Read 75414d80a9 Add bitnami deps 2024-10-04 15:26:03 +01:00
James Read 7037baed38 Fix maintainers in chart lint 2024-10-03 09:34:34 +01:00
James Read 024bc3fe46 Add maintainers which is causing lint failures.
Add maintainers
2024-10-03 09:10:30 +01:00
James Read a0bf125273 Fixing lint failure with \n at end of file 2024-10-03 08:56:27 +01:00
James Read e69f46a89a Newline at end of values.yaml required 2024-10-03 08:54:09 +01:00
James Read 9935992ef0 Remove trailing \n to fix lint 2024-10-03 08:50:12 +01:00
Shane Lindsay cb93b32c18 Remove trailing space from description 2024-10-02 21:04:09 -07:00
Shane Lindsay 005d53cce7 Add configurable ingress, rename all files to .yaml for conformity. 2024-09-29 23:39:28 -07:00
9 changed files with 94 additions and 12 deletions
@@ -5,12 +5,12 @@ on:
branches: [ main ]
paths:
- 'charts/**'
- '.github/workflows/helm-chart-ci-cd.yml'
- '.github/workflows/helm-chart-ci-cd.yaml'
pull_request:
branches: [ main ]
paths:
- 'charts/**'
- '.github/workflows/helm-chart-ci-cd.yml'
- '.github/workflows/helm-chart-ci-cd.yaml'
release:
types: [created]
@@ -32,6 +32,10 @@ jobs:
with:
version: v3.14.4
- name: Install Chart deps
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Set up Python
uses: actions/setup-python@v5
with:
+25 -5
View File
@@ -50,6 +50,13 @@ The following table lists the configurable parameters of the Postiz chart and th
| `postgresql.auth.database` | PostgreSQL database | `postiz` |
| `redis.enabled` | Deploy Redis | `true` |
| `redis.auth.password` | Redis password | `postiz-redis-password` |
| `ingress.enabled` | Enable ingress controller resource | `false` |
| `ingress.className` | IngressClass that will be be used | `""` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.hosts` | Ingress hostnames | `[]` |
| `ingress.tls` | Ingress TLS configuration | `[]` |
| `ingress.path` | Path within the host | `/` |
| `ingress.pathType` | Ingress path type | `ImplementationSpecific` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
@@ -61,13 +68,26 @@ $ helm install postiz-app \
The above command sets the PostgreSQL password to `secretpassword`.
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
Alternatively, you can use a YAML file to specify the values while installing the chart. Create a file called `custom-values.yaml` (or any name you prefer) and specify your values:
```bash
$ helm install postiz-app -f values.yaml postiz/postiz
```yaml
postgresql:
auth:
password: secretpassword
ingress:
enabled: true
hosts:
- host: postiz.example.com
```
> **Tip**: You can use the default [values.yaml](values.yaml)
Then, you can install the chart using the `-f` flag:
```bash
$ helm install postiz-app -f custom-values.yaml postiz/postiz
```
> **Tip**: You can use the default [values.yaml](values.yaml) as a starting point for your custom configuration.
## Persistence
@@ -95,4 +115,4 @@ We welcome contributions to this chart. Please read our [Contributing Guide](CON
## License
This chart is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.
This chart is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.
+9 -2
View File
@@ -1,9 +1,16 @@
apiVersion: v2
name: postiz-app
description: A Social Media Scheduling App
description: A Social Media Scheduling App
type: application
version: 1.0.1
version: 1.0.2
appVersion: "1.3.0"
maintainers:
- name: jonathan-irvin
email: offendingcommit@gmail.com
url: https://linktr.ee/offendingcommit
- name: jamesread
email: contact@jread.com
url: http://jread.com
keywords:
- social media
- marketing
@@ -0,0 +1,44 @@
{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "postiz.fullname" . }}
labels:
{{- include "postiz.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: {{ .pathType }}
backend:
service:
name: {{ include "postiz.fullname" $ }}
port:
number: {{ .port }}
{{- end }}
{{- end }}
{{- if .Values.ingress.extraRules }}
{{- toYaml .Values.ingress.extraRules | nindent 4 }}
{{- end }}
{{- end }}
+10 -3
View File
@@ -25,15 +25,22 @@ service:
port: 80
ingress:
enabled: false
enabled: false # Disabled by default
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
pathType: Prefix
port: 80
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
extraRules: []
resources: {}
@@ -98,4 +105,4 @@ secrets:
CLOUDFLARE_ACCESS_KEY: ""
CLOUDFLARE_SECRET_ACCESS_KEY: ""
CLOUDFLARE_BUCKETNAME: ""
CLOUDFLARE_BUCKET_URL: ""
CLOUDFLARE_BUCKET_URL: ""