This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds ImageStream support to the Kedge spec. A user will be able to define an ImageStream object using the imageStreams key at the root level of the spec, which is created by merging the ImageStreamSpec and ObjectMeta. This commit also includes relevant docs, tests, and examples.
- Loading branch information
Showing
8 changed files
with
341 additions
and
1 deletion.
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,17 @@ | ||
# Image Streams | ||
|
||
An image stream can be used to automatically perform an action, such as updating a deployment when a new image is created. | ||
|
||
Like most of the Kedge constructs, the `ImageStreamSpec` and `ObjectMeta` have been merged at the same YAML level. | ||
|
||
A valid OpenShift `ImageStream` resource can be specified at the root level of the Kedge spec in a field called `imageStreams` like we see in [is.yml](is.yml): | ||
|
||
```yaml | ||
name: webapp | ||
imageStreams: | ||
- tags: | ||
- from: | ||
kind: DockerImage | ||
name: centos/httpd-24-centos7:2.4 | ||
name: "2.4" | ||
``` |
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,22 @@ | ||
controller: DeploymentConfig | ||
name: webapp | ||
containers: | ||
- image: "" | ||
triggers: | ||
- imageChangeParams: | ||
automatic: true | ||
containerNames: | ||
- webapp | ||
from: | ||
kind: ImageStreamTag | ||
name: webapp:2.4 | ||
type: ImageChange | ||
services: | ||
- portMappings: | ||
- "8080" | ||
imageStreams: | ||
- tags: | ||
- from: | ||
kind: DockerImage | ||
name: centos/httpd-24-centos7:2.4 | ||
name: "2.4" |
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
Oops, something went wrong.