This repository was archived by the owner on Oct 3, 2019. It is now read-only.
Repository navigation
create imagestreams and buildconfig for nodejs runtime #13
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8337366
create imagestreams and buildconfig for nodejs runtime
corinnekrych ad7d9a1
put back validation for gitsource CRD and remove from build task
corinnekrych 3ffacf2
add desciption for Codebase field
corinnekrych 08a6ad1
remove Redundant check
corinnekrych cb16036
if object deleted exit reconciliation
corinnekrych 870bc31
emit error if runtime is could not be created
corinnekrych ce03ecd
remove duplicate comment
corinnekrych 0d99d48
fix indentation in yaml
corinnekrych 5d4e679
fix typeo in buildTypeImages map
corinnekrych 4054c14
remove unrelated comment in controller
corinnekrych e633160
check for runtime imagestream error with separate error message
corinnekrych 5046adb
add enum to buildtype validation
corinnekrych dcc4572
clear todo
corinnekrych File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,44 @@ | ||
| apiVersion: apiextensions.k8s.io/v1beta1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| creationTimestamp: null | ||
| name: components.devopsconsole.openshift.io | ||
| spec: | ||
| group: devopsconsole.openshift.io | ||
| names: | ||
| kind: Component | ||
| listKind: ComponentList | ||
| plural: components | ||
| singular: component | ||
| scope: Namespaced | ||
| subresources: | ||
| status: {} | ||
| validation: | ||
| openAPIV3Schema: | ||
| properties: | ||
| apiVersion: | ||
| type: string | ||
| kind: | ||
| type: string | ||
| metadata: | ||
| type: object | ||
| spec: | ||
| properties: | ||
| buildType: | ||
| type: string | ||
| description: The type of the image that is required to build your component. | ||
| enum: | ||
| - nodejs | ||
| codebase: | ||
| type: string | ||
| required: | ||
| - buildType | ||
| - codebase | ||
| type: object | ||
| status: | ||
| type: object | ||
| version: v1alpha1 | ||
| versions: | ||
| - name: v1alpha1 | ||
| served: true | ||
| storage: true | ||
This file contains hidden or 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 hidden or 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,7 @@ | ||
| apiVersion: devopsconsole.openshift.io/v1alpha1 | ||
| kind: Component | ||
| metadata: | ||
| name: myapp | ||
| spec: | ||
| buildType: "nodejs" | ||
| codebase: "https://github.com/nodeshift-starters/nodejs-rest-http-crud" |
This file contains hidden or 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,10 @@ | ||
| package apis | ||
|
|
||
| import ( | ||
| "github.com/redhat-developer/devopsconsole-operator/pkg/apis/devopsconsole/v1alpha1" | ||
| ) | ||
|
|
||
| func init() { | ||
| // Register the types with the Scheme so the components can map objects to GroupVersionKinds and back | ||
| AddToSchemes = append(AddToSchemes, v1alpha1.SchemeBuilder.AddToScheme) | ||
| } |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we would have a limited number of
buildTypes, I think we should add the enum here. See https://github.com/operator-framework/operator-lifecycle-manager/blob/master/deploy/upstream/quickstart/olm.yaml#L1011 for an example.What do you think @corinnekrych
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5046adb
for now only added nodejs, more will be added as we progress
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good 👍