-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup a Build using kodo #25
Conversation
Have you tried deploying the built image? |
Because of a different PR merged by me, there are conflicts in your PR, please resolve them and push again. |
pkg/kodo/cmd/build_test.go
Outdated
func getBuildConfig() buildv1api.BuildConfig { | ||
return buildv1api.BuildConfig{ | ||
TypeMeta: metav1.TypeMeta{ | ||
Kind: "BuildConfig", | ||
APIVersion: "build.openshift.io/v1", | ||
}, | ||
ObjectMeta: metav1.ObjectMeta{ | ||
Name: "my-app-docker-build", | ||
}, | ||
Spec: buildv1api.BuildConfigSpec{ | ||
CommonSpec: buildv1api.CommonSpec{ | ||
Source: buildv1api.BuildSource{ | ||
Type: buildv1api.BuildSourceType("Git"), | ||
Git: &buildv1api.GitBuildSource{ | ||
URI: "https://github.com/openshift/ruby-hello-world.git", | ||
}, | ||
}, | ||
Strategy: buildv1api.BuildStrategy{ | ||
Type: buildv1api.BuildStrategyType("Docker"), | ||
}, | ||
Output: buildv1api.BuildOutput{ | ||
To: &corev1.ObjectReference{ | ||
Kind: "ImageStreamTag", | ||
Name: "my-ruby-image:latest", | ||
}, | ||
}, | ||
}, | ||
}, | ||
} | ||
} |
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.
I don't think a new function is required for this
I think best practice would be for the test cases to be completely isolated and not have any dependence on external functions
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.
I'm not sure i understand what you mean by external function. I just followed the way we wrote test cases in the session with gagan.
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.
LGTM
Fixes #15
What
Supports Building from source with the following command:
kodo build --source=https://github.com/my/app
Assumptions
Working Command
Acceptance Criteria
ScreenShots
ImageStreamTag after Build: