Skip to content

Commit 955109a

Browse files
authored
Merge pull request #322 from bcgov/i5okie/dc-deprecation
Migrate DeploymentConfigs to Deployments
2 parents e32d173 + be1d1d8 commit 955109a

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ backup/
88

99
# tmp script files
1010
*_DeploymentConfig.json
11+
*_Deployment.json
1112
*_BuildConfig.json
1213
tmp/
1314

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
WALLET_ENCRYPTION_KEY=prompt_skipped
2+
INDY_WALLET_SEED=prompt_skipped
3+
INDY_WALLET_DID=prompt_skipped

openshift/templates/ledger-browser/ledger-browser-deploy.yaml

+7-17
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ objects:
101101
name: ${NAME}
102102
weight: 100
103103

104-
- kind: DeploymentConfig
105-
apiVersion: v1
104+
- kind: Deployment
105+
apiVersion: apps/v1
106106
metadata:
107107
name: ${NAME}
108108
annotations:
@@ -114,22 +114,12 @@ objects:
114114
spec:
115115
strategy:
116116
type: Recreate
117-
triggers:
118-
- type: ImageChange
119-
imageChangeParams:
120-
automatic: true
121-
containerNames:
122-
- ${NAME}
123-
from:
124-
kind: ImageStreamTag
125-
namespace: ${IMAGE_NAMESPACE}
126-
name: ${SOURCE_IMAGE_NAME}:${TAG_NAME}
127-
- type: ConfigChange
128117
replicas: 1
129118
selector:
130-
app: ${NAME}
131-
app-group: ${APP_GROUP}
132-
env: ${TAG_NAME}
119+
matchLabels:
120+
app: ${NAME}
121+
app-group: ${APP_GROUP}
122+
env: ${TAG_NAME}
133123
template:
134124
metadata:
135125
name: ${NAME}
@@ -144,7 +134,7 @@ objects:
144134
claimName: ${PERSISTENT_VOLUME_NAME}
145135
containers:
146136
- name: ${NAME}
147-
image: " "
137+
image: image-registry.openshift-image-registry.svc:5000/${IMAGE_NAMESPACE}/${NAME}:${TAG_NAME}
148138
command:
149139
- ./scripts/start_webserver.sh
150140
ports:

0 commit comments

Comments
 (0)