-
Notifications
You must be signed in to change notification settings - Fork 65
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
[OCPCLOUD-1162] Implement render binary for use in installer #45
[OCPCLOUD-1162] Implement render binary for use in installer #45
Conversation
a3642a6
to
d3d2c4f
Compare
31bf2ae
to
d1b990a
Compare
7dec100
to
f485600
Compare
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.
this generally makes sense to me, i tried it out locally and everything worked as expected. i have one small suggestion and i agree with @lobziik about adding a test on the output file contents.
f485600
to
4abfda7
Compare
- Images are collected from ConfigMap file directly, as we are not running render command in a Pod
4abfda7
to
075a0b3
Compare
Every bootstrap resource is placed and named under following pattern: <destinationDir>/<bootstrapPrefix>/<resourceName>-<resourceKind>.yaml
075a0b3
to
1e0cc60
Compare
filename := fmt.Sprintf("%s-%s.yaml", res.GetName(), strings.ToLower(res.GetObjectKind().GroupVersionKind().Kind)) | ||
found := assert.Contains(t, names, filename) | ||
|
||
if found { |
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.
nit: I think it might make sense to split this case into two. This if condition block looks bit strange to me.
Up to you.
/lgtm |
@Danil-Grigorev: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
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.
It works well for me, so I don't want to hold it. If there are any issues we can fix it later.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Fedosin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
For review: https://github.com/openshift/cluster-cloud-controller-manager-operator/pull/45/files/7ac280f0c47a919d6a0b4ef914bde93ec671889f..0ee19ba06b9d7914f1fa74d96eb9c5bfc9d6eb32
Based on #42
Used in openshift/installer#4947
To run locally: