forked from keedio/openshift-spark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
image.yaml
41 lines (38 loc) · 824 Bytes
/
image.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apiVersion: v1
kind: Template
metadata:
name: flink-image
annotations:
description: Flink builder
tags: flink
parameters:
- name: SOURCE_REPOSITORY_URL
description: URL of the Git repository Dockerfile
required: true
value: https://github.com/eidenworks/container-flink.git
- name: OBJECT_NAME_PREFIX
description: Name prefix for each object created
required: true
value: flink-image
objects:
- apiVersion: v1
kind: ImageStream
metadata:
name: ${OBJECT_NAME_PREFIX}
- apiVersion: v1
kind: BuildConfig
metadata:
name: ${OBJECT_NAME_PREFIX}
spec:
strategy:
type: Docker
source:
type: Git
git:
uri: ${SOURCE_REPOSITORY_URL}
output:
to:
kind: ImageStream
name: ${OBJECT_NAME_PREFIX}
triggers:
- type: ConfigChange