Skip to content

Commit

Permalink
Change application label to app to show router link in web console, f…
Browse files Browse the repository at this point in the history
…ixes #45 (#47)

* Use OpenShift Applier

* Add python example w/ python-slave builder + coverage plugin

* Add jenkins slave-python & sonarqube

* Add NodeJS Express REST application pipeline

* Move off nodejs & python pipelines

* Change application label to app to show router link in web console, fixes #45
  • Loading branch information
pabrahamsson authored and oybed committed Oct 25, 2018
1 parent 071d1ea commit a20bd2c
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 44 deletions.
10 changes: 5 additions & 5 deletions basic-spring-boot/.openshift/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ objects:
annotations:
description: The web server's http port.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -32,7 +32,7 @@ objects:
annotations:
description: Route for application's http service.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -43,14 +43,14 @@ objects:
kind: ImageStream
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -62,7 +62,7 @@ objects:
template:
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
deploymentConfig: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
spec:
Expand Down
16 changes: 8 additions & 8 deletions basic-tomcat/.openshift/deployment/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ objects:
kind: DeploymentConfig
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${APPLICATION_NAME}${ENV}
spec:
Expand All @@ -23,7 +23,7 @@ objects:
template:
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
deploymentConfig: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
spec:
Expand Down Expand Up @@ -65,7 +65,7 @@ objects:
kind: ImageStream
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${APPLICATION_NAME}${ENV}
- apiVersion: v1
Expand All @@ -75,7 +75,7 @@ objects:
annotations:
description: Route for application's service.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${APPLICATION_NAME}${ENV}
spec:
Expand All @@ -89,7 +89,7 @@ objects:
annotations:
description: Service for application.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${APPLICATION_NAME}${ENV}
spec:
Expand All @@ -99,15 +99,15 @@ objects:
protocol: TCP
targetPort: 8080
selector:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
deploymentConfig: ${APPLICATION_NAME}
- apiVersion: v1
kind: Service
metadata:
annotations:
description: Service for application.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${APPLICATION_NAME}${ENV}
spec:
Expand All @@ -117,7 +117,7 @@ objects:
protocol: TCP
targetPort: 8080
selector:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
deploymentConfig: ${APPLICATION_NAME}
- apiVersion: v1
groupNames: null
Expand Down
22 changes: 11 additions & 11 deletions blue-green-spring/.openshift/deployment/template-bg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ objects:
annotations:
description: The web server's http port.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}-green
namespace: ${NAMESPACE}
spec:
Expand All @@ -31,7 +31,7 @@ objects:
annotations:
description: The web server's http port.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}-blue
namespace: ${NAMESPACE}
spec:
Expand All @@ -47,7 +47,7 @@ objects:
annotations:
description: Current live route for application's http service.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -61,7 +61,7 @@ objects:
annotations:
description: Route for the blue deployment.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}-blue
namespace: ${NAMESPACE}
spec:
Expand All @@ -75,7 +75,7 @@ objects:
annotations:
description: Route for green deployment.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}-green
namespace: ${NAMESPACE}
spec:
Expand All @@ -86,21 +86,21 @@ objects:
kind: ImageStream
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}-green
namespace: ${NAMESPACE}
- apiVersion: v1
kind: ImageStream
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}-green
namespace: ${NAMESPACE}
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}-blue
namespace: ${NAMESPACE}
spec:
Expand All @@ -112,7 +112,7 @@ objects:
template:
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
deploymentConfig: ${APPLICATION_NAME}-blue
name: ${APPLICATION_NAME}-blue
spec:
Expand Down Expand Up @@ -151,7 +151,7 @@ objects:
kind: DeploymentConfig
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}-green
namespace: ${NAMESPACE}
spec:
Expand All @@ -163,7 +163,7 @@ objects:
template:
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
deploymentConfig: ${APPLICATION_NAME}-green
name: ${APPLICATION_NAME}-green
spec:
Expand Down
10 changes: 5 additions & 5 deletions blue-green-spring/.openshift/deployment/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ objects:
annotations:
description: The web server's http port.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -32,7 +32,7 @@ objects:
annotations:
description: Route for application's http service.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -43,14 +43,14 @@ objects:
kind: ImageStream
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -62,7 +62,7 @@ objects:
template:
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
deploymentConfig: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
spec:
Expand Down
10 changes: 5 additions & 5 deletions cucumber-selenium-grid/applier/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ objects:
annotations:
description: The web server's http port.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -32,7 +32,7 @@ objects:
annotations:
description: Route for application's http service.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -43,14 +43,14 @@ objects:
kind: ImageStream
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -62,7 +62,7 @@ objects:
template:
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
deploymentConfig: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ objects:
annotations:
description: The web server's http port.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -32,7 +32,7 @@ objects:
annotations:
description: Route for application's http service.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -43,14 +43,14 @@ objects:
kind: ImageStream
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -62,7 +62,7 @@ objects:
template:
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
deploymentConfig: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ objects:
annotations:
description: The web server's http port.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -32,7 +32,7 @@ objects:
annotations:
description: Route for application's http service.
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -43,14 +43,14 @@ objects:
kind: ImageStream
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
spec:
Expand All @@ -62,7 +62,7 @@ objects:
template:
metadata:
labels:
application: ${APPLICATION_NAME}
app: ${APPLICATION_NAME}
deploymentConfig: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
spec:
Expand Down

0 comments on commit a20bd2c

Please sign in to comment.