Closed pmacik closed 5 years ago
Hi @pmacik. Thanks for your PR.
I'm waiting for a redhat-developer member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
The changes look find - but make push-operator-app-registry results in a docker image being created for the operator.
@ldimaggi Yes, that is because the push-operator-image
target is called before (as a dependency). The idea is to build fresh local operator image, tag it with the generated unique name - including the $(TAG)
string - push it to the quay.io image repository and then reference this unique image in the operator manifest. That manifest is then used to package the operator application and push it to the app registry (in quay.io) with that unique name. Then, the unique operator application can be referenced in the OperatorSource
.
This approach makes it possible to test the current state of the code of the operator - locally or automated in a "per-PR" manner.
/ok-to-test
The "REPLACE_IMAGE" placeholder here must also be updated before the operator is pushed to quay.io:
The "REPLACE_IMAGE" placeholder here must also be updated before the operator is pushed to quay.io:
@ldimaggi It is updated - the placeholder is already being replaced. That is what this line is for :)
/approve
/assign @sbose78
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: baijum, ldimaggi, sbose78
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Any luck with figuring out how to add secrets to openshift ci?
Haven't tried, yet.
This PR:
push-operator-app-registry
) to push freshly built operator to the application registry in quay.io which can be used byOperatorSource
tmp
directory created by the above target in theclean
targetget-operator-version
) that detects the operator version from./manifests/devconsole/devconsole.package.yaml
file and sets theDEVCONSOLE_OPERATOR_VERSION
variable.