-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨(richie) add ImageStream and BuildConfig
Service pods are now based on a locally built image instead of DockerHub's raw image. This allows us to add project-specific contrains or customization.
- Loading branch information
Showing
6 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: "v1" | ||
kind: "BuildConfig" | ||
metadata: | ||
# FIXME | ||
# | ||
# As mentionned in the official documentation [1]: | ||
# | ||
# Configuration change triggers currently only work when creating a new | ||
# BuildConfig. In a future release, configuration change triggers will also | ||
# be able to launch a build whenever a BuildConfig is updated. | ||
# | ||
# Hence, we must force BuildConfig to always get created with a unique name. | ||
# This is a temporary solution that needs to be improved as soon as OKD | ||
# triggers a new build upon BC object update. | ||
# | ||
# References: | ||
# | ||
# 1. https://docs.okd.io/latest/dev_guide/builds/triggering_builds.html#config-change-triggers | ||
name: "richie-{{ deployment_stamp }}" | ||
namespace: "{{ project_name }}" | ||
labels: | ||
app: "richie" | ||
service: "richie" | ||
version: "{{ richie_image_tag }}" | ||
deployment_stamp: "{{ deployment_stamp }}" | ||
spec: | ||
strategy: | ||
type: Docker | ||
source: | ||
dockerfile: |- | ||
FROM {{ richie_image_name }}:{{ richie_image_tag }} | ||
# Add new statements here | ||
triggers: | ||
- type: "ConfigChange" | ||
output: | ||
to: | ||
kind: "ImageStreamTag" | ||
name: "richie:{{ richie_image_tag }}-live" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: "v1" | ||
kind: "ImageStream" | ||
metadata: | ||
name: "richie" | ||
namespace: "{{ project_name }}" | ||
labels: | ||
app: "richie" | ||
service: "richie" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters