{
	"kind": "Template",
	"apiVersion": "v1",
	"metadata": {
		"name": "s2i-fuse77-spring-boot-camel-xml",
		"creationTimestamp": null,
		"annotations": {
			"description": "Spring Boot and Camel Xml QuickStart. This example demonstrates how you can use Apache Camel with Spring Boot on OpenShift. The quickstart uses Spring Boot to configure an application which includes a Camel route (in Spring xml) that triggers a message every 5th second, and routes the message to a log.",
			"iconClass": "icon-rh-integration",
			"openshift.io/display-name": "Red Hat Fuse 7.7 Camel XML DSL with Spring Boot",
			"openshift.io/provider-display-name": "Red Hat, Inc.",
			"tags": "quickstart,java,springboot,fis,jboss-fuse",
			"version": "1.7"
		}
	},
	"objects": [
		{
			"apiVersion": "v1",
			"kind": "ImageStream",
			"metadata": {
				"creationTimestamp": null,
				"labels": {
					"app": "${APP_NAME}",
					"component": "${APP_NAME}",
					"group": "quickstarts",
					"provider": "s2i",
					"version": "${APP_VERSION}"
				},
				"name": "${APP_NAME}"
			},
			"spec": {},
			"status": {
				"dockerImageRepository": ""
			}
		},
		{
			"apiVersion": "v1",
			"kind": "BuildConfig",
			"metadata": {
				"creationTimestamp": null,
				"labels": {
					"app": "${APP_NAME}",
					"component": "${APP_NAME}",
					"group": "quickstarts",
					"provider": "s2i",
					"version": "${APP_VERSION}"
				},
				"name": "${APP_NAME}"
			},
			"spec": {
				"output": {
					"to": {
						"kind": "ImageStreamTag",
						"name": "${APP_NAME}:latest"
					}
				},
				"resources": {
					"limits": {
						"memory": "${BUILD_MEMORY_LIMIT}"
					},
					"requests": {
						"memory": "${BUILD_MEMORY_REQUEST}"
					}
				},
				"source": {
					"git": {
						"ref": "${GIT_REF}",
						"uri": "${GIT_REPO}"
					},
					"type": "Git"
				},
				"strategy": {
					"sourceStrategy": {
						"env": [
							{
								"name": "BUILD_LOGLEVEL",
								"value": "5"
							},
							{
								"name": "ARTIFACT_DIR",
								"value": "${ARTIFACT_DIR}"
							},
							{
								"name": "MAVEN_ARGS",
								"value": "${MAVEN_ARGS}"
							},
							{
								"name": "MAVEN_ARGS_APPEND",
								"value": "${MAVEN_ARGS_APPEND}"
							},
							{
								"name": "MAVEN_MIRROR_URL",
								"value": "${MAVEN_MIRROR_URL}"
							}
						],
						"forcePull": true,
						"from": {
							"kind": "ImageStreamTag",
							"name": "fuse7-java-openshift:${BUILDER_VERSION}",
							"namespace": "${IMAGE_STREAM_NAMESPACE}"
						},
						"incremental": true
					},
					"type": "Source"
				},
				"triggers": [
					{
						"github": {
							"secret": "${BUILD_SECRET}"
						},
						"type": "GitHub"
					},
					{
						"generic": {
							"secret": "${BUILD_SECRET}"
						},
						"type": "Generic"
					},
					{
						"type": "ConfigChange"
					},
					{
						"imageChange": {},
						"type": "ImageChange"
					}
				]
			},
			"status": {
				"lastVersion": 0
			}
		},
		{
			"apiVersion": "v1",
			"kind": "DeploymentConfig",
			"metadata": {
				"creationTimestamp": null,
				"labels": {
					"app": "${APP_NAME}",
					"component": "${APP_NAME}",
					"group": "quickstarts",
					"provider": "s2i",
					"version": "${APP_VERSION}"
				},
				"name": "${APP_NAME}"
			},
			"spec": {
				"replicas": 1,
				"selector": {
					"app": "${APP_NAME}",
					"component": "${APP_NAME}",
					"deploymentconfig": "${APP_NAME}",
					"group": "quickstarts",
					"provider": "s2i",
					"version": "${APP_VERSION}"
				},
				"template": {
					"metadata": {
						"creationTimestamp": null,
						"labels": {
							"app": "${APP_NAME}",
							"component": "${APP_NAME}",
							"deploymentconfig": "${APP_NAME}",
							"group": "quickstarts",
							"provider": "s2i",
							"version": "${APP_VERSION}"
						}
					},
					"spec": {
						"containers": [
							{
								"env": [
									{
										"name": "KUBERNETES_NAMESPACE",
										"valueFrom": {
											"fieldRef": {
												"fieldPath": "metadata.namespace"
											}
										}
									}
								],
								"image": "library/${APP_NAME}:latest",
								"livenessProbe": {
									"httpGet": {
										"path": "/health",
										"port": 8081
									},
									"initialDelaySeconds": 180
								},
								"name": "${APP_NAME}",
								"ports": [
									{
										"containerPort": 8778,
										"name": "jolokia"
									}
								],
								"readinessProbe": {
									"httpGet": {
										"path": "/health",
										"port": 8081
									},
									"initialDelaySeconds": 10
								},
								"resources": {
									"limits": {
										"cpu": "${CPU_LIMIT}",
										"memory": "${MEMORY_LIMIT}"
									},
									"requests": {
										"cpu": "${CPU_REQUEST}",
										"memory": "${MEMORY_REQUEST}"
									}
								}
							}
						]
					}
				},
				"triggers": [
					{
						"type": "ConfigChange"
					},
					{
						"imageChangeParams": {
							"automatic": true,
							"containerNames": [
								"${APP_NAME}"
							],
							"from": {
								"kind": "ImageStreamTag",
								"name": "${APP_NAME}:latest"
							}
						},
						"type": "ImageChange"
					}
				]
			}
		}
	],
	"parameters": [
		{
			"name": "APP_NAME",
			"displayName": "Application Name",
			"description": "The name assigned to the application.",
			"value": "s2i-fuse77-spring-boot-camel-xml",
			"required": true
		},
		{
			"name": "GIT_REPO",
			"displayName": "Git Repository URL",
			"description": "The URL of the repository with your application source code.",
			"value": "https://github.com/fabric8-quickstarts/spring-boot-camel-xml.git",
			"required": true
		},
		{
			"name": "GIT_REF",
			"displayName": "Git Reference",
			"description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
			"value": "spring-boot-camel-xml-1.0.0.fuse-770010-redhat-00003"
		},
		{
			"name": "BUILDER_VERSION",
			"displayName": "Builder version",
			"description": "The version of the FIS S2I builder image to use.",
			"value": "1.7"
		},
		{
			"name": "APP_VERSION",
			"displayName": "Application Version",
			"description": "The application version.",
			"value": "1.0.0.fuse-770010-redhat-00003"
		},
		{
			"name": "MAVEN_ARGS",
			"displayName": "Maven Arguments",
			"description": "Arguments passed to mvn in the build.",
			"value": "package -DskipTests -Dfabric8.skip -e -B"
		},
		{
			"name": "MAVEN_ARGS_APPEND",
			"displayName": "Extra Maven Arguments",
			"description": "Extra arguments passed to mvn, e.g. for multi-module builds."
		},
		{
			"name": "MAVEN_MIRROR_URL",
			"displayName": "Maven mirror URL",
			"description": "Maven mirror to use for S2I builds."
		},
		{
			"name": "ARTIFACT_DIR",
			"displayName": "Maven build directory",
			"description": "Directory of the artifact to be built, e.g. for multi-module builds."
		},
		{
			"name": "IMAGE_STREAM_NAMESPACE",
			"displayName": "Image Stream Namespace",
			"description": "Namespace in which the Fuse ImageStreams are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.",
			"value": "openshift",
			"required": true
		},
		{
			"name": "BUILD_SECRET",
			"displayName": "Git Build Secret",
			"description": "The secret needed to trigger a build.",
			"generate": "expression",
			"from": "[a-zA-Z0-9]{40}"
		},
		{
			"name": "CPU_REQUEST",
			"displayName": "CPU request",
			"description": "The amount of CPU to request.",
			"value": "0.2",
			"required": true
		},
		{
			"name": "MEMORY_REQUEST",
			"displayName": "Memory request",
			"description": "The amount of memory required for the container to run.",
			"value": "256Mi",
			"required": true
		},
		{
			"name": "CPU_LIMIT",
			"displayName": "CPU limit",
			"description": "The amount of CPU the container is limited to use.",
			"value": "1.0",
			"required": true
		},
		{
			"name": "MEMORY_LIMIT",
			"displayName": "Memory limit",
			"description": "The amount of memory the container is limited to use.",
			"value": "256Mi",
			"required": true
		},
		{
			"name": "BUILD_MEMORY_REQUEST",
			"displayName": "Build Memory request",
			"description": "The amount of memory to request for builds.",
			"value": "0.7G",
			"required": true
		},
		{
			"name": "BUILD_MEMORY_LIMIT",
			"displayName": "Build Memory limit",
			"description": "The amount of memory the build container is limited to use.",
			"value": "1G",
			"required": true
		}
	],
	"labels": {
		"template": "s2i-fuse77-spring-boot-camel-xml"
	}
}