Skip to content

Conversation

@Danil-Grigorev
Copy link

@Danil-Grigorev Danil-Grigorev commented May 18, 2021

For review: https://github.com/openshift/cluster-cloud-controller-manager-operator/pull/45/files/7ac280f0c47a919d6a0b4ef914bde93ec671889f..0ee19ba06b9d7914f1fa74d96eb9c5bfc9d6eb32

Based on #42
Used in openshift/installer#4947

Starts Cluster Cloud Controller Manager in render mode

Usage:
  run [flags]

Flags:
      --cluster-infrastructure-file string   Input path for the cluster infrastructure file.
      --dest-dir string                      The destination dir where CCCMO writes the generated static pods for CCM.
  -h, --help                                 help for run
      --images-file string                   Input path for the images config map file.

To run locally:

make build
./bin/render run --images-file=manifests/0000_26_cloud-controller-manager-operator_01_images.configmap.yaml --dest-dir=cccmo-render --cluster-infrastructure-file=infra.yaml

@openshift-ci openshift-ci bot requested review from Fedosin and elmiko May 18, 2021 11:42
@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 19, 2021
@Danil-Grigorev Danil-Grigorev force-pushed the implement-render branch 2 times, most recently from 31bf2ae to d1b990a Compare May 20, 2021 12:28
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 20, 2021
Copy link
Contributor

@elmiko elmiko left a 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.

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 4, 2021
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 4, 2021
Danil-Grigorev added 3 commits June 4, 2021 12:12
Every bootstrap resource is placed and named under following pattern:

<destinationDir>/<bootstrapPrefix>/<resourceName>-<resourceKind>.yaml
filename := fmt.Sprintf("%s-%s.yaml", res.GetName(), strings.ToLower(res.GetObjectKind().GroupVersionKind().Kind))
found := assert.Contains(t, names, filename)

if found {
Copy link
Contributor

@lobziik lobziik Jun 4, 2021

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.

@lobziik
Copy link
Contributor

lobziik commented Jun 4, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 4, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 4, 2021

@Danil-Grigorev: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-ccm 1e0cc60 link /test e2e-aws-ccm

Full PR test history. Your PR dashboard.

Details

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.

Copy link
Contributor

@Fedosin Fedosin left a 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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 4, 2021

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 4, 2021
@openshift-merge-robot openshift-merge-robot merged commit a60cae2 into openshift:master Jun 4, 2021
@Danil-Grigorev Danil-Grigorev changed the title Implement render binary for use in installer [OCPCLOUD-1162] Implement render binary for use in installer Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants