mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Ajuste para exibição da pipeline no fluxo principal
This commit is contained in:
parent
8fb68d50c3
commit
20fd117b1e
1 changed files with 43 additions and 46 deletions
|
@ -1,5 +1,9 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Template
|
kind: Template
|
||||||
|
labels:
|
||||||
|
template: petclinic-web-app
|
||||||
|
message: |-
|
||||||
|
Template de exemplo para a Talk DevOps
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
openshift.io/display-name: PetClinic Web App
|
openshift.io/display-name: PetClinic Web App
|
||||||
|
@ -14,6 +18,9 @@ parameters:
|
||||||
displayName: Application Name
|
displayName: Application Name
|
||||||
required: true
|
required: true
|
||||||
value: petclinic-web-app
|
value: petclinic-web-app
|
||||||
|
- name: APPLICATION_DOMAIN
|
||||||
|
description: Application URL
|
||||||
|
displayName: Application URL
|
||||||
- name: GIT_SOURCE_URL
|
- name: GIT_SOURCE_URL
|
||||||
description: The source URL for the application
|
description: The source URL for the application
|
||||||
displayName: Source URL
|
displayName: Source URL
|
||||||
|
@ -37,20 +44,11 @@ parameters:
|
||||||
name: GENERIC_WEBHOOK_SECRET
|
name: GENERIC_WEBHOOK_SECRET
|
||||||
required: true
|
required: true
|
||||||
objects:
|
objects:
|
||||||
- apiVersion: v1
|
|
||||||
kind: ImageStream
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: ${APP_NAME}
|
|
||||||
name: ${APP_NAME}
|
|
||||||
spec: {}
|
|
||||||
status:
|
|
||||||
dockerImageRepository: ""
|
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
kind: BuildConfig
|
kind: BuildConfig
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
pipeline.alpha.openshift.io/uses: '[{"name": "${NAME}", "namespace": "", "kind": "DeploymentConfig"}]'
|
pipeline.alpha.openshift.io/uses: '[{"name": "${APP_NAME}", "namespace": "", "kind": "DeploymentConfig"}]'
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
labels:
|
labels:
|
||||||
name: ${APP_NAME}-pipeline
|
name: ${APP_NAME}-pipeline
|
||||||
|
@ -105,6 +103,40 @@ objects:
|
||||||
- generic:
|
- generic:
|
||||||
secret: "${GENERIC_WEBHOOK_SECRET}"
|
secret: "${GENERIC_WEBHOOK_SECRET}"
|
||||||
type: Generic
|
type: Generic
|
||||||
|
- apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: ${APP_NAME}
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: web
|
||||||
|
protocol: TCP
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
||||||
|
selector:
|
||||||
|
name: ${APP_NAME}
|
||||||
|
deploymentconfig: ${APP_NAME}
|
||||||
|
- apiVersion: v1
|
||||||
|
kind: Route
|
||||||
|
metadata:
|
||||||
|
name: ${APP_NAME}
|
||||||
|
labels:
|
||||||
|
app: ${APP_NAME}
|
||||||
|
spec:
|
||||||
|
host: ${APPLICATION_DOMAIN}
|
||||||
|
to:
|
||||||
|
kind: Service
|
||||||
|
name: ${APP_NAME}
|
||||||
|
port:
|
||||||
|
targetPort: web
|
||||||
|
- apiVersion: v1
|
||||||
|
kind: ImageStream
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
description: Docker images hub
|
||||||
|
labels:
|
||||||
|
app: ${APP_NAME}
|
||||||
|
name: ${APP_NAME}
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
kind: BuildConfig
|
kind: BuildConfig
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -205,39 +237,4 @@ objects:
|
||||||
kind: ImageStreamTag
|
kind: ImageStreamTag
|
||||||
name: ${APP_NAME}:latest
|
name: ${APP_NAME}:latest
|
||||||
type: ImageChange
|
type: ImageChange
|
||||||
status: {}
|
- type: ConfigChange
|
||||||
- apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
openshift.io/generated-by: OpenShiftNewApp
|
|
||||||
labels:
|
|
||||||
app: ${APP_NAME}
|
|
||||||
name: ${APP_NAME}
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: 8080-tcp
|
|
||||||
port: 8080
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8080
|
|
||||||
selector:
|
|
||||||
app: ${APP_NAME}
|
|
||||||
deploymentconfig: ${APP_NAME}
|
|
||||||
sessionAffinity: None
|
|
||||||
type: ClusterIP
|
|
||||||
status:
|
|
||||||
loadBalancer: {}
|
|
||||||
- apiVersion: v1
|
|
||||||
kind: Route
|
|
||||||
metadata:
|
|
||||||
name: ${APP_NAME}
|
|
||||||
labels:
|
|
||||||
app: ${APP_NAME}
|
|
||||||
spec:
|
|
||||||
to:
|
|
||||||
kind: Service
|
|
||||||
name: ${APP_NAME}
|
|
||||||
weight: 100
|
|
||||||
port:
|
|
||||||
targetPort: 8080-tcp
|
|
||||||
wildcardPolicy: None
|
|
Loading…
Reference in a new issue