Skip to content

Commit

Permalink
argocd: add postgres-operator
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Login <batazor@evrone.com>
  • Loading branch information
batazor committed Jun 9, 2023
1 parent 946d389 commit c74cb53
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ops/Helm/addons/store/postgres-operator/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies:
- name: postgres-operator
repository: https://opensource.zalando.com/postgres-operator/charts/postgres-operator
version: 1.10.0
- name: postgres-operator-ui
repository: https://opensource.zalando.com/postgres-operator/charts/postgres-operator-ui
version: 1.10.0
digest: sha256:2c4bb8c56df39affdfc992ac95e14071b21e1d69d7629e5541fa289899e1b7c3
generated: "2023-06-09T14:10:26.781475+02:00"
31 changes: 31 additions & 0 deletions ops/Helm/addons/store/postgres-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: v2 # The chart API version (required)
appVersion: "1.0.0" # The version of the app that this contains (optional)
name: postgres # The name of the chart (required)
version: 1.0.0 # A SemVer 2 version (required)
kubeVersion: ">= 1.24.0 || >= v1.24.0-0" # A SemVer range of compatible Kubernetes versions (optional)
keywords: # A list of keywords about this project (optional)
- postgres
maintainers:
- email: batazor111@gmail.com
name: batazor
url: batazor.ru
engine: gotpl
type: application # It is the type of chart (optional)
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: postgres-operator
version: 1.10.0
repository: https://opensource.zalando.com/postgres-operator/charts/postgres-operator
condition: postgres-operator.enabled
tags:
- postgresql
- store
- operator
- name: postgres-operator-ui
version: 1.10.0
repository: https://opensource.zalando.com/postgres-operator/charts/postgres-operator-ui
condition: postgres-operator-ui.enabled
tags:
- postgresql
- store
- ui
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions ops/Helm/addons/store/postgres-operator/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CHART NAME: {{ .Chart.Name }}
CHART VERSION: {{ .Chart.Version }}
APP VERSION: {{ .Chart.AppVersion }}

** Please be patient while the chart is being deployed **
9 changes: 9 additions & 0 deletions ops/Helm/addons/store/postgres-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Common default values for postgres-operator.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

postgres-operator:
enabled: true

postgres-operator-ui-charts:
enabled: true
44 changes: 44 additions & 0 deletions ops/argocd/infrastructure/postgres-operator/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: postgres-operator
namespace: argocd
annotations:
notifications.argoproj.io/subscribe.on-sync-succeeded.slack: gitops
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shortlink
destination:
name: ''
namespace: postgres-operator
server: 'https://kubernetes.default.svc'
source:
path: ops/Helm/addons/store/postgres-operator
repoURL: 'https://github.com/shortlink-org/shortlink'
targetRevision: HEAD
helm:
releaseName: postgres-operator
syncPolicy:
automated:
prune: true
allowEmpty: true
selfHeal: true
managedNamespaceMetadata:
labels:
istio-injection: enabled
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
- ApplyOutOfSyncOnly=true
retry:
limit: 2
backoff:
duration: 10s
maxDuration: 3m0s
factor: 2
ignoreDifferences:
- group: kyverno.io
kind: ClusterPolicy
jqPathExpressions:
- .spec.rules[] | select(.name|test("autogen-."))

0 comments on commit c74cb53

Please sign in to comment.