Skip to content

Commit

Permalink
testing port numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasscheman committed Jun 24, 2024
1 parent 4f0873a commit ea68a2a
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ type: Opaque
data:
# Use the following command to generate a random password:
# echo -n 'ChangeThisSuperSecretPassword' | base64
mariadb-root-password: c2VjcmV0
mariadb-password: c2VjcmV0
mariadb-root-password: <mariadb-root-password>
mariadb-password: <mariadb-password>
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ kind: ConfigMap
metadata:
name: mariadb-config
data:
mariadb-database: development
mariadb-user: development
mariadb-database: sample-database
mariadb-user: sample-database-user
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions openshift/config/05_sample-app-cm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: sample-config
data:
database-type: mysql
database-host: mariadb-sample
database-port-number: '3306'
database-name: sample-database
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ spec:
configMapKeyRef:
name: sample-config
key: database-name
# - name: LARAVEL_STORAGE_PATH
# valueFrom:
# configMapKeyRef:
# name: sample-config
# key: laravel-storage
- name: LARAVEL_DATABASE_USER
valueFrom:
configMapKeyRef:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 0 additions & 14 deletions openshift/sample/5_sample-app-cm.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions openshift/scripts/sample-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# Function to create the list of resource yamls
create_app() {
search_dir=../sample
search_dir=../config
for entry in "$search_dir"/*
do
echo "$entry"
Expand All @@ -19,11 +19,11 @@ create_app() {

# Function to create the list of resource yamls
delete_app() {
search_dir=../sample
search_dir=../config
for entry in "$search_dir"/*
do
echo "$entry"
oc delete -f $entry
oc delete -f "$entry"
done
}

Expand Down

0 comments on commit ea68a2a

Please sign in to comment.