internal/operator-sdk/run|cleanup: initial boilerplate#3636
internal/operator-sdk/run|cleanup: initial boilerplate#3636joelanford merged 9 commits intooperator-framework:masterfrom
Conversation
45d908f to
57a48cf
Compare
4203f4e to
55e9b0b
Compare
|
/hold We might want to put this on a feature branch at least until 1.0 is released. WDYT? |
bc2ed5f to
92b998d
Compare
1d600a2 to
d8d5990
Compare
d8147cc to
f8972eb
Compare
… and cleanup commands
579aa0b to
b560e68
Compare
|
/hold cancel |
| return fmt.Errorf("load bundle: %v", err) | ||
| } | ||
|
|
||
| i.OperatorInstaller.PackageName = labels["operators.operatorframework.io.bundle.package.v1"] |
There was a problem hiding this comment.
Related: I have a PR open that makes getting bundle metadata very straightforward, which we should start using once merged (no changes required now)
There was a problem hiding this comment.
Sweet! Look forward to that.
| cfg *operator.Configuration | ||
| } | ||
|
|
||
| func NewIndexImageCatalogCreator(cfg *operator.Configuration) *IndexImageCatalogCreator { |
There was a problem hiding this comment.
Any reason IndexImageCatalogCreator is exported and this signature isn't
| func NewIndexImageCatalogCreator(cfg *operator.Configuration) *IndexImageCatalogCreator { | |
| func NewIndexImageCatalogCreator(cfg *operator.Configuration, indexImage string, injectBundles []string, injectBundleMode string) CatalogCreator { |
?
There was a problem hiding this comment.
I'll take a look at this for a follow-up.
There was a problem hiding this comment.
Actually, one reason is that we could make NewIndexImageCatalogCreator work with just an index image. In that case, it could skip the entire registry pod setup and just create the CatalogSource with the spec.index field set.
Description of the change:
Adds commented out
run bundlecommand with flag and bundle parsing boilerplate.Motivation for the change:
To initialize a new package to be use for the
run bundlecommand and enable progress on implementation to be made in parallel.Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments(seechangelog/fragments/00-template.yaml)website/content/en/docs