Skip to content

Commit

Permalink
Merge pull request #290 from sclorg/migrate_to_deployment
Browse files Browse the repository at this point in the history
This PR migrates DeploymentConfig to Deployment
  • Loading branch information
phracek authored Dec 5, 2023
2 parents ad2a3d2 + 034738f commit e6436ca
Showing 1 changed file with 9 additions and 29 deletions.
38 changes: 9 additions & 29 deletions examples/templates/sample-test-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,40 +126,25 @@
}
},
{
"kind": "DeploymentConfig",
"apiVersion": "v1",
"kind": "Deployment",
"apiVersion": "apps/v1",
"metadata": {
"name": "${NAME}",
"annotations": {
"description": "Defines how to deploy the application server",
"template.alpha.openshift.io/wait-for-ready": "true"
"template.alpha.openshift.io/wait-for-ready": "true",
"image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"${NAME}:latest\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]"
}
},
"spec": {
"strategy": {
"type": "Rolling"
"type": "RollingUpdate"
},
"triggers": [
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"nginx-example"
],
"from": {
"kind": "ImageStreamTag",
"name": "${NAME}:latest"
}
}
},
{
"type": "ConfigChange"
}
],
"replicas": 1,
"selector": {
"name": "${NAME}"
"matchLabels": {
"name": "${NAME}"
}
},
"template": {
"metadata": {
Expand Down Expand Up @@ -200,12 +185,7 @@
}
},
"env": [
],
"resources": {
"limits": {
"memory": "${MEMORY_LIMIT}"
}
}
]
}
]
}
Expand Down

0 comments on commit e6436ca

Please sign in to comment.