Skip to content

Commit

Permalink
Bug Fix: MinIO certificates
Browse files Browse the repository at this point in the history
Signed-off-by: Itay Grudev <[email protected]>
  • Loading branch information
itay-grudev committed Mar 20, 2024
1 parent 1ea4720 commit 849010d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion charts/cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ cluster:
# -- Configuration of the PostgreSQL server
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-PostgresConfiguration
postgresql: {}
# max_connections: 300
# max_connections: "300"

# -- BootstrapInitDB is the configuration of the bootstrap process when initdb is used
# See: https://cloudnative-pg.io/documentation/current/bootstrap/
Expand Down
9 changes: 3 additions & 6 deletions tests/cluster/00-cluster.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: kubectl get secret/myminio-tls -n minio -o json | jq 'del(.metadata["namespace","creationTimestamp","resourceVersion","selfLink","uid","ownerReferences"])' | kubectl apply --namespace=$NAMESPACE -f -
- script: kubectl -n $NAMESPACE create secret generic kube-root-ca.crt --from-literal=ca.crt="$(kubectl -n kube-system get configmaps kube-root-ca.crt -o jsonpath='{.data.ca\.crt}')" --dry-run=client -o yaml | kubectl apply -f -
- namespaced: true
command:
helm upgrade
--install
--namespace database
--create-namespace
--values ./standalone.yaml
--wait
database ../../charts/cluster
- command: sleep 180
timeout: 120
standalone ../../charts/cluster
timeout: 180
12 changes: 5 additions & 7 deletions tests/cluster/standalone.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
mode: standalone
cluster:
instances: 1
env:
- name: AWS_CA_BUNDLE
value: /run/certificates/backup-barman-ca.crt

instances: 2
postgresql:
archive_timout: "10"
backups:
enabled: true
provider: s3
endpointURL: "https://minio.minio.svc.cluster.local"
endpointCA:
name: myminio-tls
key: public.crt
name: kube-root-ca.crt
key: ca.crt
wal:
encryption: ""
data:
Expand Down

0 comments on commit 849010d

Please sign in to comment.