diff --git a/charts/infrastructure/templates/mariadb-operator.yaml b/charts/infrastructure/templates/mariadb-operator.yaml new file mode 100644 index 00000000..ddaa8e4c --- /dev/null +++ b/charts/infrastructure/templates/mariadb-operator.yaml @@ -0,0 +1,36 @@ +apiVersion: v1 +kind: Namespace +metadata: + # annotations: + # volsync.backube/privileged-movers: "true" + labels: + kubernetes.io/metadata.name: mariadb-operator + image-pull-secret: harbor + name: mariadb-operator +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: mariadb-operator + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + name: '' + namespace: mariadb-operator + server: 'https://kubernetes.default.svc' + source: + path: charts/mariadb-operator + repoURL: {{ .Values.global.repo }} + targetRevision: {{ .Values.environment.revision }} + #helm: + # values: | + project: default + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + - ApplyOutOfSyncOnly=true diff --git a/charts/mariadb-operator/.helmignore b/charts/mariadb-operator/.helmignore new file mode 100644 index 00000000..0e8a0eb3 --- /dev/null +++ b/charts/mariadb-operator/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/mariadb-operator/Chart.lock b/charts/mariadb-operator/Chart.lock new file mode 100644 index 00000000..09c1c4db --- /dev/null +++ b/charts/mariadb-operator/Chart.lock @@ -0,0 +1,9 @@ +dependencies: +- name: mariadb-operator + repository: https://helm.mariadb.com/mariadb-operator + version: 25.8.4 +- name: mariadb-operator-crds + repository: https://helm.mariadb.com/mariadb-operator + version: 25.8.4 +digest: sha256:b2a915db36ff305f8528844b0298a41b8a3a30d53005078f098c4cef62c4ccca +generated: "2025-10-21T21:32:57.488194269+01:00" diff --git a/charts/mariadb-operator/Chart.yaml b/charts/mariadb-operator/Chart.yaml new file mode 100644 index 00000000..94a09c21 --- /dev/null +++ b/charts/mariadb-operator/Chart.yaml @@ -0,0 +1,35 @@ +apiVersion: v2 +name: mariadb-operator +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.1.3 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "1.16.0" + +dependencies: +- name: mariadb-operator + version: 25.8.4 + repository: "https://helm.mariadb.com/mariadb-operator" + condition: mariadb-operator.enabled +- name: mariadb-operator-crds + version: 25.8.4 + repository: "https://helm.mariadb.com/mariadb-operator" + condition: mariadb-operator-crds.enabled + diff --git a/charts/mariadb-operator/README.md b/charts/mariadb-operator/README.md new file mode 100644 index 00000000..d7fdeb6d --- /dev/null +++ b/charts/mariadb-operator/README.md @@ -0,0 +1,21 @@ +# mariadb-operator + +![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square) + +A Helm chart for Kubernetes + +## Requirements + +| Repository | Name | Version | +|------------|------|---------| +| https://bitnami-labs.github.io/mariadb-operator | mariadb-operator | 2.17.7 | + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| mariadb-operator.createController | bool | `true` | | +| mariadb-operator.ingress.enabled | bool | `false` | | +| mariadb-operator.ingress.hostname | string | `"secrets.deepcypher.me"` | | +| mariadb-operator.networkPolicy.enabled | bool | `true` | | + diff --git a/charts/mariadb-operator/charts/mariadb-operator-25.8.4.tgz b/charts/mariadb-operator/charts/mariadb-operator-25.8.4.tgz new file mode 100644 index 00000000..35abb64c Binary files /dev/null and b/charts/mariadb-operator/charts/mariadb-operator-25.8.4.tgz differ diff --git a/charts/mariadb-operator/charts/mariadb-operator-crds-25.8.4.tgz b/charts/mariadb-operator/charts/mariadb-operator-crds-25.8.4.tgz new file mode 100644 index 00000000..86fc72cd Binary files /dev/null and b/charts/mariadb-operator/charts/mariadb-operator-crds-25.8.4.tgz differ diff --git a/charts/mariadb-operator/values.yaml b/charts/mariadb-operator/values.yaml new file mode 100644 index 00000000..cda29783 --- /dev/null +++ b/charts/mariadb-operator/values.yaml @@ -0,0 +1,24 @@ +mariadb-operator: + enabled: true + ha: + enabled: true + replicas: 2 + metrics: + enabled: true + serviceMonitor: + enabled: true + +mariadb-operator-crds: + enabled: true + +environment: + name: unknown # not to be used for hard checks but to display to user + hardware: metal # to be used to enable on-prem specific features like ceph, cilium, etc + mode: production # to be used to configure backup movement and additional debugging features + revision: main # to be used to pull from different git branches + baseDomain: deepcypher.me # to be used to override default chart domains to configure environments + location: + name: unknown # not to be used for hard checks purely informational + contact: + name: George Onoufriou + email: noreply@deepcypher.me