Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate DeploymentConfigs to Deployments #322

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading