Skip to content

Commit

Permalink
Migrate DeploymentConfigs to Deployments
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan P <[email protected]>
  • Loading branch information
i5okie committed Dec 13, 2024
1 parent e32d173 commit be1d1d8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ backup/

# tmp script files
*_DeploymentConfig.json
*_Deployment.json
*_BuildConfig.json
tmp/

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WALLET_ENCRYPTION_KEY=prompt_skipped
INDY_WALLET_SEED=prompt_skipped
INDY_WALLET_DID=prompt_skipped
24 changes: 7 additions & 17 deletions openshift/templates/ledger-browser/ledger-browser-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ objects:
name: ${NAME}
weight: 100

- kind: DeploymentConfig
apiVersion: v1
- kind: Deployment
apiVersion: apps/v1
metadata:
name: ${NAME}
annotations:
Expand All @@ -114,22 +114,12 @@ objects:
spec:
strategy:
type: Recreate
triggers:
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- ${NAME}
from:
kind: ImageStreamTag
namespace: ${IMAGE_NAMESPACE}
name: ${SOURCE_IMAGE_NAME}:${TAG_NAME}
- type: ConfigChange
replicas: 1
selector:
app: ${NAME}
app-group: ${APP_GROUP}
env: ${TAG_NAME}
matchLabels:
app: ${NAME}
app-group: ${APP_GROUP}
env: ${TAG_NAME}
template:
metadata:
name: ${NAME}
Expand All @@ -144,7 +134,7 @@ objects:
claimName: ${PERSISTENT_VOLUME_NAME}
containers:
- name: ${NAME}
image: " "
image: image-registry.openshift-image-registry.svc:5000/${IMAGE_NAMESPACE}/${NAME}:${TAG_NAME}
command:
- ./scripts/start_webserver.sh
ports:
Expand Down

0 comments on commit be1d1d8

Please sign in to comment.