Skip to content

Commit

Permalink
Add a pipeline job to test external db config
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
git-hyagi committed Dec 15, 2023
1 parent 90e1c29 commit dab053c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ jobs:
- COMPONENT_TYPE: nodeport
- COMPONENT_TYPE: telemetry
- COMPONENT_TYPE: ldap
- COMPONENT_TYPE: external-db
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -455,6 +456,10 @@ jobs:
elif [[ "$COMPONENT_TYPE" == "ldap" ]]; then
.ci/scripts/ldap_config.sh
kubectl apply -f config/samples/ldap.yaml
elif [[ "$COMPONENT_TYPE" == "external-db" ]]; then
kubectl create ns db
kubectl apply -f config/samples/external_db.yaml
kubectl apply -f config/samples/simple-external-db.yaml
else
kubectl apply -f config/samples/simple.yaml
fi
Expand Down
38 changes: 27 additions & 11 deletions config/samples/simple-external-db.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
---
apiVersion: v1
kind: Secret
metadata:
name: external-database
data:
POSTGRES_HOST: cG9zdGdyZXMuZGIuc3Zj
POSTGRES_PORT: NTQzMg==
POSTGRES_USERNAME: cHVscC1hZG1pbg==
POSTGRES_PASSWORD: cGFzc3dvcmQ=
POSTGRES_DB_NAME: cHVscA==
POSTGRES_SSLMODE: cHJlZmVy

---
apiVersion: repo-manager.pulpproject.org/v1beta2
kind: Pulp
metadata:
name: pulp
name: example-pulp
spec:
deployment_type: pulp
image_version: nightly
image_web_version: nightly
database:
external_db_secret: external-database

image_version: stable
image_web_version: stable
api:
replicas: 1
content:
Expand All @@ -15,20 +31,20 @@ spec:
web:
replicas: 1

database:
external_db_secret: external-database
ingress_type: nodeport
nodeport_port: 30000

file_storage_access_mode: "ReadWriteOnce"
file_storage_size: "2Gi"
signing_secret: "signing-galaxy"
signing_scripts: "signing-scripts"
image_web: "quay.io/pulp/galaxy-web"

ingress_type: nodeport
file_storage_storage_class: standard

pulp_settings:
api_root: "/pulp/"
allowed_export_paths:
- /tmp
allowed_import_paths:
- /tmp
telemetry: false
token_server: http://nodeport.local:30000/token/
content_origin: http://nodeport.local:30000
ansible_api_hostname: http://nodeport.local:30000

0 comments on commit dab053c

Please sign in to comment.