Move bodhi to opinionated imagestream role
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
5dbc18df8d
commit
ce449ad60c
4 changed files with 31 additions and 3 deletions
7
roles/openshift/imagestream/tasks/main.yml
Normal file
7
roles/openshift/imagestream/tasks/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: route-{{routename}}.yml
|
||||
include_role:
|
||||
name: openshift/object
|
||||
vars:
|
||||
objectname: route-{{routename}}.yml
|
||||
template_fullpath: "{{roles_path}}/openshift/route/templates/route.yml"
|
4
roles/openshift/imagestream/templates/imagestream.yml
Normal file
4
roles/openshift/imagestream/templates/imagestream.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: ImageStream
|
||||
metadata:
|
||||
name: {{ imagename }}
|
18
roles/openshift/imagestream/templates/route.yml
Normal file
18
roles/openshift/imagestream/templates/route.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
apiVersion: v1
|
||||
kind: Route
|
||||
metadata:
|
||||
name: {{ routename }}
|
||||
labels:
|
||||
app: {{ app }}
|
||||
spec:
|
||||
{% if host is defined %}
|
||||
host: {{ host }}
|
||||
{% endif %}
|
||||
port:
|
||||
targetPort: {{ serviceport }}
|
||||
to:
|
||||
kind: Service
|
||||
name: {{ servicename }}
|
||||
tls:
|
||||
termination: edge
|
||||
insecureEdgeTerminationPolicy: Redirect
|
Loading…
Add table
Add a link
Reference in a new issue