diff --git a/.github/renovate-update-notification/Dockerfile b/.github/renovate-update-notification/Dockerfile index a8ad660..94bb82a 100644 --- a/.github/renovate-update-notification/Dockerfile +++ b/.github/renovate-update-notification/Dockerfile @@ -1,2 +1,2 @@ # This file is processed by Renovate bot so that it creates a PR on new major Renovate versions -FROM renovate/renovate:39 \ No newline at end of file +FROM renovate/renovate:39 diff --git a/.gitignore b/.gitignore index 7794620..f3e378f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,4 @@ charts/**/charts/ __snapshot__/ # Docs -_site/ \ No newline at end of file +_site/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..b726d75 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,19 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - id: check-added-large-files + - id: check-yaml + exclude: 'charts/' + args: + - --multi + - repo: https://github.com/norwoodj/helm-docs + rev: v1.14.2 + hooks: + - id: helm-docs + args: + - --chart-search-root=charts + - --template-files=./_templates.gotmpl + - --template-files=README.md.gotmpl diff --git a/charts/cloudflared/Chart.yaml b/charts/cloudflared/Chart.yaml index cae45f1..37a7971 100644 --- a/charts/cloudflared/Chart.yaml +++ b/charts/cloudflared/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: cloudflared -version: 1.12.0 +version: 1.12.1 description: Cloudflared Tunnel keywords: - cloudflare diff --git a/charts/cloudflared/README.md b/charts/cloudflared/README.md index 542839f..30a8327 100644 --- a/charts/cloudflared/README.md +++ b/charts/cloudflared/README.md @@ -1,16 +1,38 @@ -## Introduction +# cloudflared -[Cloudflared](https://github.com/cloudflare/cloudflared) +![Version: 1.12.1](https://img.shields.io/badge/Version-1.12.1-informational?style=flat-square) ![AppVersion: 2024.12.2](https://img.shields.io/badge/AppVersion-2024.12.2-informational?style=flat-square) -Contains the command-line client for Cloudflare Tunnel, a tunneling daemon that proxies traffic from the Cloudflare network to your origins. +Cloudflared Tunnel -This chart bootstraps a [Cloudflared](https://github.com/cloudflare/cloudflared) tunnel on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. +## Maintainers -## Prerequisites +| Name | Email | Url | +| ---- | ------ | --- | +| alexlebens | | | -- Kubernetes -- Helm +## Source Code -## Parameters +* +* -See the [values files](values.yaml). +## Requirements + +| Repository | Name | Version | +|------------|------|---------| +| https://bjw-s.github.io/helm-charts/ | common | 3.5.1 | + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| existingSecretKey | string | `"cf-tunnel-token"` | | +| existingSecretName | string | `"cloudflared-secret"` | | +| image.pullPolicy | string | `"IfNotPresent"` | | +| image.repository | string | `"cloudflare/cloudflared"` | | +| image.tag | string | `"2024.12.2"` | | +| name | string | `"cloudflared"` | | +| resources.requests.cpu | string | `"100m"` | | +| resources.requests.memory | string | `"128Mi"` | | + +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/cloudflared/templates/common.yaml b/charts/cloudflared/templates/common.yaml index af92f76..03be908 100644 --- a/charts/cloudflared/templates/common.yaml +++ b/charts/cloudflared/templates/common.yaml @@ -4,7 +4,7 @@ {{ if not .Values.global.nameOverride }} global: nameOverride: {{ .Values.name }} -{{ end }} +{{ end }} controllers: main: type: deployment @@ -38,4 +38,4 @@ controllers: {{- $_ := mergeOverwrite .Values (include "cloudflared.hardcodedValues" . | fromYaml) -}} {{/* Render the templates */}} -{{ include "bjw-s.common.loader.generate" . }} \ No newline at end of file +{{ include "bjw-s.common.loader.generate" . }} diff --git a/charts/generic-device-plugin/Chart.yaml b/charts/generic-device-plugin/Chart.yaml index 3d3ba02..d4dbd9a 100644 --- a/charts/generic-device-plugin/Chart.yaml +++ b/charts/generic-device-plugin/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: generic-device-plugin -version: 0.1.2 +version: 0.1.3 description: Generic Device Plugin keywords: - generic-device-plugin @@ -15,4 +15,4 @@ dependencies: - name: common repository: https://bjw-s.github.io/helm-charts/ version: 3.5.1 -appVersion: 0.1.2 +appVersion: 0.1.3 diff --git a/charts/generic-device-plugin/README.md b/charts/generic-device-plugin/README.md index 8094734..5f7678f 100644 --- a/charts/generic-device-plugin/README.md +++ b/charts/generic-device-plugin/README.md @@ -1,16 +1,42 @@ -## Introduction +# generic-device-plugin -[Generic Device Plugin](https://github.com/squat/generic-device-plugin) +![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![AppVersion: 0.1.3](https://img.shields.io/badge/AppVersion-0.1.3-informational?style=flat-square) -The generic-device-plugin enables allocating generic Linux devices, such as serial devices, the FUSE device, or video cameras, to Kubernetes Pods. +Generic Device Plugin -This chart bootstraps a [Generic Device Plugin](https://github.com/squat/generic-device-plugin) daemonset on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. +## Maintainers -## Prerequisites +| Name | Email | Url | +| ---- | ------ | --- | +| alexlebens | | | -- Kubernetes -- Helm +## Source Code -## Parameters +* +* -See the [values files](values.yaml). +## Requirements + +| Repository | Name | Version | +|------------|------|---------| +| https://bjw-s.github.io/helm-charts/ | common | 3.5.1 | + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| config.data | string | See [values.yaml](./values.yaml) | generic-device-plugin config file [[ref]](https://github.com/squat/generic-device-plugin#usage) | +| config.enabled | bool | `true` | | +| deviceDomain | string | `"squat.ai"` | | +| image.pullPolicy | string | `"Always"` | | +| image.repository | string | `"ghcr.io/squat/generic-device-plugin"` | | +| image.tag | string | `"latest"` | | +| name | string | `"generic-device-plugin"` | | +| resources.limit.cpu | string | `"100m"` | | +| resources.limit.memory | string | `"20Mi"` | | +| resources.requests.cpu | string | `"50m"` | | +| resources.requests.memory | string | `"10Mi"` | | +| service.listenPort | int | `8080` | | + +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/generic-device-plugin/templates/common.yaml b/charts/generic-device-plugin/templates/common.yaml index 79b6319..5a76ed5 100644 --- a/charts/generic-device-plugin/templates/common.yaml +++ b/charts/generic-device-plugin/templates/common.yaml @@ -1,6 +1,6 @@ -{{- include "bjw-s.common.loader.init" . }} +{{ include "bjw-s.common.loader.init" . }} -{{- define "genericDevicePlugin.hardcodedValues" -}} +{{ define "genericDevicePlugin.hardcodedValues" }} {{ if not .Values.global.nameOverride }} global: nameOverride: {{ .Values.name }} @@ -75,8 +75,8 @@ serviceMonitor: path: /metrics interval: 30s scrapeTimeout: 10s -{{- end -}} -{{- $_ := mergeOverwrite .Values (include "genericDevicePlugin.hardcodedValues" . | fromYaml) -}} +{{ end }} +{{ $_ := mergeOverwrite .Values (include "genericDevicePlugin.hardcodedValues" . | fromYaml) }} {{/* Render the templates */}} {{ include "bjw-s.common.loader.generate" . }} diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index b4615d7..86ff2b2 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 4.0.0 +version: 4.0.1 description: Chart for cloudnative-pg cluster keywords: - database diff --git a/charts/postgres-cluster/README.md b/charts/postgres-cluster/README.md index c9f0b8b..d7c49c3 100644 --- a/charts/postgres-cluster/README.md +++ b/charts/postgres-cluster/README.md @@ -1,17 +1,99 @@ -## Introduction +# postgres-cluster -[CloudNative PG](https://github.com/cloudnative-pg/cloudnative-pg) +![Version: 4.0.1](https://img.shields.io/badge/Version-4.0.1-informational?style=flat-square) ![AppVersion: v1.25.0](https://img.shields.io/badge/AppVersion-v1.25.0-informational?style=flat-square) -CloudNativePG is the Kubernetes operator that covers the full lifecycle of a highly available PostgreSQL database cluster with a primary/standby architecture, using native streaming replication. +Chart for cloudnative-pg cluster -This chart bootstraps a [CNPG](https://github.com/cloudnative-pg/cloudnative-pg) cluster on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. +## Maintainers -## Prerequisites +| Name | Email | Url | +| ---- | ------ | --- | +| alexlebens | | | -- Kubernetes -- Helm -- CloudNative PG Operator +## Source Code -## Parameters +* -See the [values files](values.yaml). +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| backup.backupIndex | int | `1` | | +| backup.backupName | string | `""` | | +| backup.data.compression | string | `"snappy"` | | +| backup.data.encryption | string | `""` | | +| backup.data.jobs | int | `2` | | +| backup.destinationPath | string | `""` | | +| backup.enabled | bool | `false` | | +| backup.endpointCA | string | `""` | | +| backup.endpointCredentials | string | `""` | | +| backup.endpointURL | string | `""` | | +| backup.historyTags.backupRetentionPolicy | string | `""` | | +| backup.retentionPolicy | string | `"14d"` | | +| backup.schedule | string | `"0 0 0 * * *"` | | +| backup.tags.backupRetentionPolicy | string | `""` | | +| backup.wal.compression | string | `"snappy"` | | +| backup.wal.encryption | string | `""` | | +| backup.wal.maxParallel | int | `2` | | +| bootstrap.initdb | object | `{}` | | +| cluster.additionalLabels | object | `{}` | | +| cluster.affinity.enablePodAntiAffinity | bool | `true` | | +| cluster.affinity.topologyKey | string | `"kubernetes.io/hostname"` | | +| cluster.annotations | object | `{}` | | +| cluster.enableSuperuserAccess | bool | `false` | | +| cluster.image.pullPolicy | string | `"IfNotPresent"` | | +| cluster.image.repository | string | `"ghcr.io/cloudnative-pg/postgresql"` | | +| cluster.image.tag | string | `"17.2-22"` | | +| cluster.instances | int | `3` | | +| cluster.logLevel | string | `"info"` | | +| cluster.monitoring.enabled | bool | `false` | | +| cluster.monitoring.podMonitor.enabled | bool | `true` | | +| cluster.monitoring.prometheusRule.enabled | bool | `false` | | +| cluster.monitoring.prometheusRule.excludeRules | list | `[]` | | +| cluster.postgresGID | int | `26` | | +| cluster.postgresUID | int | `26` | | +| cluster.postgresql.parameters.hot_standby_feedback | string | `"on"` | | +| cluster.postgresql.parameters.max_slot_wal_keep_size | string | `"2000MB"` | | +| cluster.postgresql.parameters.shared_buffers | string | `"128MB"` | | +| cluster.postgresql.shared_preload_libraries | list | `[]` | | +| cluster.primaryUpdateMethod | string | `"switchover"` | | +| cluster.primaryUpdateStrategy | string | `"unsupervised"` | | +| cluster.priorityClassName | string | `""` | | +| cluster.resources.limits.cpu | string | `"800m"` | | +| cluster.resources.limits.hugepages-2Mi | string | `"256Mi"` | | +| cluster.resources.limits.memory | string | `"1Gi"` | | +| cluster.resources.requests.cpu | string | `"10m"` | | +| cluster.resources.requests.memory | string | `"256Mi"` | | +| cluster.storage.size | string | `"10Gi"` | | +| cluster.storage.storageClass | string | `""` | | +| cluster.walStorage.size | string | `"2Gi"` | | +| cluster.walStorage.storageClass | string | `""` | | +| mode | string | `"standalone"` | | +| nameOverride | string | `""` | Override the name of the cluster | +| recovery.data.compression | string | `"snappy"` | | +| recovery.data.encryption | string | `""` | | +| recovery.data.jobs | int | `2` | | +| recovery.destinationPath | string | `""` | | +| recovery.endpointCA | string | `""` | | +| recovery.endpointCredentials | string | `""` | | +| recovery.endpointURL | string | `""` | | +| recovery.pitrTarget.time | string | `""` | | +| recovery.recoveryIndex | int | `1` | | +| recovery.recoveryInstanceName | string | `""` | | +| recovery.recoveryServerName | string | `""` | | +| recovery.wal.compression | string | `"snappy"` | | +| recovery.wal.encryption | string | `""` | | +| recovery.wal.maxParallel | int | `2` | | +| replica.externalCluster.connectionParameters.dbname | string | `"app"` | | +| replica.externalCluster.connectionParameters.host | string | `"postgresql"` | | +| replica.externalCluster.connectionParameters.user | string | `"app"` | | +| replica.externalCluster.password.key | string | `"password"` | | +| replica.externalCluster.password.name | string | `"postgresql"` | | +| replica.importDatabases[0] | string | `"app"` | | +| replica.importRoles | list | `[]` | | +| replica.importType | string | `"microservice"` | | +| replica.postImportApplicationSQL | list | `[]` | | +| type | string | `"postgresql"` | Type of the CNPG database. Available types: * `postgresql` * `postgis` * `timescaledb` * `tensorchord` | + +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/postgres-cluster/templates/_bootstrap.tpl b/charts/postgres-cluster/templates/_bootstrap.tpl index 8da5f64..bb1b7f3 100644 --- a/charts/postgres-cluster/templates/_bootstrap.tpl +++ b/charts/postgres-cluster/templates/_bootstrap.tpl @@ -65,7 +65,7 @@ bootstrap: {{- with (omit . "postInitApplicationSQL") }} {{- . | toYaml | nindent 4 }} {{- end }} - {{- end }} + {{- end }} externalClusters: - name: "{{ include "cluster.name" . }}-cluster" {{- with .Values.replica.externalCluster }}