feat(jenkins): adding new default jenkins configuration

This commit is contained in:
2023-06-19 13:58:25 +02:00
parent 69c6b35d17
commit aeb5a75cf1
20 changed files with 97 additions and 71 deletions

View File

@ -0,0 +1,8 @@
---
nameReference:
- kind: Secret
fieldSpecs:
- path: spec/superuserSecret/name
kind: Cluster
- path: spec/bootstrap/initdb/secret/name
kind: Cluster

View File

@ -0,0 +1,32 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
generatorOptions:
disableNameSuffixHash: true
configurations:
- ./configurations/cnpg-cluster.yaml
resources:
- ./resources/myapplication-cnpg-cluster.yaml
secretgenerator:
- name: myapplication-postgres-admin
type: secret
literals:
- username=postgres
- password=notsosecret
- name: myapplication-postgres-user
type: Secret
literals:
- username=myapplication
- password=NotSoSecretButThisIsBad
vars:
- name: myapplication_DATABASE_SERVICE_NAME
objref:
name: myapplication-postgres
kind: Cluster
apiVersion: postgresql.cnpg.io/v1
fieldref:
fieldpath: metadata.name

View File

@ -0,0 +1,17 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: myapplication-postgres
spec:
instances: 3
primaryUpdateStrategy: unsupervised
superuserSecret:
name: myapplication-postgres-admin
bootstrap:
initdb:
database: myapplication
owner: myapplication
secret:
name: myapplication-postgres-user
storage:
size: 20Gi